[Proto-Scripty] Re: how to pass question marks in fields using ajax updater

2010-01-27 Thread T.J. Crowder
Hi, You're doing a lot more work there than you need to (and apparently introducing some problem with a question mark; I'm not immediately seeing why, but I think your message was truncated). Check out Form#serialize and Form.Element#serialize. There's no problem submitting fields with question

[Proto-Scripty] Re: Ajax.Updater problem with double quotes

2010-01-27 Thread ColinFine
On Jan 26, 3:41 am, Noppanit noppanit.charassinvic...@googlemail.com wrote: Hi guys, I'm not really sure if this is the problem of prototype. I'm using Ajax.Updater to update my table. But It was wired that when my table is updated, instead of my table would be code table id=tableID

[Proto-Scripty] Sortable: can I reject a drag?

2010-01-27 Thread boson...@gmail.com
so this is my situation: I am making an online link/file directory application where library items are in library folders. I can have nested folders so basically I'm working with a tree. ie: folder -item -folder --item -item etc... Using Sortable.create I managed to make everything sortable

[Proto-Scripty] Re: how to pass question marks in fields using ajax updater

2010-01-27 Thread Scott
It looks like you are forming your parameters as you would a querystring ex: a=appleb=banana parameters for an Ajax.Updater or Request are usually set up like this: parameters: { a: 'apple', b: 'banana' } if you are still having trouble passing in a '?' you could also try changing the method to

Re: [Proto-Scripty] Sortable: can I reject a drag?

2010-01-27 Thread Alex McAuley
there is an accept flag you can set in the setup .. consult the documentation its in there somewhere.. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: boson...@gmail.com instructi...@gmail.com To: Prototype script.aculo.us

[Proto-Scripty] Couldnot solve the problem with call class method with parameters

2010-01-27 Thread buda
I have a class var TObj = Class.create({ initialize: function() {... }, metod1: function() { this.method2(1,2); --- cal method2 with parameters }, method2: function(a, b){ var aa = a; -- a b is undefined! } }); why in method2

[Proto-Scripty] Re: Couldnot solve the problem with call class method with parameters

2010-01-27 Thread T.J. Crowder
Hi, As quoted, that code is fine and will work if you do this: var x = new TObj(); x.metod1(); ...that will call x.method2 with a = 1, b = 2. Can you give a complete example[1] demonstrating the problem? [1] http://proto-scripty.wikidot.com/self-contained-test-page -- T.J. Crowder Independent