Hi
 
Hope fully someone can help me with this, I am trying to implement mxajax within farcry, unfortunately am getting no results from the mxajax forums, below is the code to call the code from the scripts as you can see the js and cfc files required are in the webroot of the site.

<cfset ajaxUrl = "#application.url.webroot#/mxAjax/core/cf/example.cfc">
  <script type='text/_javascript_' src=''></script>
  <script type='text/_javascript_' src=''></script>
  <script type='text/_javascript_' src=''></script>
  <script language="_javascript_">
                       var url = ""


                 function init() {
                     new mxAjax.Select({
                         parser: new mxAjax.CFArrayToJSKeyValueParser(),
                                     executeOnLoad: true,
                                     target: "StockId",
                                     paramArgs: new
mxAjax.Param(url,{param:"objectId={#SESSION.patersonClient.username#}", cffunction:"pslGetWatchlist"}),
                                     source: "objectId"
                               });
                       }
        alert(mxAjax);
                       addOnLoadEvent(function() {init();});
               </script>

the variables are being passed into this code correctly.
This code is in an include (includedObj) page in admin.  The error I am getting is

Error: element has no properties
Source File: http://address/mxAjax/core/js/prototype.js
Line: 1506

problem line in prototype.js:

<b>if (element.addEventListener) {</b>
      this.observers.push([element, name, observer, useCapture]);
      element.addEventListener(name, observer, useCapture);
    } else if (element.attachEvent ) {
      this.observers.push([element, name, observer, useCapture]);
      element.attachEvent('on' + name, observer);
    }
  },

If anyone has got mxAjax working in farcry or can assist in seeing if farcry is causing a problem with the setup would be greatly appreciated.
 
Thanks
MW

 
On 9/26/06, Geoff Bowers <[EMAIL PROTECTED]> wrote:

M Wheeler wrote:
> Am working on implementin some AJAX functionality with my farcry app.  I
> was playing with CFAJAX and got this working quite well in my templates,
> but needed to use ajax to call webservices and SQL queries from cfc's
> directly and was having a bit of a problem, It was recommended that I
> have a look at MXAJAX when calling cfc's directly which looks ok and
> seems to work well but implementing with farcry seems to be a problem

Have you built a specific facade for the farcry components or are you
trying to reach them directly?

-- geoff
http://www.daemon.com.au/

--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au/mg




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/farcry-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to