Good day, I need help Please
I'm coding within a VBScript window and executing a javscript clientside.
The problem i have the below code ONCLICK executes the first click "Done.click ()" only and not the second click "___Submit.clic k()" -
fcLabel = "<INPUT type=button value='Process Data' onclick=Done.click(); ___Submit.click() language='javascript'>"
-
It works when i only have one click within the ONCLICK but not two.
I tried ";" "," " " behind the first click "Done.click ()"
Please Assist on getting to click both one after the other!
Regards
3 2076 Dormilich 8,658
Recognized Expert Moderator Expert
if you don’t quote the attribute value, it is by default terminated at the first whitespace (i.e. after the first function).
you should ALWAYS quote HTML attribute values.
a way more clean method is using event handlers: - // W3C
- input_elem.addEventListener("click", function(evt) { Done.click(); ___Submit.click(); }, false);
-
// cross-browser
-
addEvent(input_elem, "click", function(evt) { Done.click(); ___Submit.click(); }, false);
Thank You very much :) - fcLabel = "<INPUT type=button value='Process Data' onclick='Done.click(); ___Submit.click();' language='javascript'>"
-
Dormilich 8,658
Recognized Expert Moderator Expert
PS. language is not an attribute of <input> (you can use lang, but that’s related to spoken languages (English, French, etc.))
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: abs |
last post by:
Hi all.
Is that possible to call the onclick, onchange or other event from JS ? I
mean how to make the browser think that user clicked the element (onclick
event) ? Eg. I have <element onclick='myFunction()'> and I don't want to
call the myFunction() by writing its name in the code but I want to call the
onclick event without clicking :) I don't know how to explain it better, I
hope you know what I mean.
Best regards,
|
by: Robin Day |
last post by:
I run some code on the changed event of checkbox lists. Its quite simple,
nothing more than showing / hiding some other parts of the page.
Using Autopostback and Server side code works fine, but is far too slow,
especially if the users are on modems.
I need to quite simply, add some java code to the onclick event of the input
tags of a checkboxlist.
However... Attributes.Add adds the onclick attribute and code to the
outlying table that...
|
by: Niclas Lindblom |
last post by:
Hi,
I have a datagrid with linkbuttons. I would like to catch the click event
when a link button has been clicked and use the string from the text value
of the link button in a clientside Java script. Is this possible or should I
look for other ways of achieving this ?
Regards
Niclas
|
by: Helen |
last post by:
I've got some clientside script that runs when the selected index of a
select box changes. Now I need to swap my selectbox with an ASP.NET
radiobuttonlist (to solve some layout issues). I still need the
clientside script to run when the selected radio button changes, but
I'm having trouble registering onclick events with each of the radio
buttons.
I've tried registering an onclick attribute with each item:
item.Attributes +=...
|
by: IkBenHet |
last post by:
Hello,
Currently I am using a large input form on a website that is based on
ASP and JavaScript.
Depending on the values that are filled in by the user the forms does a
refresh and makes other input fields available to fill in. I use the
JavaScript OnChange function (=clientside) that creates a querystring
and does a refresh of the page. It works fine.
| |
by: Tony Joselin |
last post by:
Hi,
Does anyone know how/if I can trap for a user clicking on any menuitem in an
ASP.NET 2.0 menu. I know that I can add an onclick attribute to the menu
itself, but I can't seem to add this to an individual menu item.
I need to be able to know which menu item the user has clicked clientside
before the postback happens.
Thanks
|
by: Ryan Ternier |
last post by:
I have a check box on my page. When a user clicks this box I have a
confirmation box come up.
When the user clicks OK, true is returned, otherwise false.
Now, when true is Returened, I want the form to postback. I can't figure
out how to do this.
Here is the code I use to put the OnClick event on the CHeckbox.
|
by: Michael Groeger |
last post by:
Hi all,
I want to disable a button after it's clicked on the clients side, so that
this cannot be clicked twice. I tried this with adding the "onclick"
attribute to the button and disable the button then in javascript. Then I
tried it using Page.RegisterOnSubmitStatement(), but when I then click the
button the Click event is not fired on server side.
Any ideas?
|
by: shuttered |
last post by:
Can anyone help me on this? I just need more information on all aspects of it. For example : how to add, delete, edit fields. Can i add new tables etc..
i know it is MS version of javascript so it only works in IE but thats perfect for my project and so is the clientside aspect of it as well, i know is easily hacked but I'm not worried about that since it is going to be used in an intranet setting.
here is a sample of what i am talking...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |