Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 10:01
NonLinear NonLinear is offline
Registered User
 
Join Date: Feb 2004
Posts: 93
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, 12: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, 20:24
rokslide rokslide is offline
Coffee Minion
 
Join Date: Nov 2003
Location: Sydney
Posts: 1,515
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

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