The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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 |
#2
|
||||
|
||||
![]()
bump
|
#3
|
||||
|
||||
![]()
Nobody knows this?
![]() |
#4
|
|||
|
|||
![]()
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. |
#5
|
|||
|
|||
![]()
I think you have to use <noscript> I couldn't find anything in any of the $show variables.
|
#6
|
|||
|
|||
![]()
what exactly do you want to do?
maybe this method http://www.developer-network.org/showthread.php?t=40 helps you |
#7
|
||||
|
||||
![]()
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.
|
#8
|
|||
|
|||
![]()
Btw, I have came up with a workaround for anyone who needs this: https://vborg.vbsupport.ru/showthread.php?t=162673
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|