If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

creating response to URL,bypassing manual data entry

I want to create an automatic response to a URL. I can brute force tab through the on-screen form and send programmed key strokes, but I want to instead programatically fill in the JavaScript. Runs faster and less error prone.

Below is my attempt to create a response to the web site:
I have failed with the template that I used before, so there is something else wrong.
Anyway, I think I can short circuit the longer normal line by line script template and can use the unique format as in the first example below.

-----------------------------
This first one works for its unique case.
"/cgi-bin/apps/PortFolioManagement?selectedLayoutID=12345678&selectedPortID=23456&defaultPortID=2987333"

I just added the "ADVANCEDORDER" part to the first one above and have not tested that.
Do I need: pagehandler value="PHAdvancedOrderTicket" or is that another locally process that I need to compensate for?
----------------------------
Below is the source JavaScript from the site that I am trying to respond to.

I eliminated the 3 TIF-responses. Do I need to put them in?
-----------------------------------------
The two following appear on the same display page,
but offer two options, one to get the 'Status'
and the second part of the page, to 'cancel' or 'edit the order,
editing the order simply jumps to a new page, the 'Order' page

Field Name Type CurrentValue
period radio DAYS
time text 0
status_type radio ALL or Fills or OPEN
FORM_ACTION submit Refresh View

I think this is the correct response:
"OrderStatus?OS_account_no=" UserID + "&period=DAYS&time=0&status_type=OPEN&FORM_ACTION=Refresh View"
I added the account number, I think it is necessary, else how would freetrade know?
-----------------------------------------
Name method FormAction
Unnamed Form post https://wwws.ameritrade.com/cgi-bin/...ancelEditOrder

Field Name Type CurrentValue
preform hidden edit
FORM_ACTION submit Cancel Order(s)
confirmed hidden 0 'I think if I change this to '1', I will cancel the order without having to confirm it in a second transmission
OS_account_no hidden 123456789
FORM_ACTION submit Edit Order
period radio DAYS
time text 0
period radio MAX
status_type radio ALL or FILLS or OPEN
FORM_ACTION submit Refresh View