Hello. This is my first time posting here, though I have lurked for a few days, so I think that my question is on topic for this list. Please let me know if it isn't. :) I'm wondering if there's any way in Web Kit to access a page's DOM properties via, say, Javascript? (In my final use I'll be wanting to use ActionScript, but Javascript is a simpler way to create a testable example.) For example, is it possible to access the "coords" property of an "HTMLAnchorElement" like this: ------------- html code start --------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> </head> <body> <a href="javascript:showProps();">This is a test link.</a> <script language="Javascript"> function showProps(){ alert("innerText: " + window.document.links[0].innerText); alert("coords: " + window.document.links[0].coords); alert("coords: length: " + window.document.links[0].coords.length); alert("coords: typeof: " + typeof window.document.links[0].coords); } </script>
</body> </html> ------------- html code ends --------------- This test returns a zero length String when I query the "coords" property. I'm not sure if the lack of an error means that some kind of access is going on or not.. either way, it doesn't return the desired co-ordinates. If anyone can point me in the right direction, if there is one, I'd appreciate it. :) - - - - - - - - - -[andrew murphy]- flash subject matter expert [EMAIL PROTECTED] delvinia interactive 214 king street west, suite 214 toronto canada M5H 3S6 voice 416.364.1455 ext. 232 fax 416.364.9830 www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.9.14/885 - Release Date: 03/07/2007 10:02 AM
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev