By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,105 Members | 2,620 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,105 IT Pros & Developers. It's quick & easy.

javascript problems linking to anchor

P: n/a
nam
could someone please help me with this bizarre problem -

I've created a swf file at the top of my html page. The
swf file (using Swish) is simply a menu of 5 links to 5
anchor points on the html doc.
The procedure for linking files with swish (same as
Flash swf) is:
on release {
javascript('window.location.href('test.html#anchor name');
}

problem is that the buttons in the swf menu work fine
for the first 2 buttons that I press but not on the THIRD
attempt. For example: (press button 1 - links to anchor
'one'; press button 2 - links to anchor 'two'; BUT press
button 3 I get a BLANK page with error:

"javascript:window.location.href="test.html#one";v oid(0);"

It doesn't matter in which order I press buttons (1,2,3 or
3,2,1 or even 1,1,1) the problem always occurs on the
third attempt!!!

what the hell is going on? I've posted this to various forums
on the Net but noone seems to know what the problem is -
1) swish bug (no, because others have written exactly the same
code and it works for them),
2) java code (no, because a direct call from a link within the page
(rather than from swish) works. Also other java bits of code
seem to work). Others using the same javascript from Swish
have reported no errors.
3) IE6 bug... er...
4) my system is:
AMD Athlon 2.5
Geforce FX 128mb
256mb ram
win 98 (because it's relatively stable)
IE6
Flashplayer 6

any ideas anybody?

nam
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/03
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.