Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using jquery in whole application
#1
Hi,

i' m using :  http://corebos.org/documentation/doku.ph...cial_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:?
Reply
#2
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')....
Joe
TSolucio
Reply
#3
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)
Reply
#4
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
Joe
TSolucio
Reply
#5
What do you think?
Reply
#6
:-)

Ok, I'll have a look at it asap
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)