I posted a question about conditionals:
http://groups.google.com/group/web2py/browse_thread/thread/fce036c78768a3f/d5833ffc5fdeca22#d5833ffc5fdeca22

The problem is that my web2py_ajax.html file contains functions like:

tinyMCE.init({
  ...
});


jQuery('#base').dataTable({
  ...
  });


... that result in the following errors in views that do not contain
the tinyMCE and dataTable .js files:

ReferenceError: Can't find variable: tinyMCE
TypeError: Result of expression
'jQuery('#base').dataTable' [undefined] is not a function.


Is there a way to solve this other than including the .js files in
every view.


Furthermore I don't understand why:

jQuery('#base').dataTable({
  ...
  });

is not a function. I put this code in the  function web2py_ajax_init()
{...} function.



Kind regards,

Annet.

Reply via email to