Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-11-2008, 09:13 PM   PM User | #1
snoodle
Regular Coder

 
Join Date: May 2007
Location: Manteca, CA
Posts: 219
Thanks: 4
Thanked 0 Times in 0 Posts
snoodle is an unknown quantity at this point
jquery.ui problems

It's taken me a little while, but I believe I have finally succumbed to the power and wonder that is... JQuery. I have been bouncing from framework to framework for about 9 months, much of that time devoted to building my own. I was on the cusp of giving in to ExtJS at one point, but in the end, the fancy widgets weren't a compelling enough force to make me commit. As my own framework continued to evolve (and be rewritten) my objectives became clearer, and one of those objectives was developing a way to deal with the dom in a terse-as-possible way - you know, keep subclassing or funneling the code until it would take a line or 2 to manage complex widgets. Given another 2 or 22 years, I think my system would have been very close to JQuery.

That said, I am still a JQuery super-newbie, and although code is starting to happen and I'm starting to get the "magic", I'm having a problem with some basic stuff.

When I attempt to use the resizeable or draggable classes in jquery.ui, I run into errors. When using draggable, I get a "this.helper.offsetParent is not a function". message. For resizeable I get...
this.element.position is not a function
[Break on this error] var o = this.options, iniPos = this.element.position(), el =this.element,

I'm trying to drag and/or resize a simple div (whether it's created on the fly or in the html) all I do is add the dot-draggable() to the object and I get the error message (in FF). The cursor does change to the appropriate states (for resizeable) and obviously, from the error messages, I've made it into the code that should be doing the dragging and resizing.

Any help is very much appreciated. I also posted this on the JQuery site but I'm a little confused as to where it should be posted and when it will get answered. Is the JQuery site the best place to go for JQuery chat and questions?
snoodle is offline   Reply With Quote
Old 05-12-2008, 08:02 PM   PM User | #2
philippe.rathe
New to the CF scene

 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
philippe.rathe is an unknown quantity at this point
You need the dimension plugin

Add the dimension plugin javascript file before the draggable files!
You won't have this error after.

http://plugins.jquery.com/project/dimensions
philippe.rathe is offline   Reply With Quote
Old 05-12-2008, 09:16 PM   PM User | #3
snoodle
Regular Coder

 
Join Date: May 2007
Location: Manteca, CA
Posts: 219
Thanks: 4
Thanked 0 Times in 0 Posts
snoodle is an unknown quantity at this point
I included the dimensions.js plugin and still have the same problem. I've been able to make other plug-ins work so I'm sure all the path stuff is right and dimensions.js is getting included ok. Neither resizeable or draggable are working.

Also the demo html files don't include dimensions.js and it doesn't appear as a file in draggable's or resizeable's dependency lists. Why are you so confident that dimensions.js would fix the problem?
snoodle is offline   Reply With Quote
Old 05-26-2008, 02:06 AM   PM User | #4
snowman51
New to the CF scene

 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
snowman51 is an unknown quantity at this point
You need to get the latest versions

If you download the latest version of jquery (as of now 1.2.6) and go to http://ui.jquery.com/ to download 'draggable' and 'ui core' -- you should be all set to go -- no dimensions plugin needed
snowman51 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:30 AM.


Advertisement
Log in to turn off these ads.