homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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?

 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]

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


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



 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? ;)


 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