Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old September 3rd, 2008, 01:44 PM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Age: 23
Posts: 82
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,593
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: 82
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,593
Default

This is a simple example:
[code=javascript]location.href = "http://www.example.com/index.php?url=" + encodeURIComponent(url);[/code]
Reply
  #5  
Old September 9th, 2008, 11:22 AM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Age: 23
Posts: 82
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,593
Default

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

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles