I'll give you the benefit of what little XP I have with it.

1) Engine.js (I renamed it to jsmx.js) goes wherever you like. I put mine in
an includes folder.

2) Write your functions like so:

<script>
   function findzip_request(){
        // this grabs the value of one form field.
       param = 'zip='+document.getElementById('zipcode').value;

        // this line calls a method on the remote.cfc
        // (reference the CFC according to it's location.
        // (you can replace it with CFM if you like)
        // it passes into the method the value of the param variable
        // when this function gets results back from the CFC it runs
        // the findzip_response function just below it.
       http( 'POST' , 'remote.cfc?method=findZipCode' , findzip_response ,
param );
   }
   function findzip_response(obj){
        // this function is just plain ole vanilla javascript
        // it populates two other form fields with the returned values
      document.getElementById('city').innerHTML = obj.city;
      document.getElementById('state').innerHTML = obj.state;
   }
</script>



<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Tony [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 20, 2006 10:16 AM
To: CF-Talk
Subject: Re: AJAX


is there a manual, or tutorial that says:

Tony... put this file here, put this file here, put this coldfusion
stuff ehre, and this is how you do this?

im having the dumbest time wrapping my head around this :(

yours truly...
800 on the SAT's boy :(

On 6/20/06, Rey Bango <[EMAIL PROTECTED]> wrote:
> Thanks for the link to JSMX. I didn't know it was out and it looks
> fairly straightforward.
>
> Rey...
>
> Andy Matthews wrote:
> > For the record, I'm using JSMX (www.lalabird.com) and it's pretty easy
to
> > get working. It's only one file as opposed to the multiple files that
CFAJAX
> > and AjaxCFC use. Plus the examples are much simpler to understand.
> >
> >
> > <!----------------//------
> > andy matthews
> > web developer
> > certified advanced coldfusion programmer
> > ICGLink, Inc.
> > [EMAIL PROTECTED]
> > 615.370.1530 x737
> > --------------//--------->
> >
> > -----Original Message-----
> > From: Josh Nathanson [mailto:[EMAIL PROTECTED]
> > Sent: Monday, June 19, 2006 3:29 PM
> > To: CF-Talk
> > Subject: Re: AJAX
> >
> >
> > <!--- insert standard Rick Root message about using AjaxCFC instead of
> > CFAjax here --->
> >
> >
> >
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244250
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to