JS error mojo-accordion & cluetip

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
12/3/2009 6:55:03 PM
Gravatar
Total Posts 2

JS error mojo-accordion & cluetip

Hi, I have been tweaking a skin css and having good luck with this, however I came across the following js errors that FireFox error console displays after page load. These don't break performance, but errors nonetheless. I am using latest version of mojoPortal with SQLite, and IIS 5.1. I test with IE7 and FireFox 3.5.5. I read the article on how to add the web.config keys for the various Jquery scripts, etc. but i dont know exactly what scripts the below are referring to. If so, how do I add the key and scripts? Thanks...

Error: $("div.mojo-accordion").accordion is not a function
Source File: http://localhost/Default.aspx

Error: $("a.cluetiplink").cluetip is not a function
Source File: http://localhost/Default.aspx

The View Source output shows the below scripts. In IE7 shows an error caused by Sys.Application.initialize:

<script>Sys.Application.add_load(function() { var form = Sys.WebForms.PageRequestManager.getInstance()._form; form._initialAction = form.action = window.location.href; }); </script>
<script>
//<![CDATA[

WebForm_InitCallback();//]]>
</script>

<script > $('div.mojo-accordion').accordion(); $('div.mojo-accordion-nh').accordion({autoHeight: false});  $('div.mojo-tabs').tabs(); </script>
<script >$(document).ready(function () { $('a.cluetiplink').cluetip({attribute:'href', topOffset:25, leftOffset:25}); }); </script>
<script>
//<![CDATA[
Sys.Application.initialize();
//]]>
</script>

12/4/2009 7:32:10 AM
Gravatar
Total Posts 18439

Re: JS error mojo-accordion & cluetip

Hi,

Make sure you are using the latest mojoPortal version 2.3.3.0 as there were some issues like this fixed recently.

Note that the jquery files are loaded from the google CDN, so if you are working on a local machine that is not always connected to the internet, then you may need to configure it to host the files locally.

Hope it helps,

Joe

12/4/2009 12:24:59 PM
Gravatar
Total Posts 2

Re: JS error mojo-accordion & cluetip

Hi, yes i am using 2.3.3.0 SQLite version of mojoPortal. I pointed the jquery and yui files locally, as per that article. I'm just not sure what key to add so the accordion and cluetip errors stop, again i am only assuming that is what needs to be done in this case.

12/6/2009 8:33:53 AM
Gravatar
Total Posts 18439

Re: JS error mojo-accordion & cluetip

If you are getting errors then the config settings for the path to the scripts may not be correct. You need to view the rendered source of the page and check the path for the js files and make sure it is correct and if not then adjust the config settings to make the path correct so it points to files that exist.

Hope it helps,

Joe

1/15/2010 8:13:06 AM
Gravatar
Total Posts 98

Re: JS error mojo-accordion & cluetip

Hello,

   I have the same js errors on my website regarding to

('div.mojo-accordion').accordion();is null

and

$(document).ready() is not a function

I have permanently conection to internet .

How can remove this errors?

Because of these more scripts not working

(I have last version of release files: 2.3.3.4)

 

Thanks,

   Valik

1/15/2010 8:47:39 AM
Gravatar
Total Posts 18439

Re: JS error mojo-accordion & cluetip

Hi Valik,

Make sure you have the ScriptLoader control in your layout.Master file of your skin.

See Upgrading Information for Skins

Hope it helps,

Joe

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