say I have

<div jwcid="@Any" id="remoteContet">
  <div id="messageBox">some message</div>
</div>

and I reload my page to reload this component . my page should now
have the following markup ( which of course i can't really see ) :

<div id="remoteContet">
  <div id="messageBox">some message</div>
</div>

then I have a piece of js logic that :

div msgbox = document.getElementById("messageBox");
msgbox.innerHTML = "my new message";

So

Run 1 :
- ajax direct link downloads the remoteContent div
- javascript logic changes the message in the div prints out alerts
prooving that the div was found and message was changed
- i can see that the message has changed

Run 2 :
- i reload the remoteContent div
- javascript logic changes the message in the div prints out alerts
prooving that the div was found and message was changed
- the message does not change on the page anymore .

This leads me to believe that the first content isn't removed , and
the javaScript accesses the div from the first content , changes that
, then since i'm looking at a totally different div on the second load
, i can't see the change anymore .


Is there a way to make sure that when updateCompoents updates a div ,
whatever was in the old div goes away completly ?

Thanks ,
Cosmin


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to