[ciapug] grab form value from iframe document
Tony Bibbs
tony at tonybibbs.com
Wed Jul 20 14:49:01 CDT 2005
Do you have to do it on the client w/JS? Could you, instead, use
fopen() on the URL and parse the content the old fashioned way (or, if
it is valid HTML, using xpath)?
--Tony
Barry Von Ahsen wrote:
> I want to grab a form value from a form in an iframe document (in the
> same domain, I'm not up to any xss shenanigans)
>
> this doesn't work:
> <script language="javascript">
> function getIFrameVal() {
> oIFrame = document.getElementById('iframeID');
> val = oIFrame.document.frmID1.fieldname.value;
> alert(val);
> }
> </script>
> nor does it work if I remove document from oIFrame.document.frmID1...
>
> can I do this?
>
> -barry
>
>
> _______________________________________________
> ciapug mailing list
> ciapug at cialug.org
> http://cialug.org/mailman/listinfo/ciapug
More information about the ciapug
mailing list