Cosmin, I just tried this and it works in both IE and FF:
<div>
Cozmins prob<br>
<a href="#" jwcid="@tacos:AjaxDirectLink" listener="listener:empty"
updateComponents="ognl:{'remoteContent'}"
>Reload</a><br>
<button
onclick="document.getElementById('messageBox').innerHTML='test';">Change</button>
<div jwcid="[EMAIL PROTECTED]" id="remoteContent">
<div id="messageBox" style="border:1px solid blue;">
<span jwcid="@Insert" value="ognl:randomString"/>
</div>
</div>
</div>
So, what are we doing differently?
Cosmin Bucur wrote:
>I am having this problem and can't get rid of it ...
>
>can anyone please provide some resoltion ? Should I be wasting time
>writting an isolated test case to proove this ? It happends in quite a
>few places in my app , i don't think it's related to anything else .
>
>Anticipated thanks ,
>Cosmin
>
>On 2/6/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote:
>
>
>>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_______________________________________________
>Tacos-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/tacos-devel
>
>
>
>
-------------------------------------------------------
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&kid=103432&bid=230486&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel