[Geomoose-users] Popup window for Images
Jay Kapalczynski
jkapalczynski at ci.maple-grove.mn.us
Wed Aug 20 13:37:53 EDT 2008
Has anyone tried this before? Just trying to figure out if what I am doing is actually possible....if so, whats wrong with the JavaScript
This is from the Identify.html file...trying to us some JavaScript to control the window size displaying the image.
But for some reason it keeps opening in the same window....
I don't know if I have to specify the URL....and if so what URL to specify....I tried to make a dummy html page and point to that but no luck
THANKS again
From: Jay Kapalczynski
Sent: Tuesday, August 19, 2008 9:01 AM
To: 'geomoose-users at lists.sourceforge.net'; 'geomoose-developers at lists.sourceforge.net'
Subject: RE: Popup window for Images
Do I need to replace the URL with a file location ?
Something like this?
"javascript:window.open('file://S:/GeoImag/Assessing/Photos/".$ imagename."','photowindow','width=450,height=350',position='Center')";
From: Jay Kapalczynski
Sent: Tuesday, August 19, 2008 8:44 AM
To: 'geomoose-users at lists.sourceforge.net'; 'geomoose-developers at lists.sourceforge.net'
Subject: RE: Popup window for Images
I can get this to work BUT it does not open in a new window? Thoughts?
<script language="javascript" type="text/javascript">
function popupWindow(url)
{
return !window.open(url, "new_window", "width=300, height=300");
}
</script>
</table>
<table border='2' width='100%'>
<tr>
<td align="left">Lot Surveys:</td>
<td>
<a href="pdf\LOT_SURVEYS\[LOT_SURVEY]" onclick="return popupWindow(this.href)">Open Image</a>
</td>
</tr>
</table>
From: Jay Kapalczynski
Sent: Tuesday, August 19, 2008 8:32 AM
To: 'geomoose-users at lists.sourceforge.net'; 'geomoose-developers at lists.sourceforge.net'
Subject: Popup window for Images
Was tinkering around with a bit of code that will open an image in a separate window without the buttons typically seen in an IE page.
I am not sure if I can even do this...this way I can control the Size of the image and where it opens.
There is a much cleaner look to this window....
I don't know how to fit in the [FIELD VALUE] into this
EXISTING CALL TO OPEN IMAGE
<a href="pdf\LOT_SURVEYS\[LOT_SURVEY]" target="_blank">Open Image</a>
EXAMPLE FROM INTERNET...dont know what URL to place in the example
---------------------------------------------------------------------------------------------------------------
<script language="javascript" type="text/javascript">
function popitup(url) {
newwindow=window.open(url,'name','height=200,width=150');
if (window.focus) {newwindow.focus()}
return false;
}
</script>
<a href="popupex.html" onclick="return popitup('popupex.html')">Link to popup</a>
---------------------------------------------------------------------------------------------------------------
REPLACED WITH????
<td><a href="MapleGrove_demo.html" onclick="return popitup('MapleGrove_demo.html')">Link to popup</a></td>
Anyone out there that can help?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20080820/60b96513/attachment.html
More information about the Geomoose-users
mailing list