[Proto-Scripty] Cannot mix Prototype and Yahoo UI Library (YUI)

2009-04-08 Thread Ananth
I am unable to do the following within the Yahoo UI Library framework with Scriptaculous: YAHOO.namespace(mycompanyname); YAHOO.mycompanyname.MyClass=Class.create({ initialize:function() { } , anotherFunction:function(options) {

[Proto-Scripty] Re: Cannot mix Prototype and Yahoo UI Library (YUI)

2009-04-08 Thread Ananth Raghuraman
TJ, Thanks for the reply! I will try out new Element(tagName,{}); (I have a feeling you are right). As to the YUI issue, it was a syntax error where I was closing anotherFunction below with a ')' instead of a '}' On Tue, Apr 7, 2009 at 5:59 PM, Ananth araghuram...@gmail.com wrote: I am

[Proto-Scripty] Re: Cannot mix Prototype and Yahoo UI Library (YUI)

2009-04-08 Thread Ananth Raghuraman
...@ckiweb.comwrote: If you are planning on extending YUI classes using Prototype's Class.create, you might want to look at the bottom of this bug: https://prototype.lighthouseapp.com/projects/8886/tickets/151-extending-yui-objects-with-prototype Trevan On 4/7/2009 3:59 PM, Ananth wrote: I am unable

[Proto-Scripty] Re: Help with binding

2009-04-09 Thread Ananth Raghuraman
I am trying to do something exactly like this. I suppose you are also trying to guarantee that a function's this always refers to its original owner? Anyway, have you tried this func = (test:function(){return this.name;}} instead of var func = ... ? On Thu, Apr 9, 2009 at 3:36 PM, kstubs

[Proto-Scripty] Re: Autocomplete word disappears as soon as it's fully typed

2009-04-16 Thread Ananth Raghuraman
I suppose it is like using your mouse to select and choose/click on the selection; this would make it disappear too.. On Thu, Apr 16, 2009 at 3:35 PM, Maarten maartenwie...@gmail.com wrote: The autocompleter behaves this way because once you have typed in the full word, it is simply no longer

[Proto-Scripty] Re: templating best practices

2009-04-22 Thread Ananth Raghuraman
I have been using YUI (Yahoo User Interface Library) to display JSON data (after doing whatever transformations I need to do, using Javascript code) So I avoided HTML altogether. On Wed, Apr 22, 2009 at 3:28 AM, Ron Derksen cheval...@gmail.com wrote: Hi, Lately I've run into the challenge

[Proto-Scripty] Re: the effect in Effect.toggle does not work

2009-04-22 Thread Ananth Raghuraman
Can you try removing this -- style=display:none and setting it in Javascript like so: $(comments-section).hide() [to hide it] and $(comments-section).show() [to show it]?? On Wed, Apr 22, 2009 at 10:12 AM, Ram yourstruly.vi...@gmail.com wrote: hey Mona, i tried removing the css on the div

[Proto-Scripty] Re: Observe div content change?

2009-04-22 Thread Ananth Raghuraman
$(your element id).observe(DOMCharacterDataChanged,function(evt){ //your code here }); Try above Check the Event.Observe documentation on prototype api documentation website. This website gives you a link to DOM 2 Events list. Check the Mutation Events section. On Wed, Apr 22, 2009 at 7:02

[Proto-Scripty] Re: Observe div content change?

2009-04-23 Thread Ananth Raghuraman
I think it is DOMCharacterDataModified not DOMCharacterDataChanged (Sorry I gave the wrong even name earlier) On Thu, Apr 23, 2009 at 12:03 PM, Yozefff yoze...@gmail.com wrote: hmm no luck :( a href='javascript:test()'test/a div id='myDiv'/div script function test(){

[Proto-Scripty] Re: HTML breaks JSON

2009-04-24 Thread Ananth Raghuraman
JSON should not contain HTML for tactical/ease of programming purposes unless the HTML is there as part of a larger design, but there may or may not be implementation restrictions. If you are facing problems, can you try encoding the HTML string (Base64) and decoding back (using Javascript Base64

[Proto-Scripty] convert string to a number

2009-04-24 Thread Ananth Raghuraman
Need prototype function to convert object/string/number to number. Please help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to

[Proto-Scripty] Re: convert string to a number

2009-04-24 Thread Ananth Raghuraman
...@iinet.net.au wrote: On Apr 25, 2:06 am, Ananth Raghuraman araghuram...@gmail.com wrote: Need prototype function to convert object/string/number to number. Please help. Without a more concise specification for what the object/string/number might be, you will end up with a large

[Proto-Scripty] Re: convert string to a number

2009-04-25 Thread Ananth Raghuraman
AM, pradeep pradeep...@gmail.com wrote: Dear Ananth, you can also use.. Math.abs(string); to get the number which is one of the prototypes method. However, the beauty of the javascript is that it automatically typecaste's the varible declared to number or string

[Proto-Scripty] Re: equivalent of the onAvailable YUIEvent?

2009-04-27 Thread Ananth Raghuraman
Look at YUILoader's onSuccess method; it is the same as dom:loaded event On Mon, Apr 27, 2009 at 2:48 AM, Mark Mansour markmans...@gmail.com wrote: Hey guys, I'm looking for the earliest point to execute a method when a HTML element is available. Currently I can only get my desired

[Proto-Scripty] Re: Sortable lists

2009-04-30 Thread Ananth Raghuraman
I thought we were discussing the Prototype and Scriptaculous framework..what is Mochikit and how is it related to Proto-Scripty? On Thu, Apr 30, 2009 at 2:47 PM, WLQ maybe...@gmail.com wrote: Thanks man! You've saved a lot of headache trouble! Thanks, Bruno +1 from Yan :)

[Proto-Scripty] Re: Splitter-Control

2009-05-02 Thread Ananth Raghuraman
Scriptaculous/Prototype dont have it. Try YUI (Yahoo User Interface libary: http://developer.yahoo.com/yui) On Fri, May 1, 2009 at 7:15 PM, Benedikt.Rothe benedikt.ro...@googlemail.com wrote: Hi Does anybody know a Splitter-control for prototype? jQuery-equivalent: