Search the web
Sign In
New User? Sign Up
ajaxcfc · ajaxCFC Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
JS Modals   Message List  
Reply | Forward Message #1052 of 1584 |
Re: [ajaxcfc] Re: JS Modals

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
> > >
>



Tue Dec 5, 2006 3:27 am

reybango
Offline Offline
Send Email Send Email

Forward
Message #1052 of 1584 |
Expand Messages Author Sort by Date

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...
Ryan
phidelt1350
Offline Send Email
Dec 1, 2006
8:33 pm

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 ... --...
Dan Wilson
klar1ty
Offline Send Email
Dec 1, 2006
9:02 pm

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...
Rob Gonda
z0mb1e7
Offline Send Email
Dec 5, 2006
3:07 am

Guys, Another method of having jQuery co-exist with DWR/AjaxCFC is to rename the jQuery $ method. You can do something like this: <script...
Rey Bango
reybango
Offline Send Email
Dec 5, 2006
3:37 am

Nice one Rey, thanks. ... "Dan ... some part ... exisiting...
Rob Gonda
z0mb1e7
Offline Send Email
Dec 5, 2006
3:46 am

No sweat man....
Rey Bango
reybango
Offline Send Email
Dec 5, 2006
3:58 am

Rob and Rey, thank you so much for getting back with me. I totally forgot about my post here until I noticed the replys on the RSS feed. I will look into the...
Ryan
phidelt1350
Offline Send Email
Dec 5, 2006
5:58 pm

I'm trying to get DWRUtil (used through AjaxCFC) and jQuery to work together by renaming the $ function as you suggested, but it doesn't seem to be working. I...
Dylan Glockler
dylanglockler
Offline Send Email
Dec 5, 2006
9:19 pm

line 59 of utils.js reads: if (!$ && document.getElementById) { that means it wont try to override an existing $() function. Try modifying that line to read if...
Rob Gonda
z0mb1e7
Offline Send Email
Dec 6, 2006
2:44 am

This worked for me Rob!!! Thanks alot! Ryan ... 'addRows'...
Ryan
phidelt1350
Offline Send Email
Dec 7, 2006
6:58 pm

Brilliant - thanks Rob. For anyone else trying to make the DWRUtil.addRows and ajaxCFC work with jQuery, I ran into one other small issue. Most of the jquery...
Dylan
dylanglockler
Offline Send Email
Dec 7, 2006
9:35 pm

Dylan, Why are you using DWRUtil.addRows at all? Why not use jQuery to do all of it? I haven't followed this thread enough to remember what your ultimate goal...
Christopher Jordan
c_s_jordan
Offline Send Email
Dec 7, 2006
10:13 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help