Ron,
This is kinda different that the way I have been playing with CFAJAX.. can you send the orderData.cfm page?

 
On 1/9/06, Ron Mast <[EMAIL PROTECTED]> wrote:

My version is not as elaborate as cfajax, but I can follow it, and it allows me to keep adding to it as my understanding of OO grows.

  1. I created a folder rmajax in the wwwroot which contains engine.js and util.js (files are attached to this email util.js is the same file from cfajax as a zip file) and created a virtual directory.
  2. I created a data folder also in the wwwroot which contains the files that I want to call (e.g. cfajax uses functions.cfm) and created a virtual directory.

3.   The index.cfm template from http://www.truth.com/2006/myaccount/neworderingsystem/ looks like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

 

<html>

<head>

      <title>Order Placement</title>

     

<script type='text/_javascript_' src=''></script> 

<script type='text/_javascript_' src=''></script>

<script language="_javascript_">

      function getData(theTemplate, theDivName){

                  var sendData = new myMessenger(theTemplate, theDivName);

                  return sendData.fetchData();

      }

     

      function init(){

                  DWRUtil.useLoadingMessage();

                  getData('/data/orderData.cfm', 'content');

      }

</script>    

     

</head>

 

<body >

<a href="" getData('/data/orderData.cfm', 'content');">Get Data (runs the same query)</a>

<br><br>

<div id="content"></div>

 

</body>

</html>

 

You can see similarities it's very basic so if you open up engine.js you won't have trouble understanding what I'm doing. Remember this is my first try at OOP, don't laugh!.

 

The template orderData.cfm is just a regular cfm template, looks like this:

<CFQUERY name="allParts" datasource="#DSN#">

SELECT      ITEMW, CPARTW

FROM         TABLENAME

ORDER BY ITEMW

</CFQUERY>

 

<CFQUERY name="q1" datasource="#DSN#">

SELECT      ITEMW, CPARTW

FROM         TABLENAME

WHERE      CUSTW = #Session.CustomerNumber#

ORDER BY ITEMW

</CFQUERY>

 

There are a total of <cfoutput>#allParts.recordcount#</cfoutput> records.<br>

And there are <cfoutput>#q1.recordcount#</cfoutput> records found for customer 2019.<br>

 

<table>

<tr>

      <td><strong>Truth Part Number</strong></td>

      <td><strong>Customer Part Number</strong></td>

</tr>

<cfoutput query="q1">

<tr>

      <td>#ITEMW#</td>

      <td>#CPARTW#</td>

</tr>

</cfoutput>

</table>

 

     

So there you have it. What is the disadvantage of doing it this way? Flexibility was what I was going for.   

 

Ron Mast

Webmaster

Truth Hardware

Ph: 507-444-4748

Fx: 507-444-5361

www.truth.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ryan Everhart
Sent: Monday, January 09, 2006 3:55 PM


To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: Re: [DFW CFUG] cfajax on Windows 2000 server

 

Well thats cool, how did you do that?  Did you have to change anything?

On 1/9/06, Ron Mast < [EMAIL PROTECTED]> wrote:

Good thing I tried reinventing the wheel cause mine works on CFServer 5.0 +.

http://www.truth.com/2006/myaccount/neworderingsystem/

 

Ron Mast

Webmaster

Truth Hardware

Ph: 507-444-4748

Fx: 507-444-5361

www.truth.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ryan Everhart
Sent: Monday, January 09, 2006 3:36 PM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: Re: [DFW CFUG] cfajax on Windows 2000 server

 

Yes, that is your problem.  CFAJAX will not work with 5.0

 

Ryan

 

On 1/9/06, Ron Mast < [EMAIL PROTECTED]> wrote:

Anyone running cfajax on CFServer 5.0? I think that might be my problem.

 

Ron Mast

Webmaster

Truth Hardware

Ph: 507-444-4748

Fx: 507-444-5361

www.truth.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ron Mast
Sent: Monday, January 09, 2006 3:00 PM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: RE: [DFW CFUG] cfajax on Windows 2000 server

 

I missed this line on functions.cfm file:

<cfinclude template="/cfajax/cfajax.cfm">

Should be correct now, but I'm still getting that error, going to keep looking.

 

Ron Mast

Webmaster

Truth Hardware

Ph: 507-444-4748

Fx: 507-444-5361

www.truth.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ryan Everhart
Sent: Monday, January 09, 2006 2:47 PM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: Re: [DFW CFUG] cfajax on Windows 2000 server

 

Ron,

What about the mapping that is on the functions.cfm page there is a mapping in that directory that may need to be change?  If I remember right I think it might be called AJAX rather than CFAJAX.  Another think you might try is look at your application.log for your ColdFusion server, there is probably an error happening on the CF side that you can't see. 

 

I believe Marlon is getting the error when he runs the fuctions.cfm page directly from your server

 

 

It does look like a syntax error on that page, on line 170.

 

 

Ryan



 

On 1/9/06, Ron Mast < [EMAIL PROTECTED]> wrote:

It's the same directory structure as on my 2003 server. I made the necessary changes with settings.js and the mappings.

I ran the sample example on the 2003 server and it ran fine.

 

Ron Mast

Webmaster

Truth Hardware

Ph: 507-444-4748

Fx: 507-444-5361

www.truth.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Marlon Moyer
Sent: Monday, January 09, 2006 2:37 PM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: Re: [DFW CFUG] cfajax on Windows 2000 server

 

I still get the same error.



 

On 1/9/06, Ron Mast < [EMAIL PROTECTED]> wrote:

Hmmm, last week I was vigorously trying to get the keyvalue.htm example to work on my 2003 server, and I was not successful. I gave up, because I know I could do it differently if needed to. I returned StructIsEmpty(), StructKeyExists(), and StructKeyList() and all those were normal except for StructKeyExists(), it says "no" all the time. Hard coding works to get the image to display. That explains line 170. Now it's back to the way it was and I'm still getting the same result, no data, and no error.


--
Marlon

A spaceman came travelling on his ship from afar,
'twas light years of time since his mission did start,
And over a village he halted his craft,
And it hung in the sky like a star, just like a star...
--Chris De Burgh, A Spaceman Came Travelling

_______________________________

This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual to whom they are addressed.  If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, please be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.


_______________________________________________
Reply to DFWCFUG:
  [email protected]
Subscribe/Unsubscribe:
 http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
   http://www.mail-archive.com/list%40list.dfwcfug.org/
 http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
  www.HostMySite.com
 www.teksystems.com/




--
Ryan Everhart
[EMAIL PROTECTED]

_______________________________

This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual to whom they are addressed.  If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, please be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.


_______________________________________________
Reply to DFWCFUG:
  [email protected]
Subscribe/Unsubscribe:
 http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
   http://www.mail-archive.com/list%40list.dfwcfug.org/
 http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
  www.HostMySite.com
 www.teksystems.com/




--
Ryan Everhart
[EMAIL PROTECTED]

_______________________________

This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual to whom they are addressed.  If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, please be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.


_______________________________________________
Reply to DFWCFUG:
  [email protected]
Subscribe/Unsubscribe:
 http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
   http://www.mail-archive.com/list%40list.dfwcfug.org/
 http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
  www.HostMySite.com
 www.teksystems.com/




--
Ryan Everhart
[EMAIL PROTECTED]

_______________________________

This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual to whom they are addressed.  If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, please be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.


_______________________________________________
Reply to DFWCFUG:
 [email protected]
Subscribe/Unsubscribe:
 http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
   http://www.mail-archive.com/list%40list.dfwcfug.org/
 http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
  www.HostMySite.com
 www.teksystems.com/






--
Ryan Everhart
[EMAIL PROTECTED]
_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.HostMySite.com 
  www.teksystems.com/

Reply via email to