[Nitro] Official Repo
Massimo Maria Ghisalberti
nissl at tiscali.it
Sat Apr 22 06:22:07 EDT 2006
ok,
after to have a rapid look to nitro/lib/nitro/compiler.rb i find a
problem in compile_action method
#################################################################
-- change this line :
(288) code << "break unless i < #{param_count};"
-- in:
(288) code << "break if i < #{param_count};"
-- with this change correctly i have two parameters: ["menu_item_001", "pippo"]
-- for http://localhost:9999/get_content?params=menu_item_001&_=pippo and not three
#################################################################
##################################################################
-- without the previous change params, already is ["menu_item_001"]
-- and after the concat call I have 3 params ["menu_item_001", "menu_item_001", "pippo"]
# Concatenate some extracted parameters.
(217) params.concat(context.params.values)
##################################################################
but...
the last parameter is _= (&_=) in a prototype.js AJAX request:
(670 in prot. 1.5.0_rc0) if (parameters.length > 0) parameters += '&_=';
(see http://blog.markjuh.net/markjuh/2005/9/26/unexpected_characters_when_using_prototy for ref direction)
removing this line from js make a fine uri request for nitro.
;) modify prototype or modify nitro (for handling bogus parameters)?
to be or not to be... that's the question :D
ciao
Massimo Maria Ghisalberti <nissl at tiscali.it>
More information about the Nitro-general
mailing list