W3C home > Mailing lists > Public > www-html@w3.org > July 2006

Re: xhtml 2.0 noscript

From: magick <jasper.magick@gmail.com>
Date: Mon, 31 Jul 2006 00:21:26 -0400
To: www-html@w3.org
Message-id: <44CD8546.9040500@gmail.com>

No that won't work because it will open the image in a pop-up *and* in 
the window.  So it just opens the image twice.
So far you still didn't show me why <noscript> isn't needed in this 
situation.  Since that method you posted doesn't work.


> > ... <noscript> *is* needed here.
>
> No it isn't.
>
> > <script type='text/javascript'>
> > <!--
> > document.write("<p><a href='javascript:sword_enlarge()'><img 
> > src='thumb_sword.gif' alt='My Sword' /></a></p>");
> > //-->
> > </script>
> > <noscript><p><a href='sword.gif'><img src='thumb_sword.gif' alt='My 
> > Sword' /></a></p></noscript>
>
> This is handled much more easily by doing this:
>
> <a href="sword.gif" onclick="annoyingPopup();"><img 
> src="thumb_sword.gif" alt="..."/></a>
>
> The annoyingPopup() function can then just read the value of the href 
> attribute so it knows what content to load in the window.  To make that 
> even better, the function could be added as a listener of the click 
> event dynamically, instead of using the onclick attribute.
>
> -- 
> Lachlan Hunt
Received on Monday, 31 July 2006 04:21:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:07 GMT