Cross Browser insertAdjacentHTML() ?? 
Author Message
 Cross Browser insertAdjacentHTML() ??

Anyone know of another way to dynamically insert content without using insertAdjacentHTML(), besides:

var sOldContent = document.id.innerHTML()
document.id.innerHTML = sNewContent + sOldContent;

I can use this but I am dealing with files and the filename information is not persisting past this step. Here is my situation.
<div id="listing">
<div id="child"><input type="file"></div>
</div>

I want to be able to add more files into the listing, while preserving the state(keeping the filename in the file box) of any files already in there. I need to do this without using insertAdjacentHTML because Netscape 6.1 doesn't include that method.

Any help would be nice!

*** Sent via Developersdex http://www.*-*-*.com/ ***
Don't just participate in USENET...get rewarded for it!



Sat, 01 May 2004 22:50:58 GMT  
 Cross Browser insertAdjacentHTML() ??

Quote:
> I need to do this without using insertAdjacentHTML because Netscape 6.1

doesn't include that method.

"How do I emulate insertAdjacentHTML() in Netscape 6/Mozilla ?"

http://www.faqts.com/knowledge_base/view.phtml/aid/5756/fid/128

--
Thor Larholm
<URL: http://www.jibbering.com/faq/> FAQ for comp.lang.javascript



Sat, 01 May 2004 23:06:09 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. cross-browser scripting

2. Setting background color - cross-browser?

3. cross browser objects

4. Cross Browser Compadabillity

5. cross browser linking

6. Cross - Browser input field problems

7. cross browser java detection

8. Cross-browser Drop-Down Lists

9. cross browser drag and drop using Javascript

10. Cross Browser Implementation, Help!

11. cross-browser DHML warriors needed..

12. Sarissa, a cross browser JS API for DOM extentions

 

 
Powered by phpBB® Forum Software