Connecting Tech Pros Worldwide Forums | Help | Site Map

Javascript avail test without get_browser and browscap

Eduardo
Guest
 
Posts: n/a
#1: Sep 5 '06
Hi people, I need some help.
A important proccess in my application need to know if the browser
avail javascript, using server-side code, but the server have not
browscap.ini. Somebody may help me?

thanks a lot


Jerry Stuckle
Guest
 
Posts: n/a
#2: Sep 5 '06

re: Javascript avail test without get_browser and browscap


Eduardo wrote:
Quote:
Hi people, I need some help.
A important proccess in my application need to know if the browser
avail javascript, using server-side code, but the server have not
browscap.ini. Somebody may help me?
>
thanks a lot
>
You can't tell server-side if js is available or not. You have to do it
client side, then let the server know.

For instance, you could set a hidden field in a form to 0 and change it
to 1 in js code. Then when the forum is submitted you can check the
field to see if js is enabled or not.

There are any number of other ways, but they all depend on js taking
some action client side which can be detected server side.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Sandman
Guest
 
Posts: n/a
#3: Sep 5 '06

re: Javascript avail test without get_browser and browscap


In article <1157487138.995769.131930@e3g2000cwe.googlegroups. com>,
"Eduardo" <eduardo.rosa@gmail.comwrote:
Quote:
Hi people, I need some help.
A important proccess in my application need to know if the browser
avail javascript, using server-side code, but the server have not
browscap.ini. Somebody may help me?
>
thanks a lot
That won't let you know if Javascript is turned on, only if javascript
is available for that browser.


--
Sandman[.net]
Closed Thread