Forum OpenACS Development: bug in ah::requires in ajaxhelper

Collapse
Posted by Byron Linares on
Hi all ,
Trying up ajaxhelper Package HEAD check out , I found some typo’s error, the proc ah::requires Throws an error when calling like “ah::requires -sources overlibmws_drag”

ERROR:
Too many positional parameters specified
while executing
"template::head::add_javascript__arg_parser"
(procedure "template::head::add_javascript" line 1)
invoked from within
"template::head::add_javascript -src -order 1 "overlibmws/overlibmws.js""
("uplevel" body line 1)
invoked from within
"uplevel 1 $script"

The problem is a typo calling template::head::add_javascript
"overlibmws_drag" {
template::head::add_javascript -src -order 1 "${ah_base_url}overlibmws/overlibmws${minsuffix}.js"
template::head::add_javascript -src -order 2 "${ah_base_url}overlibmws/overlibmws_draggable${minsuffix}.js"
}

link to bug tracker:

https://openacs.org/bugtracker/openacs/bug?bug_number=3178

Collapse
Posted by Don Baccus on
I've fixed these (hopefully). Please update with a new copy and try again.
Collapse
Posted by Don Baccus on
Also, please post here to let me know if I fixed them or not :)

I've marked it as fixed in the bugtracker, but haven't closed it, if you report success I'll close it.

Collapse
Posted by Byron Linares on
Hi Don, I updated ajax-procs.tcl from HEAD but there is a typo error remaining.In the same proc.

template::head::add_javascript -order 1 -src 1 "${ah_base_url}overlibmws/overlibmws${minsuffix}.js"

There is a “1” after flag “-src” and this throw the same “Too many positional parameters specified” error

Collapse
Posted by Hamilton Chua on
I just fixed it and committed it to head.