[Geomoose-users] Popup window for Images

Jay Kapalczynski jkapalczynski at ci.maple-grove.mn.us
Tue Aug 19 10:01:22 EDT 2008


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>


<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>



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/20080819/2204cb65/attachment.html


More information about the Geomoose-users mailing list