473,486 Members | 2,429 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to post a url..

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??

Jul 27 '06 #1
8 1374
KPR wrote:
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
Jul 27 '06 #2
KPR

Vincent van Beveren wrote:
KPR wrote:
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
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

Jul 27 '06 #3
KPR wrote:
<snip>
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.

Jul 27 '06 #4
KPR
Wow.. now I didn't think of that approch.. great tip thanks..

Richard Cornford wrote:
KPR wrote:
<snip>
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.
Jul 27 '06 #5

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

Richard Cornford wrote:
KPR wrote:
<snip>
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.


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

good luck

Jul 27 '06 #6
amit said the following on 7/27/2006 5:42 PM:
KPR wrote:
>Wow.. now I didn't think of that approch.. great tip thanks..

Richard Cornford wrote:
>>KPR wrote:
<snip>
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.

Yes, Richard is right.
Of course he is.
That's the best solution unless you work it out using perl or paython.
And how do you propose to do that from the client?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 27 '06 #7

Randy Webb wrote:
amit said the following on 7/27/2006 5:42 PM:
KPR wrote:
Wow.. now I didn't think of that approch.. great tip thanks..

Richard Cornford wrote:
KPR wrote:
<snip>
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.
Yes, Richard is right.

Of course he is.
That's the best solution unless you work it out using perl or paython.

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

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

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

Jul 27 '06 #8
amit said the following on 7/27/2006 6:36 PM:
Randy Webb wrote:
>amit said the following on 7/27/2006 5:42 PM:
>>That's the best solution unless you work it out using perl or paython.
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?
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.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 28 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
3102
by: Thomas Scheiderich | last post by:
I am trying to understand Session variables and ran into a question on how they work with data that is passed. I have an HTM file that calls an ASP file and sends the name either by GET or POST....
1
4755
by: khawar | last post by:
my application is in asp.net using C# hi guys having a complicated problem i am using payflowlink to process CC payments I have to send a httppost to their servers. The problem is how do i do a...
2
12532
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
1
2955
by: Manuel | last post by:
I have to log into a website and retrieve some information. The problem is that the post isn't "normal". I'm used to passing post values in the form of: Variable1=Value1&Variable2=Value2 etc. I...
10
3386
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
24
2856
by: moriman | last post by:
Hi, The script below *used* to work. I have only just set up a server, PHP etc again on my Win98 system and now it doesn't? On first loading this page, you would have $p = and the button...
9
3073
by: c676228 | last post by:
Hi, I am new to this discussion forum. I started to post questions on this forum since this Jan. and got many good responses and I am very appreciated to those who are willing to help with their...
3
4888
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every 20 seconds. But if the post rate is increased to...
10
15627
by: Peter Michaux | last post by:
Hi, All Ajax libraries I've read use encodeURIComponent() on the name- value pairs extracted from forms before POST ing the result to the server with and xmlhttprequest. I can understand why...
0
7105
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7132
Oralloy
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,...
0
7180
jinu1996
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...
1
6846
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...
0
7341
tracyyun
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...
0
3076
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...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
266
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.