Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IE innerHTML strips quote characters.
Message
De
04/12/2005 01:47:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
01073392
Message ID:
01074703
Vues:
55
>I was working through using XML to transfer an HTML string to a page (TABLE) to service a JavaScript treeview. It uses DOM and innerHTML to assign the string inside SPAN tags. It works.
>
>The string includes (A)nchor tags with onclick events. In order to build a parsable XML, things like WIDTH assignements need to have their numerical values inside quotes (WIDTH="0"). And the onclick method requires quotes around the JavaScript function pointer to be effective onclick="myJavaFunction(this)"
>
>With FireFox innherHTML shows:(A id="ATAG" onclick="myfunction()")(/A)
>
>With IE:(A id="ATAG" onclick=myfunction())(/A)
>
>Whats amazing about this is that a server issued XML script filled with HTML tags actually fires the functions predefined in the client "pages".
>
>With Firefox, reading the innerHTML of a document (alert(document.spanobj.innerHTML);) renders the contained HTML and includes the "quote" marks.
>
>With IE the quotes are stripped from both the dimension tags and method tags. I am using IE 6.1 for this project. Is that still the case with IE. Also, IE does not allow addressing a TAG unless it is referenced by a "getElementID("spanobj").
>
>Is there a flag feature that will allow IE's implementation of innerHTML to retain the quote marks?

When you build your HTML, especially the code in regards to where the quotes are not seen by IE, have you thought of encoding the quote instead of passing the quote character? Maybe IE can see it in that way.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform