Connecting Tech Pros Worldwide Help | Site Map

passing url

  #1  
Old September 3rd, 2008, 01:44 PM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Posts: 86
hi
all

its me again

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

thanks in advance
chel-1
  #2  
Old September 3rd, 2008, 03:30 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,525
Provided Answers: 12

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.
  #3  
Old September 4th, 2008, 04:31 AM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Posts: 86

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
  #4  
Old September 4th, 2008, 11:22 AM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,525
Provided Answers: 12

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);
  #5  
Old September 9th, 2008, 11:22 AM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Posts: 86

re: passing url


thanks all

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

re: passing url


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in Passing URL to Browser PraveenKadkol answers 6 January 25th, 2007 07:23 PM
updating URL and passing URL info with frames and js... netling answers 2 January 24th, 2007 09:05 AM
open.window() and passing URL string wayne answers 29 August 29th, 2005 04:25 PM
Syntax? passing url parameters in asp TNGgroup answers 7 July 19th, 2005 02:50 PM