Guys,
Another method of having jQuery co-exist with DWR/AjaxCFC is to rename
the jQuery $ method. You can do something like this:
<script src="http://jquery.com/src/latest/"></script>
<script type="text/javascript">
JQ = $; //rename $ function
</script>
This was derived from the jQuery site here:
http://jquery.com/docs/PrototypeAndJQuery/
Also, be sure to reference this link for some additional changes that
make integration with other libraries much easier.
http://jquery.com/discuss/2006-November/016262/
Rey...
Rob Gonda wrote:
>
>
> Good call. Damn, every single library out there implements their own
> version of the $() function: prototype, dwr, jquery ... and the one I
> like the most is jquery.
>
> Ryan, depending on your code, you may be able to strip the dwrutils
> file out as it is not needed for the core; unfortunately, this will
> mean changes in your $() calls too (if you have any). You may open the
> ajax.js and comment the util.js include, aprox line 22.
>
> Like I said before, I am inclined to release an ajaxCFC/jquery branch
> soon... I may work on that these holidays... let's hope.
>
> HTH,
>
> ~Rob
>
> --- In ajaxcfc@yahoogroups.com <mailto:ajaxcfc%40yahoogroups.com>, "Dan
> Wilson" <sipacate@...> wrote:
> >
> > From what I understand, the jQuery $() function conflicts with the
> AjaxCFC
> > $() function.
> >
> > For this reason, you would not be able to use them together.
> >
> >
> > dw
> >
> > On 12/1/06, Ryan <ksu_stud@...> wrote:
> > >
> > > Anyone here doing any JS modals with ajaxCFC interaction? I tried
> > > downloading jquery along with a plugin called Thickbox but some part
> > > of the jquery or thickbox js files didn't play nice with my exisiting
> > > JS files. Any suggestions?
> > >
> > > Ryan
> > >
>