[Geomoose-users] [Geomoose-developers] Queries

Jay Kapalczynski jkapalczynski at ci.maple-grove.mn.us
Wed Oct 15 10:46:58 EDT 2008


Is it possible to get the variables From the javascript into the onclick?


<tr>
<td align="center" width='100'>TESTING2:</td>
<td style= "cursor:pointer" align="center" onclick="javascript:getResulthype2('PropertyQuery.php',varPropertyType,varPriceFactor,varPropertyValue,varPriceArea)"><font size='2' color='#007FFF' >ReturnResults</font></td>
</tr>


<script type="text/javascript">

function getVariables()
                {
                var varPropertyType = ""
                var varPropertyType = document.getElementById("Choice").value;
                var varPriceFactor = ""
                var varPriceFactor = document.getElementById("PriceFactor").value;
                 var varPropertyValue = ""
                var varPropertyValue = document.getElementById("PropertyValue").value;
                var varPriceArea = ""
                var varPriceArea = document.getElementById("PriceArea").value;

                }
}
</script>


From: Fischer, Brian [mailto:bfischer at houstonengineeringinc.com]
Sent: Wednesday, October 15, 2008 9:14 AM
To: Jay Kapalczynski; geomoose-developers at lists.sourceforge.net; geomoose-users at lists.sourceforge.net
Subject: RE: [Geomoose-developers] Queries

Jay, I'm not sure if this is possible with GeoMOOSE 1.6 without changing the GeoMOOSE source code.  Dan would know for sure.  This is something we are looking at addressing in GeoMOOSE 2.0.

Brian Fischer
Houston Engineering, Inc.
Maple Grove, MN
(763) 493-4522

From: Jay Kapalczynski [mailto:jkapalczynski at ci.maple-grove.mn.us]
Sent: Wednesday, October 15, 2008 9:02 AM
To: geomoose-developers at lists.sourceforge.net; geomoose-users at lists.sourceforge.net
Subject: [Geomoose-developers] Queries

I am trying to figure something out here.  And don't want to make a long and confusing email..
So I will start with this.

I will gladly paste my code it that will make it easier to understand what I am doing.

I have created two tabs.
On the first tab I have a bunch of dropdown boxes.
Onclick I have a Function that creates Cookies and stores the values from the dropdown boxes
                The reason I am creating cookies is because I cant figure out how to get this work (see below) with variables.
                I have been told I cannot pass variables from javascript to php.
                At the same time I have been told you can....so I am a bit confused.
                Thus just created cookies that I use and delete.
In php I then grab the cookie values and write them to variables.
I then use these variables to populate a query.
The query runs great and returns the results.

My problem is that the results are being returned to another page.
I want them to be pushed to a specific tab.

                                <tr>
                                <td align="center" width='100'>Both SQL and Access:</td>
                                <td style= "cursor:pointer" align="center" onclick="javascript:getResulthype2('parcellink3.php','[PID]','S')"><font size='2' color='#007FFF' >Open Images</font></td>
                                </tr>

I want to use something like this but don't know how to mesh it with my code.
I am currently using this (from Adam Feidt): passing [PID] from a identify and the S value to parcelink3.php.
The getResulthype2 is ajax code that is pushing the values to a tab (I think)

I know this is a loaded question...just dont know where to start.

Again I can paste my code if that would make things easier.

Any thoughts....

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20081015/f25b6793/attachment.html


More information about the Geomoose-users mailing list