[mapserver-users] Re: [Geomoose-developers] aJAX

2009-12-07 Thread Brent Fraser
Actually they are not identical (there's an extra ) in getRunquery.  And there 
could be other syntax problems...




Jay Kapalczynski wrote:
I am trying to write some ajax here to run a query.  I simplified this 
down so that no query is happening, rather just getting all the pages to 
work together and return some text.


I don’t know whats going on here

 


1.   I created a button that calls a javascript function

 

input type=button value=Send to Ajax and Tab 
onClick=ReturnQueryResults();


 

 


2.   This function is calling and passing an ajax page some info.

 


function ReturnQueryResults() {

 


 getRunquery('parcellinktest.php','121190012','S')

 

/* 
getResulthype('parcellinktest.php','121190012','S')  */


}

 

3.   Once there it (depending on what is commented out in the ajax 
page) it runs one of two functions (both of which are IDENTICAL)


But for some reason when I run the getRunquery I get errors….but when I 
run the getResulthype it works.


I am passing the same values to the same php page.

I just added the getRunquery to the ajax page.

 

 


*function getResulthype(page,id,type){*

 


var _target = 'content_details_form';

   


if (id.length == 0) {

document.getElementById(_target).innerHTML=bNo Information 
Available/b;


return;

}

xmlHttp = GetAJAXObject();

if (xmlHttp==null) {

alert (Unable to process your request, your browser does not 
support AJAX!);


return;

}

var url = 
http://127.0.0.1:80/geomoose/php/+page+?id=+id+type=+type;


   


xmlHttp.onreadystatechange = showResult;

xmlHttp.open(GET,url,true);

xmlHttp.send(null);

}

 


*function getRunquery(page,id,type){*

 var _target = 'content_details_form';

   


if (url.length == )) {

   document.getElementById(_target_.innerHTML=bNo Information 
Available/b;


return;

}

xmlhttp = GetAJAXObject();

if {xmlHttp==null) {

alert (Unable to process you request, your browser does 
not support AJAX);


return;

}

  var url = 
http://127.0.0.1:80/geomoose/php/+page+?id=+id+type=+type;


 


  xmlHttp.onreadystatechange = showResult;

  xmlHttp.open(GET,url,true);

  xmlHttp.send(null);

}

 

 

 

 

I thought something might be hanging so I cleared all temp files, shut 
down, restarted Apache.


 

If the values are the same, and they are being sent to the same page how 
can I be getting errors….


 


Error:

getRunquery is not defined

getRunquery('parcellinktest.php','121190012','S')

 

 

 





--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.

http://p.sf.net/sfu/redhat-sfdev2dev




___
Geomoose-developers mailing list
geomoose-develop...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geomoose-developers

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: [Geomoose-developers] aJAX

2009-12-07 Thread Jay Kapalczynski
Brent and Stephen.

thank for the extra set of eyes...that was it...there were actually a couple 
things wrong I thank you for pointing me in the right direction.
I did a copy and paste, like I should have done before, and changed the 
functions name and it works

Thank you both for your help

Thanks 

-Original Message-
From: Brent Fraser [mailto:bfra...@geoanalytic.com] 
Sent: Monday, December 07, 2009 12:54 PM
To: Jay Kapalczynski
Cc: 'geomoose-develop...@lists.sourceforge.net'; 
'mapserver-users@lists.osgeo.org'
Subject: Re: [Geomoose-developers] aJAX

Actually they are not identical (there's an extra ) in getRunquery.  And 
there 
could be other syntax problems...



Jay Kapalczynski wrote:
 I am trying to write some ajax here to run a query.  I simplified this 
 down so that no query is happening, rather just getting all the pages to 
 work together and return some text.
 
 I don't know whats going on here
 
  
 
 1.   I created a button that calls a javascript function
 
  
 
 input type=button value=Send to Ajax and Tab 
 onClick=ReturnQueryResults();
 
  
 
  
 
 2.   This function is calling and passing an ajax page some info.
 
  
 
 function ReturnQueryResults() {
 
  
 
  getRunquery('parcellinktest.php','121190012','S')
 
  
 
 /* 
 getResulthype('parcellinktest.php','121190012','S')  */
 
 }
 
  
 
 3.   Once there it (depending on what is commented out in the ajax 
 page) it runs one of two functions (both of which are IDENTICAL)
 
 But for some reason when I run the getRunquery I get errorsbut when I 
 run the getResulthype it works.
 
 I am passing the same values to the same php page.
 
 I just added the getRunquery to the ajax page.
 
  
 
  
 
 *function getResulthype(page,id,type){*
 
  
 
 var _target = 'content_details_form';
 

 
 if (id.length == 0) {
 
 document.getElementById(_target).innerHTML=bNo Information 
 Available/b;
 
 return;
 
 }
 
 xmlHttp = GetAJAXObject();
 
 if (xmlHttp==null) {
 
 alert (Unable to process your request, your browser does not 
 support AJAX!);
 
 return;
 
 }
 
 var url = 
 http://127.0.0.1:80/geomoose/php/+page+?id=+id+type=+type;
 

 
 xmlHttp.onreadystatechange = showResult;
 
 xmlHttp.open(GET,url,true);
 
 xmlHttp.send(null);
 
 }
 
  
 
 *function getRunquery(page,id,type){*
 
  var _target = 'content_details_form';
 

 
 if (url.length == )) {
 
document.getElementById(_target_.innerHTML=bNo Information 
 Available/b;
 
 return;
 
 }
 
 xmlhttp = GetAJAXObject();
 
 if {xmlHttp==null) {
 
 alert (Unable to process you request, your browser does 
 not support AJAX);
 
 return;
 
 }
 
   var url = 
 http://127.0.0.1:80/geomoose/php/+page+?id=+id+type=+type;
 
  
 
   xmlHttp.onreadystatechange = showResult;
 
   xmlHttp.open(GET,url,true);
 
   xmlHttp.send(null);
 
 }
 
  
 
  
 
  
 
  
 
 I thought something might be hanging so I cleared all temp files, shut 
 down, restarted Apache.
 
  
 
 If the values are the same, and they are being sent to the same page how 
 can I be getting errors
 
  
 
 Error:
 
 getRunquery is not defined
 
 getRunquery('parcellinktest.php','121190012','S')
 
  
 
  
 
  
 
 
 
 
 --
 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing. 
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 
 
 
 
 ___
 Geomoose-developers mailing list
 geomoose-develop...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geomoose-developers
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: [Geomoose-developers] aJAX

2009-12-07 Thread Jay Kapalczynski
One last syntax question



When I call the ajax page to send the values to:



getRunquery('parcellinktest.php','121190012','S')



Whats the syntax to replace the '121190012' with a variable?



I tried this:

getRunquery('parcellinktest.php', .'varaible'. ,'S')



thanks again





-Original Message-
From: Brent Fraser [mailto:bfra...@geoanalytic.com]
Sent: Monday, December 07, 2009 12:54 PM
To: Jay Kapalczynski
Cc: 'geomoose-develop...@lists.sourceforge.net'; 
'mapserver-users@lists.osgeo.org'
Subject: Re: [Geomoose-developers] aJAX



Actually they are not identical (there's an extra ) in getRunquery.  And there

could be other syntax problems...







Jay Kapalczynski wrote:

 I am trying to write some ajax here to run a query.  I simplified this

 down so that no query is happening, rather just getting all the pages to

 work together and return some text.



 I don't know whats going on here







 1.   I created a button that calls a javascript function







 input type=button value=Send to Ajax and Tab

 onClick=ReturnQueryResults();











 2.   This function is calling and passing an ajax page some info.







 function ReturnQueryResults() {







  getRunquery('parcellinktest.php','121190012','S')







 /*

 getResulthype('parcellinktest.php','121190012','S')  */



 }







 3.   Once there it (depending on what is commented out in the ajax

 page) it runs one of two functions (both of which are IDENTICAL)



 But for some reason when I run the getRunquery I get errorsbut when I

 run the getResulthype it works.



 I am passing the same values to the same php page.



 I just added the getRunquery to the ajax page.











 *function getResulthype(page,id,type){*







 var _target = 'content_details_form';







 if (id.length == 0) {



 document.getElementById(_target).innerHTML=bNo Information

 Available/b;



 return;



 }



 xmlHttp = GetAJAXObject();



 if (xmlHttp==null) {



 alert (Unable to process your request, your browser does not

 support AJAX!);



 return;



 }



 var url =

 http://127.0.0.1:80/geomoose/php/+page+?id=+id+type=+type;







 xmlHttp.onreadystatechange = showResult;



 xmlHttp.open(GET,url,true);



 xmlHttp.send(null);



 }







 *function getRunquery(page,id,type){*



  var _target = 'content_details_form';







 if (url.length == )) {



document.getElementById(_target_.innerHTML=bNo Information

 Available/b;



 return;



 }



 xmlhttp = GetAJAXObject();



 if {xmlHttp==null) {



 alert (Unable to process you request, your browser does

 not support AJAX);



 return;



 }



   var url =

 http://127.0.0.1:80/geomoose/php/+page+?id=+id+type=+type;







   xmlHttp.onreadystatechange = showResult;



   xmlHttp.open(GET,url,true);



   xmlHttp.send(null);



 }



















 I thought something might be hanging so I cleared all temp files, shut

 down, restarted Apache.







 If the values are the same, and they are being sent to the same page how

 can I be getting errors







 Error:



 getRunquery is not defined



 getRunquery('parcellinktest.php','121190012','S')

















 



 --

 Join us December 9, 2009 for the Red Hat Virtual Experience,

 a free event focused on virtualization and cloud computing.

 Attend in-depth sessions from your desk. Your couch. Anywhere.

 http://p.sf.net/sfu/redhat-sfdev2dev





 



 ___

 Geomoose-developers mailing list

 geomoose-develop...@lists.sourceforge.net

 https://lists.sourceforge.net/lists/listinfo/geomoose-developers
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: [Geomoose-developers] aJAX

2009-12-07 Thread Jay Kapalczynski
NEVER MIND GOT IT.just took the  ' ' off.


getRunquery('parcellinktest.php',varaible,'S')


From: Jay Kapalczynski
Sent: Monday, December 07, 2009 2:31 PM
To: 'Brent Fraser'
Cc: 'geomoose-develop...@lists.sourceforge.net'; 
'mapserver-users@lists.osgeo.org'
Subject: RE: [Geomoose-developers] aJAX


One last syntax question



When I call the ajax page to send the values to:



getRunquery('parcellinktest.php','121190012','S')



Whats the syntax to replace the '121190012' with a variable?



I tried this:

getRunquery('parcellinktest.php', .'varaible'. ,'S')



thanks again





-Original Message-
From: Brent Fraser [mailto:bfra...@geoanalytic.com]
Sent: Monday, December 07, 2009 12:54 PM
To: Jay Kapalczynski
Cc: 'geomoose-develop...@lists.sourceforge.net'; 
'mapserver-users@lists.osgeo.org'
Subject: Re: [Geomoose-developers] aJAX



Actually they are not identical (there's an extra ) in getRunquery.  And there

could be other syntax problems...







Jay Kapalczynski wrote:

 I am trying to write some ajax here to run a query.  I simplified this

 down so that no query is happening, rather just getting all the pages to

 work together and return some text.



 I don't know whats going on here







 1.   I created a button that calls a javascript function







 input type=button value=Send to Ajax and Tab

 onClick=ReturnQueryResults();











 2.   This function is calling and passing an ajax page some info.







 function ReturnQueryResults() {







  getRunquery('parcellinktest.php','121190012','S')







 /*

 getResulthype('parcellinktest.php','121190012','S')  */



 }







 3.   Once there it (depending on what is commented out in the ajax

 page) it runs one of two functions (both of which are IDENTICAL)



 But for some reason when I run the getRunquery I get errorsbut when I

 run the getResulthype it works.



 I am passing the same values to the same php page.



 I just added the getRunquery to the ajax page.











 *function getResulthype(page,id,type){*







 var _target = 'content_details_form';







 if (id.length == 0) {



 document.getElementById(_target).innerHTML=bNo Information

 Available/b;



 return;



 }



 xmlHttp = GetAJAXObject();



 if (xmlHttp==null) {



 alert (Unable to process your request, your browser does not

 support AJAX!);



 return;



 }



 var url =

 http://127.0.0.1:80/geomoose/php/+page+?id=+id+type=+type;







 xmlHttp.onreadystatechange = showResult;



 xmlHttp.open(GET,url,true);



 xmlHttp.send(null);



 }







 *function getRunquery(page,id,type){*



  var _target = 'content_details_form';







 if (url.length == )) {



document.getElementById(_target_.innerHTML=bNo Information

 Available/b;



 return;



 }



 xmlhttp = GetAJAXObject();



 if {xmlHttp==null) {



 alert (Unable to process you request, your browser does

 not support AJAX);



 return;



 }



   var url =

 http://127.0.0.1:80/geomoose/php/+page+?id=+id+type=+type;







   xmlHttp.onreadystatechange = showResult;



   xmlHttp.open(GET,url,true);



   xmlHttp.send(null);



 }



















 I thought something might be hanging so I cleared all temp files, shut

 down, restarted Apache.







 If the values are the same, and they are being sent to the same page how

 can I be getting errors







 Error:



 getRunquery is not defined



 getRunquery('parcellinktest.php','121190012','S')

















 



 --

 Join us December 9, 2009 for the Red Hat Virtual Experience,

 a free event focused on virtualization and cloud computing.

 Attend in-depth sessions from your desk. Your couch. Anywhere.

 http://p.sf.net/sfu/redhat-sfdev2dev





 



 ___

 Geomoose-developers mailing list

 geomoose-develop...@lists.sourceforge.net

 https://lists.sourceforge.net/lists/listinfo/geomoose-developers
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users