i have just started using prototype and scriptalicous to add some cool effects to my web pages.
I am aware that you can add a message between <noscript> tags,
However my ideal solution would be to have an if function on the page, which would say
<cfif javascipt is enabled>
Progressive enhancement is what you should aim for, as opposed to graceful degradation. Steve Marshall wrote a great piece on the subject: http://nascentguruism.com/journal/grace
<a href ="#" onclick="show_help()">click here for help</a>
<a href ="show_help.html">click here for help</a>
ill check that link out as well
You could code it like this:
Then onload, fire a function that finds the link using it's ID and adds the onclick event to it (I think prototype makes that pretty easy). If you show_help(); return:false; the link's original href won't be followed.
<a id="help_link" href="help.html">help me please</a>
Does that make sense?
yes i think that makes sense..in this respect, couldnt you just have
<a id="help_link" href="help.html" onclick="show_help();">help me please</a>
It'd also need to be onclick="show_help(); return false;" to avoid the browser wandering off to help.html.
thanks for your help mr/ms gnarl..ha ha