Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening URL in default browser on specific window
Message
From
31/12/2016 11:52:52
 
 
To
31/12/2016 09:38:25
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01646212
Message ID:
01646235
Views:
41
>Antonio, this is some info around your subject:
>
>-1*command lines firefox (not sure all work-there is also Thunderbird options)
>to test: run (shellexecute ) : firefox.exe .....+options as shellexecute parameters
>
>links for documentation:
>http://kb.mozillazine.org/Command_line_arguments
>https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options
>there is -new-window option,....
>
>i see the option -setDefaultBrowser to make FF as default browser
>
>-2 Internet explorer
>navigate method (+complet syntax) here: https://msdn.microsoft.com/en-us/library/aa752093(v=vs.85).aspx
>the flag parameters can be found at:https://msdn.microsoft.com/en-us/library/dd565688(v=vs.85).aspx
>
>object.Navigate(url, Flags, TargetFrameName, PostData, Headers)
>can specify url+ optionally flag+window (_blank,_parent,_top,_self or an existing window named ( windowname)).
>
>the same thing is available with the olecontrol embed on a form "shell.explorer.2" (see method navigate,navigate2)
>the same things is with internetexplorer.application/navigate method.
>if you name the window and set as option ,the ie opens always in this window(if exists).
>
>IE command lines options at:https://msdn.microsoft.com/en-us/library/hh826025(v=vs.85).aspx
>
>-3 from javascript
>syntax:
>var windowObjectReference = window.open(strUrl, strWindowName, [strWindowFeatures]);
>
>test:(save as test.html and run (fires with default navigator))
>
><center><a href="" onclick="window.open('http://atoutfox.org', 'myWindow', 'location=yes,height=570,width=520,scrollbars=yes,status=yes');">text open a link in a new window  with defaut navigator</a></center>
>
>myWindow is the window name (can be _blank,_self,_parent,_top or windowname)
>if you change the the url its rendered always into the "mywindow" window if exists.
>
>
>Good bye an happy new year!

Thanks again, Yousfi. I think my requirements can not be satisfied at all, but I put my thoughts on the subject at the the top of the thread. Any remarks you might have would be appreciated (that is, if, coming from the East, you are not already enjoying the New Year celebrations).
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform