PDA

View Full Version : how can i make this javascript code refresh this div ?



sofian
06-24-2011, 01:29 PM
hi every body
please help me to refresh my div's content :

the codes :
javascript : -

thank you :)

davelf
06-24-2011, 03:35 PM
i took the conclusion of your problem, so you want to refresh part of the page not the whole, right?
That's why the title of your question here is about "<div>content</div>"

Have try Iframe?


<iframe align="left" frameborder="0" src="content/starters-1.html" width="980" height="480" scrolling="no" allowtransparency="true" style="margin-left:15px; margin-top:0px; background:url(images/transparent.png);"></iframe>


So all of your if javascript validation put that in one page, and call it from iframe.
if the refresh part is the iframe, there's no problem with the whole page right?
Beside, i don't thing <div></div> can do that.
I'm not really sure, may be there's another senior can help here.

sofian
06-24-2011, 04:54 PM
thank you davelf for your help and reply .

yes i want refresh part of the page .
in fact i have asocialnetwork like facebook with stream and comments .
every stream has its comments ... if user is on the bottom of the page after 80 posts of the stream and he refresh the page he will lose the place that he was on .

i dont think that iframe help me with this .

again : thank you too .