List Info

Thread: Can't change paramName with InPlaceCollectionEditor




Can't change paramName with InPlaceCollectionEditor
user name
2008-01-21 10:50:00
Hi all,

I use prototype v1.5 and script.aculo.us controls v1.7.0

I did this simple code :

------------------------------------------------------------
---------------------------------------
new Ajax.Request("myPageSel.asp", {
	method: "get",
	parameters: {r:$el.id},
	onSuccess: function(xhr) {
		new Ajax.InPlaceCollectionEditor($el.id, 'myPageMaj.asp',
{
			paramName: $el.id,
			collection: xhr.responseText.evalJSON()
		});
		alert($el.id);
	}
});
------------------------------------------------------------
---------------------------------------

Ajax.InPlaceCollectionEditor always sends paramName as
"value".
alert($el.id) return what I want and if I use InPlaceEditor
instead of
InPlaceCollectionEditor, paramName = $el.id. It works, it
sends
paramName as $el.id.

Do you know what I'm doing wrong?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Can't change paramName with InPlaceCollectionEditor
country flaguser name
France
2008-01-21 11:07:10
First question: can't you move to Proto 1.6 and Scripty
1.8.1?  IPE was 
completely rewritten in 1.8.

-- 
Christophe Porteneuve aka TDD
tddtddsworld.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Can't change paramName with InPlaceCollectionEditor
user name
2008-01-21 11:08:37
First, I've often seen you writing IPE could you tell me
what it
means?
Second, the answer is no, not now. That's why I wrote the
versions. So
is there any solution for these versions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Can't change paramName with InPlaceCollectionEditor
user name
2008-01-21 11:18:39
I have the answer for IPE and IPCE... I feel stupid 

The second question is still available!

On 21 jan, 18:08, bbp <fivestarscleanin...gmail.com> wrote:
> First, I've often seen you writing IPE could you tell
me what it
> means?
> Second, the answer is no, not now. That's why I wrote
the versions. So
> is there any solution for these versions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Can't change paramName with InPlaceCollectionEditor
user name
2008-01-21 16:01:27
How about passing a callback method to set all the params?

new Ajax.InPlaceEditor( 'element-id', '/your/url', { callback: function(form, value){ return { 'element-id': value }; } );

You really ought to upgrade to the latest version when you get a chance, it's excellent.

-justin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs&quot; group.
To post to this group, send email to rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )