Hi all,

I'm using google chrome as client of my web application.

If I open it with mozilla or ie it won't work 100% all application features.

Does anybody know the differences concerning iframes and document selection for example in the following lines of code:

self.parent.iframe[i].getSelection().getRangeAt(0);

map = document.createElement("map");		
map.innerHTML=self.parent.iframes[i].getSelection();
map.appendChild(selectionContents);
map.setAttribute('id','1');
range.insertNode(map);

 parent = selection.getRangeAt(0).commonAncestorContainer;
 parent.outerHTML=parent.innerHTML;

regards

Recommended Answers

All 3 Replies

Member Avatar for stbuchok

Use the jQuery framework for JavaScript. It helps write crossbrowser JavaScript.

http://jquery.com/

but in waht way would it rewrite this code above? what else would I have to do?

place the code inside doesn't work, and adding jquery.js to the same directory:

<a href="http://jquery.com/">jQuery</a>
    <script src="jquery.js"></script>
    <script>
      placing my script here
    </script>
Member Avatar for stbuchok

You will need to learn how to use jQuery. Go through the tutorials.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.