IE Automation (VERSION 2)

So I have written quite a nice little piece of ruby code to automate
the transfer of information from one web page to (a series of) web
(pages).

This is an ordering system where for speed, all pertentent information
is placed one one page. then later another person makes the order
from this page… either way.

How can I access a piece of javascript code like the following

function addBilling(str) {
var url;
if (str == “shipping”) {
url = “/BSSONLINE/order/billingAddress.jsp?pagename=shipping&sashnbr=”

  • escape(“934873”) + “&sanick=” +escape(“REPLACEMENT
    9200293040870”)+"&salname="+escape("REPLACEMENT ");
    }

    else if (str == “billing”) {
    url = “more of the same like above”;
    }

    location.replace(url);
    }

I have tried thnigs like the following:
@ieto.document.main.addBilling(“shipping”)
but to no avail. any help would be great.

thanks.

How can I access a piece of javascript code like the following

I have tried thnigs like the following:
@ieto.document.main.addBilling(“shipping”)
but to no avail. any help would be great.

Since no one else has come forth with anything helpful – only thing I can
say is check out the IE docs at msdn:

rnetExplorer.asp

erence/dhtmlrefs.asp

… and see if there’s anything in there. Check groups.google.com as well to
see if anyone else has tried something like this.

Chris

We have code somewhere that uses an old IE API based on DDE to
send it to a particular URL. Don’t know it the docs are still
available, or whether the API included a “close window” feature.
I could search for it if you wish, but I thought it might be
useful to know that it used DDE.

···


Clifford Heath

Clifford Heath cjh_nospam@managesoft.com wrote in message news:3DC06DD7.42BCBEC4@managesoft.com

We have code somewhere that uses an old IE API based on DDE to
send it to a particular URL. Don’t know it the docs are still
available, or whether the API included a “close window” feature.
I could search for it if you wish, but I thought it might be
useful to know that it used DDE.

searching everywhere, I done der found what I needed.

objIE.document.parentWindow.someFunctionName(“my arguments”);

this works great! I can now call HTML javascript fuctions from ruby!

thanks.

Craig A.