Connecting Tech Pros Worldwide Help | Site Map
Reply
 
LinkBack Thread Tools Search this Thread
  #1  
Old September 3rd, 2008, 01:44 PM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Age: 23
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, 03:30 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,964
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, 04:31 AM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Age: 23
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, 11:22 AM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,964
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, 11:22 AM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Age: 23
Posts: 86
Default

thanks all

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

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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 205,248 network members.