- From: Jesper <struktor@gmail.com>
- Date: Thu, 18 Jan 2007 02:19:00 +0100
- To: David Dorward <david@dorward.me.uk>, www-validator@w3.org
Hi David, Thank you for the fast reply, I was aware of the <![CDATA[/*> code as it is mentioned on W3's page here http://www.w3.org/TR/xhtml1/#h-4.8 but this doesn't work, when I add it then the code is hidden from the page, and hence useless :) I usually avoid javascripts unless they are 100% required, and I know that DynamicDrive isn't the best source, but it was the only I could find that worked with both MSIE and Firefox, and as my self, I tend to forget stuff easily, which is why the bookmark reminder is there :P After reading the section you pointed me to at http://www.hixie.ch/advocacy/xhtml I learned that Scripts that use document.write() will not work in XHTML contexts. (You have to use DOM Core methods.), I never heard of that, can it really be true and do you know of the Dom Core method? Cause I don't think that I do. In any case if I can not get it to work, I have to find a different solution or simply remove it from the site(s), as there is nothing more annoying than broken websites (speaking from experience as a Linux/Firefox user). I am not sure what you meant with: > Why would activating the "Download File" function in my browser do > anything related to bookmarking? Activating what download file ? _ Kind regards Jesper David Dorward wrote: > On Wed, Jan 17, 2007 at 06:04:42AM +0100, Jesper wrote: > >> I have without luck many a' times tried to resolve this problem with a >> little javascript snippet to add a page to bookmarks/favorites, I need some >> advise, the best answer for me is ofcourse the solution since I have >> already read tons of pages including http://www.w3.org/TR/xhtml1/#h-4.8 >> without being able to find a workable solution >> > > "An alternative is to use external script and style documents." is > mentioned at the URL referenced and is a reasonable solution. > > There's always the hixie method though: > http://www.hixie.ch/advocacy/xhtml (first mention under "specific > problems") > > >> The javascript: which is from dynamicdrive >> > > FWIW, I'm yet to see any code from that site which I would be > comfortable using on a public website. > > >> <body> >> <script type="text/javascript">document.write(<a class='allw' >> href="javascript:bookmarksite('Jesper\'s Site >> [luvaduck.homelinux.org]','http://luvaduck.homelinux.org')"><span >> class='xscb'>Never forget this site, Bookmark it now !</span></a>);</script> >> > > ... I know how to use the bookmark function in my browser. I suspect > that people who don't know how would have trouble using it to get back > the site. > > >> <noscript><p class="xsyc">Javascript is disabled in your browser, Press >> CTRL+D to bookmark this site now!</p></noscript> >> > > Why would activating the "Download File" function in my browser do > anything related to bookmarking? > > (See previous comment regarding quality of code at dynamic drive) > >
Received on Thursday, 18 January 2007 01:19:14 UTC