[thelist] PHP/Javascript/NN/sessions

Bill Haenel bill at webmarketingworx.com
Tue Oct 2 09:56:27 CDT 2001


OK - here's what appears to have happened...

In NN only, mind you, which makes it a little odd, but anyway...

To fix the problem, I wrote an 'if (session_is_registered("stringname"))'
into the top of the window that was opened to display the links from the
session variables. If the session variable is registered, it writes the
HTML, links and all. If it is not, it refreshes the window. This fixed the
problem completely. In fact, as a result of this fix, in NN (Mac and PC),
the window pops open, but takes a few seconds to show any contents, but when
it finally shows, it works. In IE, the contents show immediately and
correctly.

So it seems that the issue was related to the time it takes a session to
register, and NN writing the HTML before it was complete. I don't understand
this, since the session variables are stored on the server, right? So why a
difference between NN and IE? I dunno, but it works now.


> -----Original Message-----
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of nate
> Subject: RE: [thelist] PHP/Javascript/NN/sessions
>
>
> just a thought:
> where is your javascript coming from? try putting it in the <head> of the
> page instead of linking it in from a .js file. i wasn't working with
> sessions, but i've see netscape choke on syncronized (or at least time
> dependent) functions such as your situation.
>
> if you can isolate the section that NN is choking on, maybe you can just
> write that piece in the head, and return the rest of the .js to
> an included
> file.
>
> not much, but HTH,
>
> -nate
>
> -----Original Message-----
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Bill Haenel
> Subject: [thelist] PHP/Javascript/NN/sessions
>
> <snip>
>
> This all works very well, and when you click on the links, they all go to
> the right place, EXCEPT in NN4.7 on the first load-up.
>
> In order for the links to work in NN4.7, the window must be refreshed. The
> strings from the session are making it to the page, and when I
> view source,
> I can see that everything was written properly.
>
> </snip>





More information about the thelist mailing list