Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript Enable

Status
Not open for further replies.

juanferman

Programmer
Nov 14, 2001
40
US
Hi guys,

Do you know how can i know if the browser has desable javascript ?

There is any way to submit a form with out javascript (e.g using VBScript or so ) ?

Thanks in advance, any help will be very helpfull.
===================
::) Juan F. Sarria
 
It is not possible to know if javascript is disabled or not.
You can workaround it by using javascript redirect: if you are redirected to some particular page, you can be sure that it's scripts will be executed. Otherwise - if you stay on default page - you have to assume that javascript is disabled.

But there's no any connection to forms submission. If you have <input type=submit> in your form it will activate submit process once it was clicked.
Any validation functions will not work, of course.

good luck
 
There is a way to check to see if Javascript is enabled or not, and that's with ASP. Other than that, you can't check to see if Javascript is enabled or not.
 
Of course you can check to see if Javascript is disabled: Just try to run a small very standard javascript function. If the function doesn't run, then Javascript is disabled. The function could do as simple a thing as re-direct the browser. Thus, if the browser has Javascript, the user will be directed to a new page, and if the browser has disabled Javascript, the user will remain on the starting page. -------------------------------------------

&quot;Calculus is just the meaningless manipulation of higher symbols&quot;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-unknown F student
 
But then what do you check with to see if the Javascript ran? There's no way to check with Javascript to see if Javascript ran because the checking function won't do anything either. That's why you'd have to use ASP, where the server itself will check. With client-side Javascript, if you're not on the client computer, you can't tell what's happening without some kind of feedback outside if client-side Javascript, or any other client side scripting.
 
Good trollacious,

Do you have any ASP code to do so ?



===================
::) Juan F. Sarria
 
This ASP code is in Javascript.

<%
var browser=Server.CreateObject('MSWC.BrowserType');
if (browser.javascript)
{
//if javascript is enabled in the browser
}
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top