Inet Return in New Window? (OpenInsight 32-Bit)
At 21 APR 2009 05:48:43PM Mark Glicksman wrote:
I've been writing INET functions that return html as a new page to be displayed in the same browser window. That works fine. But, how can I get the html to display in a new browser window, either as a popup or as a normal window?
At 21 APR 2009 06:18PM [email protected]'s Paul Simonsen wrote:
Mark,
If you are launching the INET routine from an . Hope this helps, [url=mailto:[email protected]]Paul Simonsen
SRP Computer Solutions, Inc.[/url]
At 22 APR 2009 12:34AM Mark Glicksman wrote:
I'm launching the inet function from a javascript - as in this snippet:
location=http://localhost/weboi/oecgi2.exe/INET_ECM_GetFeature?X_PIXEL= + lonlat.lon + '&Y_PIXEL= + lonlat.lat + '&ZOOM= + zoom;}});
At 22 APR 2009 08:41AM Bob Carten wrote:
Mark -
Take a look at protoype.js
Including that library on your pages adds a lot of functionality. Many people post extensions on the web. You can ususally find a script to do what you want.
script.aculo.us is a good starting point.
for a popup try http://snook.ca/archives/javascript/prototypepowere/
At 22 APR 2009 10:10AM Mark Glicksman wrote:
Thanks Bob - good suggestions. Can anyone suggest a really good book on javascript?
At 22 APR 2009 10:46AM Dave Harmacek wrote:
I've found plenty of free javascripts just by searching.
Here is what I do to open a new window using javascript.
( should be replaced with greater than and less than characters)
In the head section, my function:
script language=javascript"function ViewSample() {window.open('http://www.thisisasample.com/aavcm/5581.htm','mapWin', 'width=800,height=600')}/scriptThen I place an image that is clicked to view a sample in the body section:
a href=javascript:ViewSample()"img src=http://www.thisisasample.com/aavcm/5581b.gif" width=150" height=87" /
Dave
At 22 APR 2009 11:37AM Mark Glicksman wrote:
I was able to find a good solution. Here's the modification to the code snippet I posted previously:
var url=http://localhost/weboi/oecgi2.exe/INET_ECM_GetFeature?X_PIXEL= + lonlat.lon + '&Y_PIXEL= + lonlat.lat + '&ZOOM= + zoom;
var Window1=window.open(url, "Window1", "width=740, height=600, location=no, menubar=no, toolbar=no");
Window1.focus();
The last focus statement puts the popup on top of the calling window.
Thanks for your help.