![]() |
If conditional for Javascript enabled?
Im planning on making an ajax mod, but i want people who dont have javascript turned on to be able to use it, but just not ajaxified, so what im after really is:
<if javascript is on>Do X</if> <if javascript is off>Do Y</if> I really hope there is something like this, or my project will be a bit crappy. James Bump |
bump
|
Nobody knows this? :o
|
I'm also wondering this.
I thought it was $show[popups] but it evaluates to true even with js being off. --------------- Added [DATE]1193843137[/DATE] at [TIME]1193843137[/TIME] --------------- Btw there is the html tag <noscript> which is equivalent to the second conditional that you/I need. What I am looking for is the first one. |
I think you have to use <noscript> I couldn't find anything in any of the $show variables.
|
what exactly do you want to do?
maybe this method http://www.developer-network.org/showthread.php?t=40 helps you |
The normal way of approaching this is to use a html link that is linked to your fallback (non-Javascript) page, and handle the onclick event for that link. In your onclick handler, do all your javascript/ajax and then return false, telling the browser not to follow the link. If there's no javascript, you'll go straight to the fallback page.
|
Btw, I have came up with a workaround for anyone who needs this: https://vborg.vbsupport.ru/showthread.php?t=162673
|
All times are GMT. The time now is 04:12 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|