7912 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » $ is not a function
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 2929 Views |
-
Re: $ is not a function

20 July 2010 at 6:26am
It's because you're using tabs. I have a jQuery tabset floating around here somewhere.. let me look around and I'll post it.
-
Re: $ is not a function

20 July 2010 at 7:13am
Removing the tabs did indeed solve the issue.
Thanks a lot, it was doing my head in.
A working variant of TabSet and Tab would be much appreciated! -
Re: $ is not a function

20 July 2010 at 8:14am Last edited: 20 July 2010 8:15am
http://carlinowebdesign.com/tabs.zip
Place in a folder named "tabs", and run a flush.
Example code:
return new FieldSet(
new HorizontalTabSet("Root",
new Tab('Info',
new TextField('Name')
),
new VerticalTabSet('Schools',
new Tab('DOM',
new DataObjectManager(
$this,
'Schools',
'School',
array('Name' => 'Name', 'Year' => 'Year', 'Degree' => 'Degree')
)
),
new Tab('Bio',
new TextareaField('Bio')
)
),
new Tab('RandomThings',
new CheckboxSetField('RandomThings','Random things',DataObject::get("RandomThing")->toDropdownMap('ID','Foo'))
)
)
);Notice that for nested tabsets, you can use VerticalTabSet to hide and show fields on click from within a horizontal tab.
Haven't tested in 2.4, and just made a fix that should help. Let me know how that works for you.
-
Re: $ is not a function

21 July 2010 at 6:06am Last edited: 21 July 2010 6:12am
Thanks UC, those tabs do play nice with DOM.
Why don't you bundle them with your DOM release(s)?
Doubt I'm the only person using tabs in combination with DOM. -
Re: $ is not a function

21 July 2010 at 6:31am
Cause I assumed they didn't work! Glad to hear it's working for you. I think I will roll that in and let people play around with it.
-
Re: $ is not a function

21 October 2010 at 5:24pm
The HorizontalTabSet is great, solve my "$ is not a function" too. The new look & feel for the tabs blends well with the popup!
-
Re: $ is not a function

4 January 2011 at 5:14am Last edited: 4 January 2011 5:17am
i stumbled upon this and i must say that this is really really great.
So I just wanted to inform you, that these tabs interfiere with Uploadify - so you have to use FileIFrameField.
-
Re: $ is not a function

14 January 2011 at 10:44am
It's a conflict with jQuery and I solved it this way...
- Modified the file imagegallerymanager_popup.js in folder image_galery/javascript this way:$.noConflict();
jQuery(function() {
jQuery('.rotate-controls a').click(function() {
link = $(this).attr('href');
jQuery.ajax({
url: link,
success: function(html){
jQuery('#preview-image img.preview').attr('src', html);
}
});
return false;
});
});jQuery().ajaxSend(function(r,s){
jQuery(".ajax-loader").slideDown();
});jQuery().ajaxStop(function(r,s){
jQuery(".ajax-loader").slideUp();
});After this modification, '$ is not a function' error gone, and uploads begin to function as usual....
| 2929 Views | ||
| Go to Top | Next > |


