Accordion Div

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/16/2011 11:41:40 AM
Gravatar
Total Posts 148

Accordion Div

Hello:

When I install my controls, I keep getting this script error:

<script type="text/javascript" > $('div.mojo-accordion').accordion({fx:{opacity:'toggle',duration:'fast'}});$('div.mojo-accordion-nh').accordion({fx:{opacity:'toggle',duration:'fast'},autoHeight:false}); $('div.mojo-tabs').tabs({fx:{opacity:'toggle',duration:'fast'}}); $('input.jqbutton').button(); $('a.cblink').colorbox({width:'85%', height:'85%', iframe:true});$('.faqs dd').hide();$('.faqs dt').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')}).click(function(){ $(this).next().slideToggle('normal'); });  <

The script error dialog tells me the function .accordion is not supported.  This only occurs after I install my own controls.  I am not using an accordion of any type anywhere.  If I don't use my controls, I don't receive this error.

11/16/2011 12:31:30 PM
Gravatar
Total Posts 148

Re: Accordion Div

Hi:

I found a way to make my control work. I DON'T include a reference to my jQuery files in my control file.  I just use the references from MojoPortal that load automatically. Is there an easier way? Because, now, in order for me to test my controls in Visual Studio I need to un-comment the jQuery inclusion.  When I install the control to MojoPortal I need to  remember to comment out the reference to jQuery.

11/17/2011 7:40:30 AM
Gravatar
Total Posts 18439

Re: Accordion Div

features designed to run in mojoPortal must run in the context of mojoPortal and jquery is already included in mojoPortal.

I don't really have advice for making a mojoPortal feature that also runs stand alone outside of mojoPortal. My advice is develop your feature for mojoPortal and test it running in the context of mojoPortal.

Perhaps you can use a web.config setting to control whether you load jquery and if it is running in your web app instead of mojoPortal then you can add jquery.

You must sign in to post in the forums. This thread is closed to new posts.