CoreBOSBB

Full Version: using jquery in whole application
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

i' m using :  http://corebos.org/documentation/doku.php?id=en:devel:add_special_block

to add a block inside the detailview of Account

i have declared jquery in Header.tpl :

<script type="text/javascript" src="include/jquery/jquery-1.11.3.min.js"></script>

but it's not available in the widget 
i have to redeclare it under the <accountwidget>.tpl

<script type="text/javascript" src="include/jquery/jquery-1.11.3.min.js"></script>

so that i can access the $ variable

is it possible not to recall the jquery again:?
Hi

You should be able to use jQuery directly, it will be version 1.6.2 and you must use "jQuery" instead of "$", "$" is assigned to prototype. In other words, try:

jQuery('#id').....

instead of

$('#id')....
Cool

it works , thanks

i'm cleaning all the js declarations to have only one call of the javascript files

i have updated also to latest jquery (1.11)
There is a lot of work to be done in workflows, they are very dependent on an older version of jQuery. We have that work done, so if you run into that ask, I may be able to move that code into coreBOS
What do you think?
:-)

Ok, I'll have a look at it asap