Re: General question about what is possible re: AS driving JavaScript
Re: General question about what is possible re: AS driving JavaScript
- Subject: Re: General question about what is possible re: AS driving JavaScript
- From: Bill Planey <email@hidden>
- Date: Tue, 12 Jul 2005 15:23:42 -0500
Malcolm,
I wish that concatenating HTML on the fly would be the least of my troubles
on this project; let me post the full page source from the IE window, and
you'll see that NOT A SINGLE FIELD is articulated within it:
=============================================================
<html>
<head>
<title>Search</title>
</head>
<script language="Javascript">
<!--
function LoadPage(url)
{
if (typeof(window.frames['UtilityFrame'].LoadPage) == 'function')
{
url = new String(url);
if (url.match(/LoadSearch\.asp\?page/i))
{
var page = new String(url);
//page = page.replace(/^.*?page\=([^&]*)&.*$/i, '$1');
// Replaced above with following for MAC compatibility; VI #
42090 ~ pbs ~ 2004-01-29
var aPage = page.match(/page\=([^&]*).*/i);
if (aPage) {
if (aPage.length > 0 ) {
page = aPage[1];
var propType = new String(url);
//propType = propType.replace(/^.*?proptype\=(.*)$/i, '$1');
// Replaced above with following for MAC compatibility; VI
# 42090 ~ pbs ~ 2004-01-29
var apropType = propType.match(/proptype\=([^&]*).*/i);
if (apropType) {
if (apropType.length > 0 ) {
propType = apropType[1];
return window.frames['UtilityFrame'].LoadPage(page,
propType);
}
}
}
}
}
}
return false;
}
//-->
</script>
<frameset frameborder="0" border="1" framespacing="0" rows="0,*">
<frame name="UtilityFrame" scrolling="NO" target="main"
src="/SearchDetail/Scripts/SearchUtility.asp?page=quick&proptype=res"
marginwidth="0" marginheight="0">
<frame name="SearchFrame" src="/Share/PleaseWait.htm" scrolling="auto">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.x</p>
</body>
</noframes>
</frameset>
</html>
=============================================================
...and on the page as displayed in the browser, there are probably more than
a hundred fields. I believe everything is taking place on the server side.
How can I possibly script something that puts data into the fields when they
are not articulated within the source code of the page?
Thanks,
Bill Planey
On 7/11/05 8:50 PM, "Malcolm Fitzgerald" <email@hidden> wrote:
>
> On 12/07/2005, at 1:43 AM, Bill Planey wrote:
>
>> Hello,
>>
>> I wish to build a solution to help my wife follow up on expired real
>> estate
>> listings. The solution would take data from FileMaker and have to
>> somehow
>> enter it into the correct fields in a web database that
>> (unfortunately) is
>> designed to only work properly in Internet Explorer; the page fields
>> are
>> definitely JavaScript.
>>
>> Before I get too deeply into figuring this out, perhaps someone can
>> tell me:
>>
>> 1) whether this can possibly work
>
> Quite likely. Filemaker provides an excellent interface for
> applescript. You shouldn't have any trouble with it.
>
> The issue is with the web site. Does it set cookies? If not you could
> get Filemaker to spit out an HTML page which is a replica of the one
> you want but the values are already complete. Even simpler, if it
> accepts information on the command line you can use Filemaker to build
> an URL with the data and have it attached to a button in FMP. If the
> web site requires cookies and more complex interaction you may want to
> look at the shell script cURL. It's very useful.
>
>
>> 2) whether the time spent developing the solution could ever be
>> recouped by
>> the savings it would create (we're talking about maybe 100 addresses
>> per
>> month at most) - maybe it is still better to copy and paste the
>> address info
>> rather than muck around with this programmatically
>
> That's a question you're better qualified to answer. It depends on how
> much mucking around is needed the web side.
>
>
>
> Malcolm Fitzgerald email@hidden
> Database Manager http://www.asauthors.org
> The Australian Society of Authors ph: 02 93180877 fax: 02
> 93180530
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> net
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden