Ask a Question related to Macromedia Contribute General Discussion, Design and Development.
-
ZoombyWoof #1
Refresh problem
Hi. I have a Framed page, and in the "main" frame a userchoise is made. In
my "top" frame I have a table containing some status info, the current
logged on user (the username is saved in a SESSION variable) and some
stuff like that. If I in the "main" frame change user (its a drop down
list with choices from a MySQL DB) I would like to reflect that in the
status row in the "top" frame. If I do a "header( Location blablabla )",
that page is shown in the "main" frame, which of course is not desirable...
If I hit the "Refresh" button in Internet Explorer, everything updates
just fine, all the frames get updated and refreshed, including the "top"
frame with the new username showing. How do I do this refresh from withing
my php script that chooses a new user ? I have looked in the php-manual
but havent been able to find anything about this.
Any help would be very appreciated. I use PHP 4.3 on a RH 9.0 with Apache
2.0.47
Thanx.
/ZoombyWoof
ZoombyWoof Guest
-
ASP.NET Postback Refresh Problem
If you want to stop this happening, what you could do is a response.redirect back to the same page, after your server side event has finished... -
Problem with refresh button breaking automatic refresh
As a public service, I'm posting the solution to a problem I had. The bizarre thing is that I think this should have created an error. Instead, it... -
ASP/ADO/AccessDB Refresh Problem
Hey, I'm running a localhost web server...W2K with IIS 5.0, and I'm trying to use ASP/ADO to access my Access database. When I first load the... -
CAN YOU PLEASE HELP ME OUT W/ My FORM REFRESH PROBLEM???
Hi guys i'm back again!! i'm having a small problem with refreshing my form after saving data in my database! here's what i'm trying to do: * In... -
ASP refresh problem
I've recently started actual coding on a basic inventory- type intranet application and am running into a problem during prototyping. Whenever I... -
Richard Grove #2
Re: Refresh problem
"ZoombyWoof" <zoombywoofremove@thishotmail.com> wrote in message
news:pan.2003.11.25.00.32.13.855717@thishotmail.co m...desirable...> Hi. I have a Framed page, and in the "main" frame a userchoise is made. In
> my "top" frame I have a table containing some status info, the current
> logged on user (the username is saved in a SESSION variable) and some
> stuff like that. If I in the "main" frame change user (its a drop down
> list with choices from a MySQL DB) I would like to reflect that in the
> status row in the "top" frame. If I do a "header( Location blablabla )",
> that page is shown in the "main" frame, which of course is not>
> If I hit the "Refresh" button in Internet Explorer, everything updates
> just fine, all the frames get updated and refreshed, including the "top"
> frame with the new username showing. How do I do this refresh from withing
> my php script that chooses a new user ? I have looked in the php-manual
> but havent been able to find anything about this.
>
> Any help would be very appreciated. I use PHP 4.3 on a RH 9.0 with Apache
> 2.0.47
> Thanx.
>
> /ZoombyWoof
Ditch the framesets, they complicate matters.
Regards
Richard Grove
[url]http://shopbuilder.org[/url] - ecommerce systems
Become a Shop Builder re-seller:
[url]http://www.affiliatewindow.com/affiliates/merchantdetails.php?mid=611[/url]
[url]http://www.affiliatewindow.com/a.pl?590[/url]
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
Version: 6.0.542 / Virus Database: 336 - Release Date: 18/11/2003
Richard Grove Guest
-
ZoombyWoof #3
Re: Refresh problem
On Tue, 25 Nov 2003 09:11:36 +0000, Richard Grove wrote:
Well, I have discovered that yes, but what if I still want my frames ? :-)> "ZoombyWoof" <zoombywoofremove@thishotmail.com> wrote in message
> news:pan.2003.11.25.00.32.13.855717@thishotmail.co m...> desirable...>> Hi. I have a Framed page, and in the "main" frame a userchoise is made. In
>> my "top" frame I have a table containing some status info, the current
>> logged on user (the username is saved in a SESSION variable) and some
>> stuff like that. If I in the "main" frame change user (its a drop down
>> list with choices from a MySQL DB) I would like to reflect that in the
>> status row in the "top" frame. If I do a "header( Location blablabla )",
>> that page is shown in the "main" frame, which of course is not>>>
>> If I hit the "Refresh" button in Internet Explorer, everything updates
>> just fine, all the frames get updated and refreshed, including the "top"
>> frame with the new username showing. How do I do this refresh from withing
>> my php script that chooses a new user ? I have looked in the php-manual
>> but havent been able to find anything about this.
>>
>> Any help would be very appreciated. I use PHP 4.3 on a RH 9.0 with Apache
>> 2.0.47
>> Thanx.
>>
>> /ZoombyWoof
>
> Ditch the framesets, they complicate matters.
>
> Regards
> Richard Grove
It's quite nice to have a left frame so navigation gets easy, then I dont
have to have links to everything on every page...and I want to be able to
at all times see under what username I'm using the application without
having to spell it out on every page...
/ZW
ZoombyWoof Guest
-
Kevin Thorpe #4
Re: Refresh problem
ZoombyWoof wrote:
You'll have to resort to javascript (or vbscript <ugh!>) to do this.> Hi. I have a Framed page, and in the "main" frame a userchoise is made. In
> my "top" frame I have a table containing some status info, the current
> logged on user (the username is saved in a SESSION variable) and some
> stuff like that. If I in the "main" frame change user (its a drop down
> list with choices from a MySQL DB) I would like to reflect that in the
> status row in the "top" frame. If I do a "header( Location blablabla )",
> that page is shown in the "main" frame, which of course is not desirable...
>
> If I hit the "Refresh" button in Internet Explorer, everything updates
> just fine, all the frames get updated and refreshed, including the "top"
> frame with the new username showing. How do I do this refresh from withing
> my php script that chooses a new user ? I have looked in the php-manual
> but havent been able to find anything about this.
>
> Any help would be very appreciated. I use PHP 4.3 on a RH 9.0 with Apache
> 2.0.47
> Thanx.
In the main frame you can insert the following if 'top' needs refreshing.
<script language="javascript">
window.parent.top.location.reload();
</script>
Using frames or not is sort-of a holy war. They are badly supported for
some browsers, especially screen readers for blind users etc. I try and
avoid using them for anything other than cosmetic reasons for the public
parts of my websites (convenient sidebar menu etc) in case they aren't
supported but rely on them heavily for web applications. Sometimes the
only way to make a usable app is to use framesets (Windows Explorer,
Outlook, Eudora etc).
Kevin Thorpe Guest
-
ZoombyWoof #5
Re: Refresh problem
On Tue, 25 Nov 2003 10:27:50 +0000, Kevin Thorpe wrote:
Thanx a lot. I will try the javascript method as soon as I can, No> ZoombyWoof wrote:
>>>> Hi. I have a Framed page, and in the "main" frame a userchoise is made. In
>> my "top" frame I have a table containing some status info, the current
>> logged on user (the username is saved in a SESSION variable) and some
>> stuff like that. If I in the "main" frame change user (its a drop down
>> list with choices from a MySQL DB) I would like to reflect that in the
>> status row in the "top" frame. If I do a "header( Location blablabla )",
>> that page is shown in the "main" frame, which of course is not desirable...
>>
>> If I hit the "Refresh" button in Internet Explorer, everything updates
>> just fine, all the frames get updated and refreshed, including the "top"
>> frame with the new username showing. How do I do this refresh from withing
>> my php script that chooses a new user ? I have looked in the php-manual
>> but havent been able to find anything about this.
>>
>> Any help would be very appreciated. I use PHP 4.3 on a RH 9.0 with Apache
>> 2.0.47
>> Thanx.
> You'll have to resort to javascript (or vbscript <ugh!>) to do this.
>
> In the main frame you can insert the following if 'top' needs refreshing.
>
> <script language="javascript">
> window.parent.top.location.reload();
> </script>
>
> Using frames or not is sort-of a holy war. They are badly supported for
> some browsers, especially screen readers for blind users etc. I try and
> avoid using them for anything other than cosmetic reasons for the public
> parts of my websites (convenient sidebar menu etc) in case they aren't
> supported but rely on them heavily for web applications. Sometimes the
> only way to make a usable app is to use framesets (Windows Explorer,
> Outlook, Eudora etc).
vbscript :-)
/ZW
ZoombyWoof Guest
-
ZoombyWoof #6
Re: Refresh problem
On Tue, 25 Nov 2003 13:28:30 +0000, André Nęss wrote:
You may be right, I'm not experienced enough in PHP or HTML to argue with> ZoombyWoof:
>>>> Well, I have discovered that yes, but what if I still want my frames ? :-)
>> It's quite nice to have a left frame so navigation gets easy, then I dont
>> have to have links to everything on every page...and I want to be able to
>> at all times see under what username I'm using the application without
>> having to spell it out on every page...
> You don't need frames to achieve any of those things. Just use PHP. All the
> websites I've written in PHP consist of a single page (index.php), which
> then selectively includes the rest of the site.
>
> André Nęss
you, but why do a lot of people think Frames are a bad thing ? I find it
easy to navigate a site without having to click "Back" or try to find the
link that gets back to a index page or whatever...
This is maybe a religion thing, like C or C++, or Windows or Unix or...
/ZW
ZoombyWoof Guest
-
Geoff Berrow #7
Re: Refresh problem
I noticed that Message-ID: <bpvilj$man$1@maud.ifi.uio.no> from André
Nęss contained the following:
There are search engine and accessibility issues as well.>Because frames break the fundamental relationship between a URL and a
>document. Ever tried to email a link to a framed document to someone?
>"Well, uh, you go to this URL: [url]http://www.example.com[/url], and then you click
>on 'Images'...". If frames hadn't been used you could just send
>[url]http://www.example.com/images[/url] instead.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs [url]http://www.ckdog.co.uk/rfdmaker/[/url]
Geoff Berrow Guest
-
Kevin Thorpe #8
Re: Refresh problem
André Nęss wrote:
Confuses Google badly though doing that. I tend to prefer to let> ZoombyWoof:
>
>>>>Well, I have discovered that yes, but what if I still want my frames ? :-)
>>It's quite nice to have a left frame so navigation gets easy, then I dont
>>have to have links to everything on every page...and I want to be able to
>>at all times see under what username I'm using the application without
>>having to spell it out on every page...
>
> You don't need frames to achieve any of those things. Just use PHP. All the
> websites I've written in PHP consist of a single page (index.php), which
> then selectively includes the rest of the site.
documents stand on their own. That way I can hand styling and content
changes to the designers instead of doing it all myself.
document.php
<?php include('layout.lib'); ?>
<html>
<head>
<link rel="stylesheet" src="/style.css">
<?php layouthead(); ?>
</head>
<body>
<?php layouttop(); ?>
....
....
<?php layoutbottom(); ?>
</body>
</html>
Where layout.lib contains the three called functions to add div/tables
to frame the document. That way the designer can work on plain pages and
the users get them nicely framed. More importantly I don't have to look
at the crud that DreamWeaver puts in the HTML.
....and finally. I have to do a browser check in layout.lib to avoid
adding the layout content for screen readers, lynx etc. When I used
frames this tended to fix itself as simple browsers didn't honour the
javascript to pop a document into the frameset.
Kevin Thorpe Guest
-
André Nęss #9
Re: Refresh problem
ZoombyWoof:
You don't need frames to achieve any of those things. Just use PHP. All the> Well, I have discovered that yes, but what if I still want my frames ? :-)
> It's quite nice to have a left frame so navigation gets easy, then I dont
> have to have links to everything on every page...and I want to be able to
> at all times see under what username I'm using the application without
> having to spell it out on every page...
websites I've written in PHP consist of a single page (index.php), which
then selectively includes the rest of the site.
André Nęss
André Nęss Guest
-
André Nęss #10
Re: Refresh problem
ZoombyWoof:
Because frames break the fundamental relationship between a URL and a> You may be right, I'm not experienced enough in PHP or HTML to argue with
> you, but why do a lot of people think Frames are a bad thing ? I find it
> easy to navigate a site without having to click "Back" or try to find the
> link that gets back to a index page or whatever...
document. Ever tried to email a link to a framed document to someone?
"Well, uh, you go to this URL: [url]http://www.example.com[/url], and then you click
on 'Images'...". If frames hadn't been used you could just send
[url]http://www.example.com/images[/url] instead.
If you think frames makes sites easier to navigate, that's just because the
non-frame pages were poorly designed in the first place.
André Nęss
André Nęss Guest
-
André Nęss #11
Re: Refresh problem
Kevin Thorpe:
Not really, you can easily access articles as [url]www.example.com/articles/2363[/url]> André Nęss wrote:
>>>> ZoombyWoof:
>>
>>>>>>>Well, I have discovered that yes, but what if I still want my frames ?
>>>:-) It's quite nice to have a left frame so navigation gets easy, then I
>>>dont have to have links to everything on every page...and I want to be
>>>able to at all times see under what username I'm using the application
>>>without having to spell it out on every page...
>>
>> You don't need frames to achieve any of those things. Just use PHP. All
>> the websites I've written in PHP consist of a single page (index.php),
>> which then selectively includes the rest of the site.
> Confuses Google badly though doing that. I tend to prefer to let
> documents stand on their own. That way I can hand styling and content
> changes to the designers instead of doing it all myself.
by extracting the variables from the url, and that way you maintain the
URL->Document relationship.
But are you sure Google isn't able to understand stuff like:
index.php?article=23. After all, this is a different URL from
index.php?article=24.
André Nęss
André Nęss Guest
-
Richard Grove #12
Re: Refresh problem
"ZoombyWoof" <zoombywoofremove@thishotmail.com> wrote in message
news:pan.2003.11.25.10.52.03.110275@thishotmail.co m...In> On Tue, 25 Nov 2003 10:27:50 +0000, Kevin Thorpe wrote:
>> > ZoombyWoof wrote:
> >> >> Hi. I have a Framed page, and in the "main" frame a userchoise is made.blablabla )",> >> my "top" frame I have a table containing some status info, the current
> >> logged on user (the username is saved in a SESSION variable) and some
> >> stuff like that. If I in the "main" frame change user (its a drop down
> >> list with choices from a MySQL DB) I would like to reflect that in the
> >> status row in the "top" frame. If I do a "header( Locationdesirable...> >> that page is shown in the "main" frame, which of course is not"top"> >>
> >> If I hit the "Refresh" button in Internet Explorer, everything updates
> >> just fine, all the frames get updated and refreshed, including thewithing> >> frame with the new username showing. How do I do this refresh fromApache> >> my php script that chooses a new user ? I have looked in the php-manual
> >> but havent been able to find anything about this.
> >>
> >> Any help would be very appreciated. I use PHP 4.3 on a RH 9.0 withrefreshing.> >> >> 2.0.47
> >> Thanx.
> > You'll have to resort to javascript (or vbscript <ugh!>) to do this.
> >
> > In the main frame you can insert the following if 'top' needs>> >
> > <script language="javascript">
> > window.parent.top.location.reload();
> > </script>
> >
> > Using frames or not is sort-of a holy war. They are badly supported for
> > some browsers, especially screen readers for blind users etc. I try and
> > avoid using them for anything other than cosmetic reasons for the public
> > parts of my websites (convenient sidebar menu etc) in case they aren't
> > supported but rely on them heavily for web applications. Sometimes the
> > only way to make a usable app is to use framesets (Windows Explorer,
> > Outlook, Eudora etc).
> Thanx a lot. I will try the javascript method as soon as I can, No
> vbscript :-)
>
> /ZW
>
Not all users have javascript enabled.
As I said originally, ditch the frameset, it will save you time and effort
whilst providing a better site, not only for users, but for search engines.
If you are worried about providing the same nav on each page, simpley do a
nav.php file and include it in all pages.
include("nav,.php");
Regards
Richard Grove
[url]http://shopbuilder.org[/url] - ecommerce systems
Become a Shop Builder re-seller:
[url]http://www.affiliatewindow.com/affiliates/merchantdetails.php?mid=611[/url]
[url]http://www.affiliatewindow.com/a.pl?590[/url]
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
Version: 6.0.542 / Virus Database: 336 - Release Date: 18/11/2003
Richard Grove Guest
-
sunny #13
Refresh problem
I use javascript to modify the label. when I refresh the web page. I lost
the modification. How can I put it into ViewState or How can I know whether
it is a refresh or regular postback in code behind?
any idea?
Thanks
Sunny.
sunny Guest
-
Eliyahu Goldin #14
Re: Refresh problem
Sunny,
If you modify the html presentation of an asp.net Label control, you need to
communicate the change to the server. You can use an <input type = "hidden">
for this. On server side you get the value from the hidden input and set the
label.
What does it have to do with differentiation between a refresh or regular
postback in code behind? It's another question. Browser refresh button
always repeats the last postback. On server side you can tell the difference
if you include a unique piece of data in the postback, for example a
timestamp. On the server you compare the timestamp that just came with the
one from the previous postback. If it's the same, it must be a refresh and
not an another postback.
Eliyahu
"sunny" <jksunny88@hotmail.com> wrote in message
news:%237KFWnzBFHA.3092@TK2MSFTNGP10.phx.gbl...whether> I use javascript to modify the label. when I refresh the web page. I lost
> the modification. How can I put it into ViewState or How can I know> it is a refresh or regular postback in code behind?
>
> any idea?
>
> Thanks
>
>
> Sunny.
>
>
Eliyahu Goldin Guest
-
Recep Kocur #15
Refresh Problem
Hi
We have a strange problem with editor of contribute. While I navigate on
pages, the editor refreshes itself and changes the address in URL area.
Our web address includes some parameters like;
[url]http://www.sabanciuniv.edu/?Arastirma/Arastirma.html[/url] .
And also we do not want to write index.php. We use generally parameters like
"...edu/tr/?and_parameters".
Normally, address is [url]http://www.sabanciuniv.edu/?Arastirma/Arastirma.html[/url] but
after it refresh it becomes [url]http://www.sabanciuniv.edu/index.php[/url]
How can we stop auto refreshing please?
Recep Kocur Guest
-
LDudd #16
Re: Refresh Problem
Think it may be JavaScript related
I had a look at your site and it keeps asking me to install a language pack
that I dont have the disk for.
I then disabled JavaScript using an IE browser and managed to get to
[url]http://www.sabanciuniv.edu/?Arastirma/Arastirma.html[/url] without it asking me for
the language pack.
I dont know how you do this it CT though.
LDudd Guest



Reply With Quote

