Broken ajax links in component

26 views
Skip to first unread message

Ian W. Scott

unread,
Jul 9, 2014, 3:31:33 PM7/9/14
to web...@googlegroups.com
I'm in the process of upgrading a site from bs2 to bs3 and I've run into an unexpected (and possibly unrelated?) error. On one page I have links in one component that are supposed to update another component. The links are now broken and raise an error:

Syntax error, unrecognized expression: /paideia/plugin_listandedit/edit.load/plugin_slider_decks/74?orderby=id&tablename=plugin_slider_decks

The "unrecognized expression" is simply the url that is supposed to be loaded in the other component. The link that triggers this error looks like this:

<a data-toggle="tab" class="plugin_listandedit_list" data-w2p_disable_with="default" data-w2p_method="GET" data-w2p_target="viewpane" href="/paideia/plugin_listandedit/edit.load/plugin_slider_decks/76?orderby=id&amp;tablename=plugin_slider_decks">Asking 'When' Questions</a>

So far I've tried updating the web2py.js file to the latest github version, but that didn't change anything. I'm really mystified!

Leonel Câmara

unread,
Jul 10, 2014, 6:32:27 AM7/10/14
to
Have you tried updating jquery to 1.11 this seems like a known jquery 1.9 bug.

Ian W. Scott

unread,
Jul 10, 2014, 6:55:59 AM7/10/14
to web...@googlegroups.com
Sorry for the double post of this question. My original post took several hours to appear, so I thought it hadn't gone through.

Ian W. Scott

unread,
Jul 10, 2014, 6:57:51 AM7/10/14
to web...@googlegroups.com
I'm not running jquery 1.9. It's version 1.10.2. But I can try 1.11 and see what happens.

Ian W. Scott

unread,
Jul 10, 2014, 10:06:10 AM7/10/14
to web...@googlegroups.com
I found the culprit. The ajax links were in a list with the bootstrap classes "nav nav-tabs". In bootstrap 3 the tabs js was choking on the url when an item was clicked.
Reply all
Reply to author
Forward
0 new messages