How to post a url..

K

KPR

I am looking for a way to create an URL shortcut for IE that will grab
the current displayed url and post it to a remote website..

I figured out how to grab the current url, but I am having trouble
figuring out how to have the script post that data to a waiting website
without redirecting the page..

Any ideas??
 
V

Vincent van Beveren

KPR said:
I am looking for a way to create an URL shortcut for IE that will grab
the current displayed url and post it to a remote website..

I figured out how to grab the current url, but I am having trouble
figuring out how to have the script post that data to a waiting website
without redirecting the page..

Any ideas??

What are you trying to do???

Anyway, maybe you could create a HttpRequest object and send your info
that way?

Vincent
 
K

KPR

Vincent said:
What are you trying to do???

Anyway, maybe you could create a HttpRequest object and send your info
that way?

Vincent

I am behind a firewall/proxy at work so most of the sites I goto don't
work..

So I want to be able to bookmarks URLs on my server at home for later
visits.. I am tired of doing the old email cut and paste.. I took a
look at toread.cc but it does a redirect thing and its email ( which we
all get too much of )..

So I figured a javascript embeded in a shortcut to grab a url and post
it to a php webpage to parse the data and write it to a mysql db..

Kevin
 
R

Richard Cornford

KPR wrote:
So I want to be able to bookmarks URLs on my server at home for later
visits..
<snip>

Simplest would be to create an Image object:-

var img = new Image();

- and then put your server URL into its - src - property:-

img.src = "http:example.com/serverScript?url="+encodeURIComponent(url);

- resulting in a GET request to your server. You don't have to do
anything with the Image object after that (and cross-domain security
restrictions should be expected to prevent that anyway).

Richard.
 
A

amit

KPR said:
Wow.. now I didn't think of that approch.. great tip thanks..



Yes, Richard is right. That's the best solution unless you work it out
using perl or paython.

good luck
 
A

amit

Randy said:
amit said the following on 7/27/2006 5:42 PM:

Of course he is.


And how do you propose to do that from the client?


What I meant was not on client side but in general using perl you can
do that type of operations. was I wrong?
 
R

Randy Webb

amit said the following on 7/27/2006 6:36 PM:
What I meant was not on client side but in general using perl you can
do that type of operations. was I wrong?

Can PERL do something like what was asked? Not by itself. Because some
way or another you have to tell PERL (Or any other server side language)
what URL to process and that has to happen on the client.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top