homepage Welcome to WebmasterWorld Guest from 54.227.215.140
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
a href="javascript:void(0)"
neat trick, but is it buggy in NN 6?
eeblet

10+ Year Member



 
Msg#: 115 posted 6:28 pm on May 17, 2002 (gmt 0)

Today just isn't my day for Netscape. I'm using a fairly standard trick....

<a href="javascript:void(0)" onClick="loadDetails( 'fooBar' )">

my JS is like this:

loadDetails( fileName ) {
detframe = document.getElementById( "details" );
detframe.src = "details.jsp?file=" + fileName;
[mysterious problem-solving alert( "hello" ) here]
colorDetails();
}

for some reason, in NN6, the page only loads into the iFrame properly when I have an alert in the line right before colorDetails(). When I don't have an alert there, the iFrame doesn't respond. anyone know what on earth could be causing this???

thanks!!!
beth

(edited by: tedster at 7:12 pm (utc) on May 17, 2002)

 

DrDoc

WebmasterWorld Senior Member drdoc us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 115 posted 6:52 pm on May 17, 2002 (gmt 0)

Beth, a little suggestion:

Why don't you chance the A tag to say <a href="javascript:loadDetails( 'fooBar' )"> instead? ;)

eeblet

10+ Year Member



 
Msg#: 115 posted 7:00 pm on May 17, 2002 (gmt 0)

thanks!!!!! such a no-brainer. duhhhhh.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved