473,322 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

how to close a particular pop up and display the message in another page

i have a link which pops out a new window and in that new window there is a forms which is used to update a record draw out from database depending on the the record id appended to the url like
edit-record.html?r-id=1;

now on the form where i will update the record and send the submit I made it in a way that once it is clicked on the pop up windows closes itself,

eg
Expand|Select|Wrap|Line Numbers
  1. <form action="edit.class.php" method="post" name="editform">
  2. <textarea>$row[record]</textarea>
  3. <input type="submit" onclick="self.close();" />
  4. </form>
now after the submit button is clicked it closes the pop up window and the update query is done behind the scenes in edit.class.php.

what i want to do is this, after the query is done in edit.class.php
Expand|Select|Wrap|Line Numbers
  1. if($sql){
  2. //result text shows in record.hmtl automatically and disappears
  3. }
  4. else if(!sql){
  5. //result text also shows in record.html automatically and disappears
  6. }
then I want the result of the query to be shown in records.html using something like Ajax (i don't know exactly) but once the text appears it also disappears automatically itself after let's say 5 mins
I don't know Ajax and all online solutions make me confused,

all i want is a tip of how to do it using some codes.
I will be very grateful
Oct 28 '11 #1
1 1709
acoder
16,027 Expert Mod 8TB
Is records.html the parent page, i.e. the one which contains the link to open the popup window?

If it is, you can use window.opener to refer to the parent window. You can display an element, e.g. div, with the message and use setTimeout to close after 5 seconds.

To display/hide, set the display property to "block"/"none" respectively.

That should get you started. If you get stuck, post your code.
Oct 30 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Matt | last post by:
I want to submit the form to the server without opening another page. When we do the following, it will submit the form data in myform to the IIS, and open page2.asp. <form name="myform"...
4
by: -DRB- | last post by:
Hi, I'm probably going to get harassed just for mentioning the unmentionable, but since I have if anyone could answer this question that would be much appreciated. As per the rather long...
10
by: vbMark | last post by:
Hello, I am doing this: window.location="page2.php?subj="+subj+"&body="+body; to send information to another page. However, I don't want that second page to show up or display in any way....
1
by: Mark | last post by:
I have created the following code to post data from a textbox to another page (post.aspx). I created the lblResponse to prove to myself that something was actually getting posted, and that works. ...
1
by: Rick Strahl [MVP] | last post by:
I often have the need to run templates that perform the equivalent of a mail merge as part of the processing for another page. For example, I have an invoice display page in my admin module and...
4
by: William LaMartin | last post by:
Is there a way to place an aspx page on a panel contained on another aspx page? I can display an HTML page on the panel using a literal can figure no way to put and aspx page there.
1
by: GTDriver | last post by:
I'm trying to determine how to create a page with data from the database and I want to use the link button to have the user click on. Once the user clicks on the link button I want to transfer...
2
by: eagle | last post by:
How do I access a control, like a placeholder, from another page, or another user control that may be on the same page. For instance, I have a web page with 2 user controls. One user controls...
0
by: arunpillai | last post by:
hi guys, My problem is i need to display different html page in content place holder just like how we will be doing in the frames. I have a menu control when ever the menu is clicked the particular...
3
by: Lucky | last post by:
Hi guys, i'm stuck in very odd situation here, the problem is i need to ask one aspx page to give me data from another aspx page. the flow in like this: Page1_load() { string...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.