Can a button be clicked using events?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
lummis
 
 
Posts: 211
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Can a button be clicked using events?

Post by lummis »

I would like a button to be clicked automatically once a page has been loaded. I have looked at onload events but can't find a suitable option and suspect that I might need a separate script. Has anyone any suggestions as to how this might be achieved?

Brian
User avatar
BaconFries
 
 
Posts: 5316
Joined: Thu Aug 16, 2007 7:32 pm

Re: Can a button be clicked using events?

Post by BaconFries »

Has anyone any suggestions as to how this might be achieved?
Without sounding rude in anyway what so ever "Google"
Couple of examples
https://forums.asp.net/t/2069637.aspx?H ... ge+is+load+
https://stackoverflow.com/questions/539 ... d/53981378

button to be clicked automatically once a page has been loaded
https://www.google.com/search?q=button+ ... e&ie=UTF-8
lummis
 
 
Posts: 211
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: Can a button be clicked using events?

Post by lummis »

No offence taken BF - I had carried out a few searches (using Bing) but none seemed to give a definitive answer. I will explore your suggestions to see if I can get one to work.

I had hoped that there might have been an "off the shelf" solution that I had missed - perhaps just wishful thinking :)
lummis
 
 
Posts: 211
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: Can a button be clicked using events?

Post by lummis »

Thanks for your suggestions BF and I am pleased to say that I have got the following script to work

Code: Select all

<script>
window.onload=function(){
$("#Button1").click();
}
</script>
Now all I have to do is to get the sequence of events in the right order!

Brian
User avatar
BaconFries
 
 
Posts: 5316
Joined: Thu Aug 16, 2007 7:32 pm

Re: Can a button be clicked using events?

Post by BaconFries »

Glad to have helped
Post Reply