Connecting Tech Pros Worldwide Help | Site Map

passing url

 
LinkBack Thread Tools Search this Thread
  #1  
Old September 3rd, 2008, 12:44 PM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Age: 24
Posts: 86
Default passing url

hi
all

its me again

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

thanks in advance
chel-1
Reply
  #2  
Old September 3rd, 2008, 02:30 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,257
Default

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

Show what you mean by code or an example.
Reply
  #3  
Old September 4th, 2008, 03:31 AM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Age: 24
Posts: 86
Default

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
Reply
  #4  
Old September 4th, 2008, 10:22 AM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,257
Default

This is a simple example:
Expand|Select|Wrap|Line Numbers
  1. location.href = "http://www.example.com/index.php?url=" + encodeURIComponent(url);
Reply
  #5  
Old September 9th, 2008, 10:22 AM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Age: 24
Posts: 86
Default

thanks all

with thanks
chel-1
Reply
  #6  
Old September 9th, 2008, 11:19 AM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,257
Default

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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.