473,499 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Click Event

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
Nov 18 '05 #1
4 1138
The advantages of using javascript are so critical that I would not care
about disabling scripting.

Eliyahu

"Murphy" <mu****@murphy.com> wrote in message
news:ep*************@tk2msftngp13.phx.gbl...
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

Nov 18 '05 #2
Maybe so however that does not answer my question, as well as those that
disable client side scripting not all browsers support it.
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:u6*************@TK2MSFTNGP10.phx.gbl...
The advantages of using javascript are so critical that I would not care
about disabling scripting.

Eliyahu

"Murphy" <mu****@murphy.com> wrote in message
news:ep*************@tk2msftngp13.phx.gbl...
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


Nov 18 '05 #3
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.

"Murphy" <mu****@murphy.com> wrote in message
news:ep*************@tk2msftngp13.phx.gbl...
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

Nov 18 '05 #4
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)


"Murphy" <mu****@murphy.com> wrote in message
news:ep*************@tk2msftngp13.phx.gbl...
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

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
17237
by: Csaba2000 | last post by:
I want to be able to programatically click on the center of an <INPUT type=image ...> element (I only care about IE 5.5+). This should work regardless of whether IE has focus. Normally you would...
8
1999
by: George Hester | last post by:
In a page I have when the user left-clicks the page a Input box for a form gets the focus. But if the user right-clicks the page the Input box is not getting the focus. I'd like the Input box to...
7
15468
by: Paul Cooper | last post by:
Dear All, I am working on a piece of Javascript code that needs to detect a mouse-click, shift-click and control-click. The code is not my own - it is a part of a much larger suite of routines....
6
2830
by: Michael Johnson Jr. | last post by:
I am trying to handle a button click event, which updates a web control table with data. The button is dynamically created in the table itself. When I call updateTable() in the Page_Load the new...
5
6157
by: J McD | last post by:
Hi I have a DataGrid with an ImageButton column. When I click on an imagebutton I get a postback but it doesn't run the OnImgBtnClick method. I can actually comment out the line where I add this...
11
13845
by: CW | last post by:
I have message entry screen that's causing me a bit of an issue. At the moment, there are 2 buttons, one is used to send message to another user (btnSend) and another is used to send messages to...
11
2556
by: Terry Olsen | last post by:
How can I catch a right-click on a DropDownMenuItem?
41
4236
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
5
5834
by: kai | last post by:
Hi, In ASP.NET , what is the difference between OnClick and Click events for a button? Because we have button click event, it can trigger events, why we still need OnClick? Please help. ...
0
2932
by: Demetri | last post by:
I have created a web control that can be rendered as either a linkbutton or a button. It is a ConfirmButton control that allows a developer to force a user to confirm if they intended to click it...
0
7130
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5468
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.