Forum Doku Wiki Blog

Forumsarchiv 2010, Juli
Probleme mit ID in iFrame

archivierte Beiträge lesen

  1. (JAVASCRIPT) Probleme mit ID in iFrame von StefanB, 26. 07. 2010, 12:59

Probleme mit ID in iFrame

Der folgende Beitrag wurde am 26. 07. 2010, 12:59 Uhr von StefanB veröffentlicht.

Hallo,

ich habe ein Problem mit iFrames und Javascript. Ich würde gerne in Textfeld in einem iFrame schreiben.

Mit

   if (tmpItemHandle == gloItemHandle_2_es) {
                    tmpValueNode = iframe3.document.getElementById("es_axis_1");
                    tmpValueNode.value = tmpItemValue;
                }

kann mit IE ich auf das Textfeld mit der ID "es_axis_1" zugreifen. Leider funktioniert das ganze unter Firefox nicht.

Hat jemand eine Idee, was ich falsch mache?

Gruß Stefan

Probleme mit ID in iFrame

Der folgende Beitrag wurde am 26. 07. 2010, 13:06 Uhr von ChrisB veröffentlicht.

Hi,

>    tmpValueNode = iframe3.document.getElementById("es_axis_1");

> Leider funktioniert das ganze unter Firefox nicht.

https://developer.mozilla.org/en/XUL/iframe#p-contentDocument

MfG ChrisB


--
The most exciting phrase to hear in science, the one that heralds new discoveries, is not “Eureka!” but “That's funny...” [Isaac Asimov]

© 1998-2013 SELFHTMLImpressumSoftware: Classic Forum 3.4