Solved

Is it possible to trigger an action / open a file when a website is visited?

Posted on 2014-09-05
7
216 Views
Last Modified: 2014-09-17
I want to have some type of event fire when a user visits a specific web address, is this possible?

To be more specific, when a user goes to a payment portal, I want to have a file open (or similar) that will have 'On Open'  code in it to send an email.

To clarify, what will actually take place I have covered, I only outlined to give perspective, but the bit I am missing is making this fire based on a web address being visited.
0
Comment
Question by:altosax
  • 3
  • 3
7 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 40306313
javascrip has an onload event that will fire when a web page loads.  I expect you could use that, though it will only work in browsers that have javascript.
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 40306442
And be careful of what you try to do. LOTS of people take offence at automation on a page that they never consented to.
0
 

Author Comment

by:altosax
ID: 40309965
Thanks very much Paul, I will learn how to do just that, it sounds like exactly what I need.

Thanks for the concern Neil, very valid point, however this is something they will welcome with open arms as they constantly forget to do the required actions after visiting this site. Appreciate the thought though.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:altosax
ID: 40326907
Just to double check Paul, I am not the writer of the website. Not sure if that got lost in translation. I just want to trigger a batch file or vb file or some such, to kick off whenever someone visits a particular website. To put it in perspective, it is a webpage where our users take a credit card payment, but they invariably forget to then add the payment into our system, so I want the fact that they visited the site to trigger a pop up that will ask them if they took a payment whilst on the webpage.

Is this still feasible with your suggestion?
0
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 500 total points
ID: 40327969
My suggestion would require a change to the web page itself.  If you don't own the site, or can't compel the owner to make the change, my suggestion won't do you much good.

Indeed, short of writing an application that opened the web page and simultaneously prompted the user to do their due diligence, I can't think of another way to accomplish what you want.  I suppose you could set up some sort of batch file, but the user would have to launch the batch file each time, and if they can remember to do that, they can remember to enter the payment into your payment system.

Aside from some sort of checklist, I don't see any other way to do what you're after.
0
 

Author Comment

by:altosax
ID: 40328545
I think you have hit on about the best we can get. I will have a batch file that opens the site and then also runs vb code that will accomplish the other stuff. Thanks Paul.

I will install a different browser for everyone and have it open in that, so normal browsing isn't affected and will have a pause in the batch file and then close the site after a period of time they define for me.

Thanks again.
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 40328656
Happy to have helped!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question