Mono Support JQuery problem 

Viewed 10932 time(s), 4 post(s), 2/16/2012 5:39:25 PM - by Maxim
2/16/2012 5:39:25 PM
319 Reputation 30 Total posts

Hi.

How I understand JQuery by design loads only for administrator users. So I try to include it separately to use it for common purposes. It's loads but doesn't works(other JS libs works fine) event document.ready jquery never fires... I don't know where is the problem. Can you to describe right way to use JQuery at MonoX.

1
2/17/2012 7:22:45 AM
1871 Reputation 252 Total posts

I used Jquery and MonoX with no problems at all..

By default Jquery comes with MonoX but its a slim version..
If you want to upgrade it then I think you can find it in one of the template or header files.. may even be in webconfig.. been a while..

Cant remember exactly where but you can upgrade from the min library to the full library by simply uploading the lib you want and editing MonoX to use it.

I never had any problems with admin rights of jquery so I never noticed that..
I think that wrong because then it would be useless for many web developers because many of there users may not have access to the administrator accounts on the pcs they are using to browse their web pages..And most of what jquery is in client side java script..

Now if you referring to Jquery loading into IIS as needing admin permissions I think it just outputs to the browser a bunch of JavaScript functions that the browser thinks is javascript. So the IIS webserver would treat it pretty much like a standard javascript include.

So only permissions required to run it would be.. allow java script checkbox inside the users web browser..Granted some anal admins my disable this functionality from their users.

Hope this helps!

2
2/16/2012 6:32:46 PM
1871 Reputation 252 Total posts

Ok I want to Add to this..

I missed that MonoX dont load jquery by design for all pages..
My bad I thought you where talking about client side.. user rights. haha.

They only use it in the admin.. so if you want it to load all pages you need to add it yourself to the template files.

3
2/16/2012 7:04:04 PM
7207 Reputation 956 Total posts

Guys, are we talking about base jQuery library, or some other script library based on jQuery? jQuery is loaded for all users, at least in new versions of MonoX. Go to http://monox.mono-software.com/ and you can verify that it is referenced (I think that 1.6.2 is used by default). You can change the version by changing the jQueryReferencePath in web.config. 

4
This is a demo site for MonoX. Please visit Mono Software for more info.