do JavaScript with Safari
do JavaScript with Safari
- Subject: do JavaScript with Safari
- From: Martin Stephens <email@hidden>
- Date: Sun, 27 Jul 2003 23:07:26 +0800
Hello,
I am trying to get the HTML source from a frame of a page displayed
in Safari. I have been told that this can be achieved with the 'do
JavaScript' command but I have had no success. I don't know any JavaScript
and the syntax is really bending my mind. Can some kind soul give me a
working example of a 'do JavaScript' command that will return the HTML of
a frame?
The HTML of the document that I am working on is quoted below:-
<html>
<head>
<META Name="description" Content="1901 Census... ">
<Meta Name ="keywords" Content=" census...">
<Title>1901 Census of England and Wales Online</Title>
<!-- View the original... -->
<meta http-equiv="Content-Type" content="text/html" charset="iso-8859-1">
<script language="JavaScript" src="/javascript/status.js"></script>
<script language="Javascript">
var loaded=false;
var helpwin;
function setStatus(val){
//window.status=val;
//alert("set status");
}</script>
</head>
<frameset cols="1100,*" framespacing="0" frameborder="0" marginheight="0" marginwidth="0">
<frameset cols=171,* framespacing="0" frameborder="0" onLoad="setSessionDetails()">
<frame src="menu_root.html" scrolling="auto" name="left" noresize frameborder="0" marginheight="0" marginwidth="0"></frame>
<!--frameset rows="*,60" framespacing="0" frameborder="0"-->
<frame src="/welcome.html" name="content" frameborder="0" marginheight="0" marginwidth="0">
<!--frameset cols="*,100" framespacing="0" frameborder="0">
<frame src="/StaticPageServlet?rType=status" name="bottom" scrolling="no" noresize frameborder="0" marginheight="0" marginwidth="0"></frame>
<frame src="site_status.html" name="status" scrolling="no" noresize frameborder="0" framespacing="0" marginheight="0" marginwidth="0"></frame>
</frameset>
</frameset-->
</frameset>
<frame src="/blank.html" name="status" scrolling="no" noresize frameborder="0" marginheight="0" marginwidth="0"></frame>
</frameset>
</html>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.