Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Refresh problem

    "ZoombyWoof" <zoombywoofremove@thishotmail.com> wrote in message
    news:pan.2003.11.25.00.32.13.855717@thishotmail.co m...
    > 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

    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

  4. #3

    Default Re: Refresh problem

    On Tue, 25 Nov 2003 09:11:36 +0000, Richard Grove wrote:
    > "ZoombyWoof" <zoombywoofremove@thishotmail.com> wrote in message
    > news:pan.2003.11.25.00.32.13.855717@thishotmail.co m...
    >> 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
    >
    >
    > Ditch the framesets, they complicate matters.
    >
    > Regards
    > Richard Grove
    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...

    /ZW
    ZoombyWoof Guest

  5. #4

    Default Re: Refresh problem

    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).


    Kevin Thorpe Guest

  6. #5

    Default Re: Refresh problem

    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. 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).
    Thanx a lot. I will try the javascript method as soon as I can, No
    vbscript :-)

    /ZW

    ZoombyWoof Guest

  7. #6

    Default Re: Refresh problem

    On Tue, 25 Nov 2003 13:28:30 +0000, 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.
    >
    > André Nęss
    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...

    This is maybe a religion thing, like C or C++, or Windows or Unix or...

    /ZW

    ZoombyWoof Guest

  8. #7

    Default Re: Refresh problem

    I noticed that Message-ID: <bpvilj$man$1@maud.ifi.uio.no> from André
    Nęss contained the following:
    >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.
    There are search engine and accessibility issues as well.

    --
    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

  9. #8

    Default Re: Refresh problem

    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.

    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

  10. #9

    Default Re: Refresh problem

    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
    André Nęss Guest

  11. #10

    Default Re: Refresh problem

    ZoombyWoof:
    > 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...
    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.

    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

  12. #11

    Default Re: Refresh problem

    Kevin Thorpe:
    > 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.
    Not really, you can easily access articles as [url]www.example.com/articles/2363[/url]
    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

  13. #12

    Default Re: Refresh problem

    "ZoombyWoof" <zoombywoofremove@thishotmail.com> wrote in message
    news:pan.2003.11.25.10.52.03.110275@thishotmail.co m...
    > 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.
    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).
    >
    > 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

  14. #13

    Default 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

  15. #14

    Default 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...
    > 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.
    >
    >

    Eliyahu Goldin Guest

  16. #15

    Default 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

  17. #16

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139