This is piece of my html
<span id="content1">
<div style="width: auto;" id="status_block">
<span id="pushback1"></span>
<div style="border: 1px solid rgb(153, 204, 153); margin: 5px; background:
white none repeat scroll 0%; width: auto;">
<a href="javascript: LoadEditResult('pushbackform', {'id': '1',
'replace': 'pushback1'});">Push
back here</a> </div>
</div>
</span>
The span content1 is for Ajax to replace inner.
Once my Ajax web return some data, and javascript just replace innerHTML of
content1
But something is strange...
<div style="width: auto;" id="status_block">
<span id="pushback1" />
<div style="border: 1px solid rgb(153, 204, 153); margin: 5px; background:
white none repeat scroll 0%; width: auto;">
<a href="javascript: LoadEditResult('pushbackform', {'id': '1',
'replace': 'pushback1'});">Push
back here</a> </div>
</div>
This is the html Ajax web returned.
As you see, "<span id="pushback1"></span>" become "<span id="pushback1" />".
I don't know why kid change it....
But this make something more strange.
After browser set inner of content1
<span id="content1">
<div style="width: auto;" id="status_block">
<span id="pushback1">
<div style="border: 1px solid rgb(153, 204, 153); margin: 5px; background:
white none repeat scroll 0%; width: auto;">
<a href="javascript: LoadEditResult('pushbackform', {'id': '1',
'replace': 'pushback1'});">Push
back here</a> </div>
</span></div>
</span>
I don't know why, but browser put other html into "<span id="pushback1" />"
I have no ideal why browser do this.
Could someone tell me why?
And how to fix this strange behavior?
Thanks.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss