Absolutely right Thomas and thank you for the suggestion......
I've done some web page stuff and have fooled around a bit with ajax but not enough to realize that there's a timing component to dealing with HTTP refreshes and page loads....... ie if it's not there on the page then you certainly can't change it's value. So with Thomas's suggestion I did the following and it works perfectly.
Put a Microsoft Web Browser activeX control on a form.
Added a property to the form to catch in between refreshes.
In the init of the form I called the Navigate method and fed it the url I wanted.
In DocumentComplete method I added the following code.
if upper(alltrim(url))<>"JAVASCRIPT:FALSE;" then
if thisform.document_refreshed=.f. then
thisform.olecontrol1.Document.getElementById('fpcFindAnAddress:reverseSearch:postalCode').value="some postal"
thisform.olecontrol1.Document.getElementById('fpcFindAnAddress:reverseSearch:j_id88').click()
thisform.document_refreshed=.t.
endif
endif
When the javacript click event fires on the web page this routine fires again so I wanted to prevent resetting the postal code and it works great.
thanks for all the suggestions,
Don