Mono support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Mono Support JQuery problem 

Viewed 4488 time(s), 4 post(s) 2/16/2012 5:39:25 PMby Maxim
Maxim
1

Maxim 2/16/2012 5:39:25 PM

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.
This content has not been rated yet. 
319 Reputation 30 Total posts
shawndg
2

shawndg 2/17/2012 7:22:45 AM

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!
This content has not been rated yet. 
1871 Reputation 252 Total posts
shawndg
3

shawndg 2/16/2012 6:32:46 PM

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.
This content has not been rated yet. 
1871 Reputation 252 Total posts
denis
4

denis 2/16/2012 7:04:04 PM

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. 
This content has not been rated yet. 
7147 Reputation 932 Total posts