Connecting Tech Pros Worldwide Forums | Help | Site Map

passing url

chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Posts: 87
#1: Sep 3 '08
hi
all

its me again

Is it possible to passing asn url or any other pages through javascript.

thanks in advance
chel-1

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Sep 3 '08

re: passing url


What's an "asn url"? Or was that supposed to be "a url"?

Show what you mean by code or an example.
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Posts: 87
#3: Sep 4 '08

re: passing url


Quote:

Originally Posted by acoder

What's an "asn url"? Or was that supposed to be "a url"?

Show what you mean by code or an example.


oh sorry

ya thats url

thanks
chel-1
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: Sep 4 '08

re: passing url


This is a simple example:
Expand|Select|Wrap|Line Numbers
  1. location.href = "http://www.example.com/index.php?url=" + encodeURIComponent(url);
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Posts: 87
#5: Sep 9 '08

re: passing url


thanks all

with thanks
chel-1
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#6: Sep 9 '08

re: passing url


You're welcome. Glad it's working.
Reply