473,385 Members | 1,676 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,385 software developers and data experts.

Good morning fellow monday slaves..today's issue.

I've got a page with DB data displayed, and a link beside each record
to update the corresponding record. When the update icon is clicked, a
popup with the data comes up, once the user is finished updating, when
they click submit, I have the following code:

<input type="button" onClick="opener.location.reload(); self.close()"
value="Refresh and close">

My problem with this is that it refreshed the parent too quickly for
the data to have made it's way to the DB, since it requires a manual
refresh once the child has closed to properly display the updated
data.

It is possible to set a timer for this? Thanks in advance for your
help.
Jul 20 '05 #1
3 1715


<input type="button" onClick="setTimeout(opener.location.reload();
self.close();,500)" value="Refresh and close">

"nathan" <n4****@hushmail.com> wrote in message
news:90**************************@posting.google.c om...
I've got a page with DB data displayed, and a link beside each record
to update the corresponding record. When the update icon is clicked, a
popup with the data comes up, once the user is finished updating, when
they click submit, I have the following code:

<input type="button" onClick="opener.location.reload(); self.close()"
value="Refresh and close">

My problem with this is that it refreshed the parent too quickly for
the data to have made it's way to the DB, since it requires a manual
refresh once the child has closed to properly display the updated
data.

It is possible to set a timer for this? Thanks in advance for your
help.

Jul 20 '05 #2
"steve stevo" <st***@stevosteve.fsnet.co.uk> writes:
<input type="button" onClick="setTimeout(opener.location.reload();
self.close();,500)" value="Refresh and close">


Syntax error. Try either:
onClick="setTimeout(function(){opener.location.rel oad(); self.close();},500)"
or
onClick="setTimeout('opener.location.reload(); self.close();',500)"

Please trim yuor quotes and reply below the quotes.
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3
Thank you gentlemen.
Lasse Reichstein Nielsen <lr*@hotpop.com> wrote in message news:<4q**********@hotpop.com>...
"steve stevo" <st***@stevosteve.fsnet.co.uk> writes:
<input type="button" onClick="setTimeout(opener.location.reload();
self.close();,500)" value="Refresh and close">


Syntax error. Try either:
onClick="setTimeout(function(){opener.location.rel oad(); self.close();},500)"
or
onClick="setTimeout('opener.location.reload(); self.close();',500)"

Please trim yuor quotes and reply below the quotes.
/L

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: matty | last post by:
Go away for a few days and you miss it all... A few opinions... Programming is a craft more than an art (software engineering, not black magic) and as such, is about writing code that works,...
5
by: Eric Linders | last post by:
Hello, Today is Thursday, August 18, 2004. I would like to have a variable that stores the date this coming Sunday (even if today happened to be Sunday) in YYY-MM-DD format. I also need a...
5
by: Martien van Wanrooij | last post by:
I would like to retrieve, let us say, the First Monday after a certain date, so my (imaginary) function could be something like echo weekdayAfter("28 July 2005", "Monday") should return "1 August...
2
by: Joecx | last post by:
Does anyone know how to give a date (not today's date) and have the program calculate the previous monday's date from it? Any help would be appreciated. Thanks!!!! Joe
1
by: BinnuChowdary | last post by:
Very Good news for all freshers and especially those who want to shift to Dotnet Technologies We have established an Training and Development Center Named Z-Axis Technologies in Our City at KPHB,...
1
by: alexjaquet | last post by:
Hi, I need to obtain the list of the date of each open monday. Any idea ? thx
59
by: Frederick Gotham | last post by:
Hello everyone. I am sorry for my behaviour on this newsgroup. Particularly, I want to apologise to the newsgroup regulars who have put up with my childish behaviour. The truth is, I'm a...
5
by: Chris | last post by:
I am trying to output Monday of the current week i.e. if Monday is the 8th I want to display 'Monday 8th' for any date between Monday 8-14th. I would appreciate any help, the code below is...
0
by: handord | last post by:
GOOD MORNING Friends : Today Message : A man can succeed in any endeavour for which he has unlimited enthusiasm. A man who cannot tolerate small ills can never accomplish great things.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.