|
John,
At first I thought the problem was with the path
in the 'src' attribute of the <script/> block. But, even if the path
is correct ("addons/clc/calculate.js") it wouldn't load. Then I realized
that the script in loader.js was just doing an eval on the contents of the
<script/> tag which in the case of <script
src="javascript:void(0);"></script> was an empty
string.
So, I added a fix/hack to loader.js
to actually read the contents of the script in these cases. I've
checked it in. See if it works for you.
The only problem with making the clc stuff an
add-on is that search.htm requires that 'mathexp' exist. search.htm could
be changed to check to see if 'mathexp' is a function (like it does with the
other 'autodetect_' routines), but there probably needs to be a more generic
mechanism for adding functions that patterns and try to apply a search to it
automatically. Currently that list is language translations, urls, phone
numbers, currency conversions, and math expressions. Something to think
about.
Anyway, thanks for testing this
John.
Later,
Glenn
|
- [DQSD-Users] playing around with add-ons John W. Bairen, Jr.
- Re: [DQSD-Users] playing around with add-ons Glenn Carr
- Re: [DQSD-Users] playing around with add-ons John W. Bairen, Jr.
- Re: [DQSD-Users] playing around with add-... Glenn Carr
- Re: [DQSD-Users] playing around with ... John W. Bairen, Jr.
- Re: [DQSD-Users] playing around with add-ons John W. Bairen, Jr.
