I need to know how to execute a command asp in natural to invoke a web page
We know which will be your platform, you use NATURAL WEB INTERFACE
Angel Mendoza O
thank but I need the code for execute in a dialog of natural windows
Not elegant but it works
You must create an HTM (c:\aa.htm)
<html> <body> <script> document.location.href='http://localhost/myAsp.asp' </script> </body> </html>
AND create a program NATURAL that invokes the HTM, through the command WINCMD
define data local 1 #cmd (a100) end-define #cmd := 'cmd /c c:\aa.htm' call 'wincmd' #cmd end
Angel Mendoza O
:idea: You create a new dialog, and “instert ocx control” and select “Microsoft Web Browser”.
:arrow: Open from: Menu->Development Tools->Component Browser…
You find at “All ActiveX Componets” your “Microsoft Web Browser” ocx and the interface “IWebBrowser”.
There you find e.g. the Method “Navigate” where you can specify your url to the .asp page and how to code the call with Natural.
I think the best solution from Weihnachtsb r
Thanks for the help but I need to be a code that invokes a url sending parameters. It is something like this:
I don’t understand your problem.
I can see, your url contains all parameters.
Just call and initialize your new browser dialog from another dialog:
Add an additional parameter to your browser dialog
1 #Url (A) dynamic
Now define a user event e.g. “URL” and let your browser ocx navigate to the specific url:
PROCESS GUI ACTION <<METHOD>> WITH #OCX-BROWSE #Url #Flags null-handle #PostData null-handle
(#Flags and #Postdata are locally defines variabled of type (A) dynamic)
open your browser dialog from another one
OPEN DIALOG "NBROWSER" NULL-HANDLE GIVING BROWSE-DIALOG
and send the url
SEND EVENT "URL" TO BROWSE-DIALOG WITH AURL