If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Urgent: Encloding URL's using Java script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-29-04, 01:59
sachin_mt sachin_mt is offline
Registered User
 
Join Date: Jan 2003
Posts: 106
Urgent: Encloding URL's using Java script

I have a javascript function as folows

function show(url)
{
window.open('access_wind.asp?displayurl='+url+'&fl ag=1');
}

Now as you can see the url passed to the funcion is again being passed to an ASP access_wind.asp using query string.

If the url passed is simple like http://www.google.com there is no problem but assume the url itself has some query string parameters,say
"http://www.google.com?srch=sa&find=ba"

now the access_wind.asp is called as follows
"access_wind.asp?displayurl=http://www.google.com?srch=sa&find=ba&flag=1

now this flag is a query string passed to access_wind.asp not www.google.com,how do we handle this situation,is there any workaround for this,any encoding or is it possible to separate the query string passed to access_wind and google.com.

Pl. help,as this is very urgent
__________________
Sachi
Reply With Quote
  #2 (permalink)  
Old 04-29-04, 03:07
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
__________________
Tim
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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