[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    [Bug 95072] New: cross-frame scripting:js-changes of a input control
From:       Bernd Uttenweiler <bernduttenweiler () web ! de>
Date:       2004-12-13 13:19:55
Message-ID: 20041213141953.95072.bernduttenweiler () web ! de
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
        
http://bugs.kde.org/show_bug.cgi?id=95072        
           Summary: cross-frame scripting:js-changes of a input control in
                    frame1 are not seen in frame2 (testcase)
           Product: konqueror
           Version: unspecified
          Platform: SuSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: kjs
        AssignedTo: konq-bugs kde org
        ReportedBy: bernduttenweiler web de


Version:            (using KDE KDE 3.3.0)
Installed from:    SuSE RPMs
OS:                Linux

I have a frameset including 2 frames.
Js in Frame1 builds a reference to an Html input element and adds a new property to \
the object (oInput.myProp). Js in Frame2 tries to get this property and its value, \
but gets only "undefined".

*****fs.html*****
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" \
"http://www.w3.org/TR/html4/frameset.dtd"> <html>
<frameset rows="50%,50%">
<frame name="f1" src="f1.html">
<frame name="f2" src="f2.html">
</frameset>
</html>

*****f1.html*****
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" \
"http://www.w3.org/TR/html4/loose.dtd"> <html>
<head></head>
<body>
<h1>Frame 1</h1>
<form>
<input type="text" id="id_input" value="text" />
<script type="text/javascript">
var oInput = document.getElementById("id_input"); 
oInput.myProp = "bla";
</script>	
</form>
</body>
</html>

*****f2.html*****
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" \
"http://www.w3.org/TR/html4/loose.dtd"> <html>
<head></head>
<body>
<h1>Frame 2</h1>
<script type="text/javascript">
var oInput = parent.f1.document.getElementById("id_input");
document.write(oInput.myProp); //"undefined"
</script>	
</body>
</html>
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic