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 > What is the parent.location=URL"?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-01-04, 09:01
NonLinear NonLinear is offline
Registered User
 
Join Date: Feb 2004
Posts: 97
What is the parent.location=URL"?

I have an .asp file that include a line with code in JavaScript:
<code>
if confirm(...)
{
parent.location='an URL with qry string'
}
</code>
What is the parent.location.Note that the URL is the current URL with QryString.
Thanks
Reply With Quote
  #2 (permalink)  
Old 10-01-04, 11:50
Td04 Td04 is offline
Registered User
 
Join Date: Mar 2004
Posts: 52
seems like if the confirm statement is true, the javascript send a querystring to your asp page (the same page).
This asp page presumable request the same query string and does sth with it, like inserting the queried value inside a SQL statement and runs that, usally in form of a var.

//Martin :-)
__________________
"Never underestimate a large number of morons"
Reply With Quote
  #3 (permalink)  
Old 10-04-04, 19:24
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
basically it is just setting the current windows location to the same page with the query string. why they don't just use the submit I don't know but effectively they are doing the same thing.
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