Connecting Tech Pros Worldwide Forums | Help | Site Map

help me smart people

elibol@gmail.com
Guest
 
Posts: n/a
#1: Jan 3 '06
I've done some testing in IE and the location object doesn't update
when the address changes from a browser back or forward action unless
the page is reloaded or the page is called via javascript.

Is there any way for me to figure out what the address bar is after:

condition A: a browser's back or forward button pressed
condition B: and the change in address doesn't trigger a page reload

Is there an initiative that would allow me to force the location object
to regather data, or to call an initialization method that would
rebuild location?

Can I figure out what the address bar has changed to or whether it has
changed at all; and in which direction?

Are there any other javascript member that I could use to access the
change in the address bar under conditions A and B?

Thanks for taking the time to read about my problem,

H


Jasen Betts
Guest
 
Posts: n/a
#2: Jan 3 '06

re: help me smart people


On 2006-01-03, elibol@gmail.com <elibol@gmail.com> wrote:[color=blue]
> I've done some testing in IE and the location object doesn't update
> when the address changes from a browser back or forward action unless
> the page is reloaded or the page is called via javascript.
>
> Is there any way for me to figure out what the address bar is after:[/color]

after?
[color=blue]
> condition A: a browser's back or forward button pressed
> condition B: and the change in address doesn't trigger a page reload[/color]

are these alternatives?
[color=blue]
> Is there an initiative that would allow me to force the location object
> to regather data, or to call an initialization method that would
> rebuild location?[/color]

change the url
[color=blue]
> Can I figure out what the address bar has changed to or whether it has
> changed at all; and in which direction?[/color]

maybe.
[color=blue]
> Are there any other javascript member that I could use to access the
> change in the address bar under conditions A and B?[/color]

what are you doing now, and what do you want it to do.

Bye.
Jasen
elibol@gmail.com
Guest
 
Posts: n/a
#3: Jan 3 '06

re: help me smart people


Hi Jasen,

the solution you gave me before works well, I switched my setInterval
based property watcher from the flash object to the javascript document
like we discussed and it worked fine with some browser testing I did.
My new problem pertains from the same project. location.hash doesn't
update when the anchor hanges.
[color=blue]
> after?[/color]

The following conditions.
[color=blue]
> are these alternatives?[/color]

No, these are the conditions I was refering to above.
[color=blue]
> change the url[/color]

My problem is that I cannot read the address bar after the url changes
from a back or forward action that doesn't load another, or the,
document.

The problem is that I cannot read the address from the location object
when it changes under the conditions A and B I mentioned earlier.

You can test it out here:
http://www.anticipatechange.com/browserSupport/

set the anchor to:

test1
test2
test3

Those are valid named anchors in the html, the anchor generation also
needs to be dynamic, that is another problem that I will be solving
once I solve this one.

Thanks again for your help Jasen,

H

Jasen Betts
Guest
 
Posts: n/a
#4: Jan 4 '06

re: help me smart people


On 2006-01-03, elibol@gmail.com <elibol@gmail.com> wrote:[color=blue]
> Hi Jasen,
>
> the solution you gave me before works well, I switched my setInterval
> based property watcher from the flash object to the javascript document
> like we discussed and it worked fine with some browser testing I did.
> My new problem pertains from the same project. location.hash doesn't
> update when the anchor hanges.
>[color=green]
>> after?[/color]
>
> The following conditions.
>[color=green]
>> are these alternatives?[/color]
>
> No, these are the conditions I was refering to above.
>[color=green]
>> change the url[/color]
>
> My problem is that I cannot read the address bar after the url changes
> from a back or forward action that doesn't load another, or the,
> document.
>
> The problem is that I cannot read the address from the location object
> when it changes under the conditions A and B I mentioned earlier.
>
> You can test it out here:
> http://www.anticipatechange.com/browserSupport/
>
> set the anchor to:
>
> test1
> test2
> test3
>
> Those are valid named anchors in the html, the anchor generation also
> needs to be dynamic, that is another problem that I will be solving
> once I solve this one.
>
> Thanks again for your help Jasen,
>
> H
>[/color]

your page contains
<a name="test1" onFocus="alert('test1');"></a>
this is a bad idea.

http://www.anticipatechange.com/browserSupport/#test1


The rest of it only prints cryptic messages in the box at the bottom of the
screen. nothing asked me to install flash althoug parts of the source seem
to want it.


Bye.
Jasen
elibol@gmail.com
Guest
 
Posts: n/a
#5: Jan 4 '06

re: help me smart people


Hi Jasen,

Yes, the attribute is not supported on the a tag for netscape 4 and 6.
You're running flash player 7, I plan on writing the final code for
players 6+.

H

Closed Thread


Similar JavaScript / Ajax / DHTML bytes