Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

sending a page to server



5:23 am on Mar 30, 2001 (gmt 0)

sorry the earlier question was not clear

in one page i'm entering the url to which i want to go by submiting the url.anyway that is over. what i want now is : if i'll click on a perticular link inside that page,then that page will be sent to server.and my job will be with some changes in that pages i'll display the page for client.
i just want you to tell how i can send the linked page to server with the help of javascript.
ok thanks a lot for a quick reply


7:59 am on Mar 30, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Welcome to the WebmasterWorld forum lips.

I'd like to try to help, but I still don't think I understand. Are you talking about creating the links dynamically, so that you don't know in advance what the URL for link will be? Are you using a FORM button to submit the URL?

You see, I'm not clear about your question. Please give a bit more detail, and we'll work it out.


9:34 am on Mar 30, 2001 (gmt 0)

Thanks for your reply...let me explain again:
When i click on a link (that is ofcourse a string)
may be i just wan to send this string (for reference see how
bookmark is done ) to server.
how can this string be accessible.
server can do its operation after getting this link
are u getting
really thanks


11:23 pm on Mar 30, 2001 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

I don't know if it can been done with Javascript. I think you are looking for an upload script?


12:13 am on Mar 31, 2001 (gmt 0)

I may not be following you, but let me try.

You are on a page.

You see a link on a page.

You put your mouse on that link.

You want to understand how somebody made that link using javascript.

If that is your question,

1) If you are using Internet Explorer as your browser, go to the View menu and click on Source.

the file of the page you were looking at will be on your screen. It is the code to make the page.

3)The javascript should be at the top of the page inside the <head> </head> tags. You can find what url for the link you were pointing your mouse to.

Sometimes, people put javascript into a separate file that is not in the file that is downloaded to your computer when you "View Source". You might see something like this:

<script SRC="File_name_here.js"></script>

That is code to put javascript into a file outside of the current web page. It is called an "external file".

To see the external file, you need to go to your address window at the top of your browser and insert the file name after the domain name of the page you were first looking at.

I will use an example to explain.

The first page I am on is [bla.com....]

I put my mouse on a javascript link.

I want to understand how that link was made.

I go to the top of my browser in the "View" menu and click "Source"

The code of [bla.com...] is downloaded to my computer.

I look inside the <head></head> tags of that downloaded file and see this:

<script SRC="menu.js"></script>

In order for me to see the javascript file called "menu.js", I need to type this into my url window:


That will display the javascript code of the page. Then you can learn how to make the javascript link work.

In that page, you will also see the url to see where the javascript link goes.


Does that answer your question?

If that doesn't answer your question, can you please post the URL of the page you are having trouble with?

I think we may need to have this information to help you.


4:45 am on Mar 31, 2001 (gmt 0)

Thanks for your answer but sorry u couldn't get my question
ok see,in my html page i showed enter url:a text box, where i'm entering the url,
by submit i can go to that site.now i want if i'll click on any link in that page that perticular page will be sent to server( acgi program)
here one javascript is needed with onClick event handler
so that by clicking only i'll be able to send it to server program
am i clear now?
actually i want after accessing that perticular page server program will make some changes e,g change font etc(not exactly)
and display
ok reply soon


6:52 am on Mar 31, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Let's see if I've got this.

You have a textbox on your page where people can enter a URL. When they click on SUBMIT and send the data to your server, you link them to that site, and you also get a record of what site they went to.

Now, the person is on the next site, and not yours. You want to get a report about what link they click on that next site.

If that's your question, I've got bad news -- it can't be done. It would be a very big security and privacy problem if that kind of tracking was possible.

Of course, I realize I may not have the question right, even now. If so, feel free to explain some more. I'm having fun playing detective.


1:18 pm on Mar 31, 2001 (gmt 0)

ya u r right

Featured Threads

Hot Threads This Week

Hot Threads This Month