Bugs - javascript includes oddities in the plugin_wiki

15 views
Skip to first unread message

Bogdan Hlevca

unread,
Feb 12, 2011, 8:14:59 PM2/12/11
to web2py-users
Hi,

I just created a widget to display aggregated feeds on a page using
the plugin_wiki.
You can find the code at:
http://web2pyslices.com/main/slices/take_slice/120

It can be noticed that I had to include (again) the jquery-ui JS lib
in order to ensure that the 'dialog` feature used to mimic a tool-tip
over the links follows the position of the mouse pointer.

Doing a search on the directory it came out that Elrte ( the embedded
editor ) is using jquery-ui, but it has its own version and probably
obsolete. I tried with jquery-ui 1.7.9 and the position feature for
the dialog does not work, newer versions like 1.8.4 position the
dialog properly. This points to the fact that elrte uses an older
jquery-ui library.

I believe that elrte is the problem because is quite old at 1.0rc4 and
the latest version is at 1.2. Probably plugin_wiki should be updated
to the latest version.
Irrespective of whether elrte will be upgraded or not, I think that
the plugin_wiki should be made independent of the elrte library and
have the included jquery-ui library in the themes directory to take
priority.

It is possible that not elrte is at fault, but in this case there is
another interference from somewhere else. In any case the include
works for now, but this is just a hack and I would prefer a cleaner
way.

Bogdan

Massimo Di Pierro

unread,
Feb 13, 2011, 9:55:28 AM2/13/11
to web2py-users
Do you think this should be incided in the "official" plugin-wiki?

Bogdan Hlevca

unread,
Feb 13, 2011, 11:36:51 AM2/13/11
to web2py-users
I think so, it will bring the plugin_wiki to the current versions of
the underlying 3rd party technologies and will save some time for
other people.
I spent half day figuring out what was wrong. I love the plugin_wiki
and I use it everywhere

You can see the rss aggregator at work at http://www.hlevca.com.
Click on the New tab and hover the mouse over the <a href=> links .
The dialog/tooltip follows the mouse. Without that include ( I
mentioned in the web2pyslices ) the dialog will be always in the top
left corner of the browser window.

I think that we should make the themes jquery-ui JS lib to be last in
the path to have precedence over Elrte, so that will be no dependece
on that version. In addition an upgrade of elrte would be desirable.

Bogdan

On Feb 13, 9:55 am, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages