/    Sign up×
Community /Pin to ProfileBookmark

Use Link to automatically click on a button…I’ll explain…

I work for a company that uses VNC to remote connect to customer computers from time to time. What I want to do is create an email template that I can send to the customer with a link that automatically sends them to the webpage and also automatically clicks the “Connect” button on the page with the selected technician.

When they click the connect button now, it brings up a “Run – Save – Cancel” option so they can get connected. I want the link inside the email to bring up this option. So instead of the customers have to do 4 steps…it takes it down to 1.

I wasn’t sure if I should’ve posted this in the Java section so I just started here. Thanks.

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@KTspeedDec 23.2009 — it looks like clicking the button is linking them to another file I think? If that is the case, you could just like the link in the email to the same link the button goes to?
Copy linkTweet thisAlerts:
@imagefxauthorDec 23.2009 — It's not that simple actually. We use a piece of software that once we (the technicians) are logged in...then it shows on the site that we are available to be connected to. So the software plays a part in the site.
Copy linkTweet thisAlerts:
@KTspeedDec 23.2009 — I understand now, but I have no idea if this is possible, sorry?
Copy linkTweet thisAlerts:
@imagefxauthorDec 23.2009 — Is there no way to edit your posts?

Anyways...the button doesn't link to a file or URL. It links to "quick.aspx". So it seems maybe I have to decipher that?
Copy linkTweet thisAlerts:
@KTspeedDec 23.2009 — You can edit your post by clicking "edit" in the bottom right of your post.

As for your problem though, what if when they go to the webpage where the "button" is, the page auto redirected to "quick.aspx". Using this maybe:
[code=html]<meta http-equiv="refresh" content="0;url=quick.aspx">[/code]
Copy linkTweet thisAlerts:
@imagefxauthorDec 23.2009 — lol, now the edit button appears. weird...

I haven't coded in along time...so i'm bringing myself back up to speed. Here is the link to the webpage if you wanna see the code yourself.

http://labtech.paragon-ts.com/labtech/cc/
Copy linkTweet thisAlerts:
@KTspeedDec 23.2009 — I'm pretty sure that what you need to do is make the form submit automatically when the page is loaded.

This is the code for the from the webpage that needs to be submitted:
[CODE]<form [COLOR="Red"]id="theform"[/COLOR] method=post action=quick.aspx>
<Select Name=ID>
<Option value=4>tsantos</option>
<Option value=3>zhoffman</option>
</select>
&nbsp;&nbsp;
<input type=submit name=Action value=Connect>
</form>[/CODE]

The red part is what you will need to add in order to do this next part.

This can be done in javascript, but the only thing I wonder is if you need to have a default option selected in "select" element. I would guess you wouldn't need to though. So for the javascript, you could do something like this:
[CODE]window.onload=function(){document.getElementById("theform").submit()}[/CODE]
×

Success!

Help @imagefx spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...