Thanks for that info, and it will be helpful, but I don't think it will quite do what I want... I'm going to have a page of links (maybe 100 of them to all different places). I could also use a graphic, checkbox, popup (selects in HTML), or a button.
Using the onclick event (or onchange if it was a popup) and VFPScript I want to directly launch a form inside FoxPro and send along an identifier of some kind. I've seen this done and actually had code working before I misplaced it. Now I can't find the web site or source I got it from in the first place.
Thanks,
Greg
>Greg,
>
>if I understand your problem then you can do it without scripting. I put some code in the BeforeNavigate2 event of my browser controls to call forms or PRGs. This code checks the URL if a VFP form or PRG is to be launched and if so it prevents the default behavior of the browser control (cancel = .T.). The URL has to start with scx:// or prg:// instead of the usual protocol acronyms (http:// or whatever) and will be followed by the path of the form or program to be executed.
>
>The BeforeNavigate2 code snippet might look like this:
LPARAMETERS pdisp, url, flags, targetframename, postdata, headers, cancel
>
>LOCAL lcProtocol,lcURL
>
>lcURL = LEFT(url,6)
>IF (lcURL = "scx://") OR (lcURL = "prg://")
> cancel = .T.
> lcProtocol = SUBSTR(url,7)
> IF RIGHT(lcProtocol,1) = "/"
> lcProtocol = LEFT(lcProtocol,LEN(lcProtocol)-1)
> ENDIF
>ENDIF
>DO CASE
> CASE lcURL = "prg://"
> DO &lcProtocol
> RETURN
> CASE lcURL = "scx://"
> DO FORM &lcProtocol
> RETURN
>ENDCASE