[Proto-Scripty] Re: Checking for similar (not exact) records using prototype

2009-05-11 Thread T.J. Crowder
Hi, Before answerng your actual question, a quick note on this: if (NameEntered.length3 [% for code in @codes %'%= code.name %',% end %'test'].include(NameEntered)) { That looks to me as though it will follow all names, including the last one, with a comma, and so you'll end up with:

[Proto-Scripty] Prototype + Ruby on Rails

2009-05-11 Thread ee03...@gmail.com
Hello. I'm new at this subject so, if you can help me, i'll apreciate a lot. I have a platform in ruby but i need to improve it, putting some scripts in java. How can i do this? I search and i found that prototype is one of the javascripts to ruby. Please help me. Thank you so much.

[Proto-Scripty] Re: Prototype + Ruby on Rails

2009-05-11 Thread T.J. Crowder
Hi, (Your account is still in moderated status, so don't worry if you reply to this and your reply is delayed until approved by a moderator.) Do you mean Java or JavaScript? They're not the same thing. If Java, do you mean client-side (applets) or server-side? If server-side, I'd ask over in

[Proto-Scripty] Browser-native JSON

2009-05-11 Thread igenchev
Hello. I'm using Firefox 3.5 beta4 and it has internal JSON parsing support via JSON.encode({}) and JSON.decode(''). (at least, it works for me) Does Prototype.js support such a parser, and if not are there plans to include such support? --~--~-~--~~~---~--~~ You

[Proto-Scripty] Re: Please Help With Code

2009-05-11 Thread Walter Lee Davis
Are these DIVs contained by a parent? Or have you (can you) apply a single unique class to them? If so, you can treat them as an enumerable collection using the double dollar or select functions. $$('div.someclass')... $('parentdiv').select('div')... Both of those return an array of

[Proto-Scripty] Re: Browser-native JSON

2009-05-11 Thread Tobie Langel
Hi, We're planning to support this asap. Best, Tobie On May 11, 11:42 am, igenchev igenc...@deo.uni-sofia.bg wrote: Hello. I'm using Firefox 3.5 beta4 and it has internal JSON parsing support via JSON.encode({}) and JSON.decode(''). (at least, it works for me) Does Prototype.js support

[Proto-Scripty] Re: Prototype + Ruby on Rails

2009-05-11 Thread ee03...@gmail.com
I'm sorry. I mean javascript, like prototype or scriptaculous. On May 11, 10:37 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, (Your account is still in moderated status, so don't worry if you reply to this and your reply is delayed until approved by a moderator.) Do you mean

[Proto-Scripty] Re: Prototype + Ruby on Rails

2009-05-11 Thread T.J. Crowder
Hi, No problem. :-) I'm not quite sure what the question really is, though. If you're just getting started with this stuff, I'd recommend reading through the Tips and Tutorials page[1] on the Prototype website, reading through the API[2] from beginning to end (only takes a couple of hours, and

[Proto-Scripty] Re: Please Help With Code

2009-05-11 Thread T.J. Crowder
FYI, Zane's emailed me privately about this. I don't think he wrote the code and in fact I don't think he's a scripting guy at all -- he offered to pay me to sort out whatever the thing is, before going offline (I'm guessing to bed; he's in Australia, I think). I gave him some further code (and

[Proto-Scripty] Prototype.JS IE8

2009-05-11 Thread manu_php
Hi, can anyone say me when can we get stable prototype.js with IE8 browser fixes? Iam eagerly waiting for this. Iam using prototype.js since 2007. I want to upgrade my site to IE8 it is giving up some issues. So curious to know about this Thanks, Manu

[Proto-Scripty] Re: Prototype.JS IE8

2009-05-11 Thread T.J. Crowder
Heya, 1.6.1 RC2 has full support for IE8: http://prototypejs.org/2009/3/27/prototype-1-6-1-rc2-ie8-compatibility-element-storage-and-bug-fixes I don't know the timeframe for 1.6.1 GA release, but I don't think it's far off. You might follow this thread over in the Core group; someone asked the

[Proto-Scripty] Re: Please Help With Code

2009-05-11 Thread T.J. Crowder
Hi, Anyone know what happened to all of his messages, though? Never mind, he just wrote to tell me he removed them. -- T.J. On May 11, 1:21 pm, T.J. Crowder t...@crowdersoftware.com wrote: FYI, Zane's emailed me privately about this.  I don't think he wrote the code and in fact I don't

[Proto-Scripty] Re: Browser-native JSON

2009-05-11 Thread igenchev
Cool, many thanks! :) On May 11, 2:42 pm, Tobie Langel tobie.lan...@gmail.com wrote: Hi, We're planning to support this asap. Best, Tobie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Getting the horizontal Sliding effect right...

2009-05-11 Thread hlk
Hello, I am trying to replicate horizontal sliding effect seen here: www.gucci.com/us/us-english/about-gucci/creative-directors/frida-giannini/ I think its done using the Prototype script.aculo.us script. However, I am unable to get how it is implemented. I want to reproduce a horizontal

[Proto-Scripty] problem with Ajax using iMac G5

2009-05-11 Thread MikeASL
I have some web pages using Prototype 1.61 that work on intel macs but not on G5 macs. The problem seems to be a call to ajax ( //groupscript = '/echopay/group_pay.script.php'; var myAjax = new Ajax.Request( groupscript, { method: 'get', parameters: pars,

[Proto-Scripty] Classes vs Objects - Best Practice?

2009-05-11 Thread louis w
I have always set up my Javascript using objects like below: if (!FooBar_Old) var FooBar_Old = {}; FooBar_Old.UI = { test_str : 'it works' , test: function() { console.log(this.test_str); } }; // FooBar_Old.UI.test(); However recently I have been

[Proto-Scripty] Re: Classes vs Objects - Best Practice?

2009-05-11 Thread Josh Powell
If I only need one of something, I go with an object, otherwise if I need more then one I go with a class-like structure.. though I don't use Prototypes Class method, so I'll let someone that does answer that part of the question. Josh Powell On May 11, 1:44 pm, louis w louiswa...@gmail.com

[Proto-Scripty] Re: Classes vs Objects - Best Practice?

2009-05-11 Thread louis w
Josh could you post an example of how you do it? I am interested in all of the different approaches. Thanks. On May 11, 6:12 pm, Josh Powell seas...@gmail.com wrote: If I only need one of something, I go with an object, otherwise if I need more then one I go with a class-like structure..

[Proto-Scripty] Re: Classes vs Objects - Best Practice?

2009-05-11 Thread Ryan Gahl
Louis, Your error is that you should not be using the new keyword before Class.create() Class.create() is a helper function that essentially just returns a function. Note, in js, all named functions are considered constructors. Obviously, a function that has no prototype properties and sets not

[Proto-Scripty] Re: Ajax.Updater add instead of update?

2009-05-11 Thread Miguel Beltran R.
2009/5/10 T.J. Crowder t...@crowdersoftware.com Hi, I want instead update, add the second span to status, but if I use Insert option, add outside status. like this div id=status span id=x1/span /div span id=x2/span What did you give for the insertion option? Because this: No

[Proto-Scripty] Re: Classes vs Objects - Best Practice?

2009-05-11 Thread Josh Powell
I do this: var MyClass = function () { this.foo = 'bar' } MyClass.prototype = { 'baz': function() { alert('blitz'); } } //Which lets me: var myObj = new MyClass(); myObj.foo; // 'bar' myObj.baz(); // alerts 'blitz' //And even: for (attr in myObj) { alert(attr); //

[Proto-Scripty] Re: Classes vs Objects - Best Practice?

2009-05-11 Thread kangax
On May 11, 6:38 pm, Ryan Gahl ryan.g...@gmail.com wrote: Louis, Your error is that you should not be using the new keyword before Class.create() Class.create() is a helper function that essentially just returns a function. Note, in js, all named functions are considered constructors. They

[Proto-Scripty] Re: Classes vs Objects - Best Practice?

2009-05-11 Thread RobG
On May 12, 1:20 pm, RobG rg...@iinet.net.au wrote: [...] Javascript can emulate many object models, not just classic OO or class-based iheritance. That should have been: many *inheritance* models -- Rob --~--~-~--~~~---~--~~ You received this message