J
Jay
I'm trying to refresh browser when some new information is available in DB.
is there any way to force to refresh browser?
Thanks.
-Kev
is there any way to force to refresh browser?
Thanks.
-Kev
[email protected] enlightened us said:I'm trying to refresh browser when some new information is available in DB.
is there any way to force to refresh browser?
Thanks.
[email protected] enlightened us said:Thanks!
well, window.location.reload(true) does whenever control is hit that line,
it does refresh.
What I want to do is server side trigger send message to client browser to
refresh it.
[email protected] enlightened us said:Thank you for your help.
I'm displaying hotel information from DB.
What I want to is
First, I will get the hotel list and display with no rate. ( since getting
rate takes time)
Whenever rate information is ready to update. refresh user's browser.
but how?
[email protected] enlightened said:I did not explained in detail so I can avoid some confusions.
But I guess it did more harm than good.
Hotel list are coming from our DB and rate are coming from GDS in XML.
I have a java object created with list first and displays and trying to
update as soon as I got XML response.
XML response is quite slow. ( you know there is nothing I can do).
I can wait XML and display all together. but I'm just seeking a way to
display list of hotel first with some animation indicating
rate is being updated and display rate when it's available.
is that make sense now?
[email protected] enlightened said:do you have any iframe sample I can look?
or please direct me to web site I can get some info from.
Thanks again.
[email protected] enlightened said:Anyway, the way I would handle this is with an "invisible" iframe
(styled to hidden or 1px by 1px the same background color as the main
page). I would have the iframe wait for the XML, then when it is
received, update the encompassing page. This doesn't require a refresh,
just DHTML.
"update the encompassing page" I don't know how to do that..
[email protected] enlightened said:then Until test2 is fully updated user is not seeing test1?
[email protected] enlightened said:I tried with test1 and test2.
What I did was while I'm watching test1.htm.
modify values in test2 and save.
test1.htm.values in text box is not changed.
Unless I refresh test.htm.
Could I force to refresh test1.htm from test2?
kaeli said:Yes, but you're doing someting wrong if the write didn't show in test1.
Test2 is dynamic in practice - the values are assumed to be gotten from
XML or some other server-side language. The hardcoded values are for
testing only, to show you it could be done. You'd need to refresh only
if you changed hardcoded values (hardcoded values would defeat the
entire purpose of this exercise). When you make it dynamic, you don't
have to refresh.
I don't use xml or I'd give you an example.
I can give you an example with ASP or JSP...?
--
~kaeli~
You feel stuck with your debt if you can't budge it.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
[email protected] enlightened said:JSP would be great.
Thanks.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.