Click Event

  • Thread starter Thread starter Murphy
  • Start date Start date
M

Murphy

As I understand the click event is initiated by JavaScript what happens in
the event where a browser has disabled client side scripting or doesn't
support it ?

If writing a site is it better to avoid the click event and include all code
in the "Load" event of the page ?

Thanks

Murphy
 
Maybe so however that does not answer my question, as well as those that
disable client side scripting not all browsers support it.
 
The advantages of using javascript are so critical that I would not care
about disabling scripting.

Eliyahu
 
Disabling client-side scripting in an ASP.Net web application is most likely
going to disable the app. Client-side events can not be handled on the
server without it. While it is certainly possible to write an ASP.Net app
that doesn't use client-side scripting, it is not designed to be used that
way.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
if client scripting is disabled, the controls that do auto postback will not
post back. if you want your pages to run with scripting disabled, limit
yourself to:

1) use <asp:button>, <input type=submit>, or <input type=image> for
postback support (click events will fire)
2) with links, supply the actual url at page load, do not use the click
event to do a redirect
3) supply serverside validation routines.
4) use repeaters not grids and don't break the above rules in the repeater.

-- bruce (sqlwork.com)
 
Back
Top