[Webunitproj-users] RE: iFrame
Brought to you by:
dgan
|
From: <Eri...@al...> - 2002-11-15 19:38:32
|
The listserver didn't send this out for some reason.
Let's try this again.
--Erik
> -----Original Message-----
> From: Ostermueller, Erik=20
> Sent: Thursday, November 14, 2002 4:28 PM
> To: web...@li...
> Subject: iFrame
>=20
>=20
> Hello All (in the most 'Doron' sense of the word),
>=20
> I don't know the terminology for what I'm about to describe,=20
> so bear with me in my verbose explanation.
>=20
> If I right-click on a regular html page with no tricks
> and say view source, I'll get all the source for the=20
> entire page.
> That's the easy part.
>=20
> A web guy on our team who knows a lot more than me has
> put some 'iFrames' into our pages.
>=20
> If you right click on one of these babies and select=20
> 'view source',
> you get only the source for that iFrame. He tells me that
> the html is dynamically generated by java script.
>=20
> How can I use WebUnit to manipulate the html generated=20
> by this little iFrame thingy.
> The WebResponse doesn't contain this html. I need some=20
> way to drill down
> into this thing.
>=20
> Here is an example of the javascript that creates this thingy:
>=20
> var htmlAccountNumberFrameDocument =3D=20
> document.frames( "idTextAccountNumberBackIframe" ).document;
> =09
> htmlAccountNumberFrameDocument.write(=20
> "<html><head>");
> htmlAccountNumberFrameDocument.write(=20
> "<LINK REL=3D'STYLESHEET' HREF=3D'cc/stylesheets/usaa.css'=20
> TYPE=3D'text/css'><script type=3D'text/javascript'=20
> language=3D'JavaScript'=20
> src=3D'javascript/filterkeys.js'></script>" );
> htmlAccountNumberFrameDocument.write(=20
> "</head>" );
> htmlAccountNumberFrameDocument.write(=20
> "<body topmargin=3D'0' leftmargin=3D'0' scroll=3D'no'><INPUT=20
> TYPE=3D'TEXT' NAME=3D'textAccountNumber' VALUE=3D''=20
> MAXLENGTH=3D'16' ID=3D'idTextAccountNumber'=20
> STYLE=3D'width:100%;font-size:=20
> xx-small;border-right-style:none;border-right-width:0;'=20
> ONCLICK=3D'javascript:document.enablementGroup.toggle(this
> );' ONKEYPRESS=3D'javascript:FilterKeys.numbersOnly();'=20
> ONKEYUP=3D'javascript:document.enablementGroup.toggle(this
> );'></body>" );
> htmlAccountNumberFrameDocument.write(=20
> "</html>" );
> htmlAccountNumberFrameDocument.close();
>=20
>=20
> Thanks,
>=20
> --Erik
>=20
|