[Proto-Scripty] IE8 Invalid argument @ setStyle function

2009-11-11 Thread Mostafa
Hi, i have a problem when working with iGoogle style drag and drop portlets on ie8 my code runs with no problems on FF, Chrome, Safari and IE7 But on IE8 the widgets do not work when dropped and give the error Invalid argument.. i digged alot and knew that the problem is in the function

[Proto-Scripty] Re: JSON - which chars not accepted?

2009-11-11 Thread T.J. Crowder
Hi, If I send a JSON { 'str': 'pThis is a line with \n linefeed/p' } I do get... You haven't mentioned what language you're using to write out the string (PHP, Python, JavaScript, C#, Java, etc.), but my suspicion is that you're accidentally outputting an actual newline (character x0A)

[Proto-Scripty] Re: handler is undefined prototype.js handler.call(element, event) create wrapper

2009-11-11 Thread ColinFine
On Nov 9, 8:55 pm, jaikumar jaikumar.arju...@gmail.com wrote: Hi ,   I am getting handler is undefined error in  prototype.js  Fire Bug pointing to this method in prototype.js  handler.call(element, event) create wrapper.    Can any one help me to solve this bug. Probably not, without

[Proto-Scripty] Re: JSON - which chars not accepted?

2009-11-11 Thread Manfred Rebentisch
Hello I use C/C++ with Apache module I do send \\n or br / from server to the browser. But my question was: which chars need to be escaped too? I can see \r, \f and \t. But the other RegExp rule I do not understand. Manfred --~--~-~--~~~---~--~~ You received

[Proto-Scripty] Prototype 1.6.0.3, IE: Object doesn't support this property or method, typeof Element=unknown

2009-11-11 Thread Carsten
I used prototype 1.5.0rc2 and the testing tool Selenium 1.0 in a web application. When I updated prototype to 1.6.0.3, everything still works in FF 3.5 and 3.0, but in IE I get strange error javascript messages: The code which fails is Element.extent in the function $(). The error message is

[Proto-Scripty] Re: Prototype 1.6.0.3, IE: Object doesn't support this property or method, typeof Element=unknown

2009-11-11 Thread Carsten
Just an addition: this error occurs happens in IE6. Everything works in IE7, IE8, FF3.0. FF3.5. --~--~-~--~~~---~--~~ 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] prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2009-11-11 Thread Carsten
Hi, I used prototype 1.5.0rc2 and the testing tool Selenium 1.0 in a web application. When I updated prototype to 1.6.1, everything still works in FF 3.0, FF 3.5, IE7, IE8, but in IE6 I get strange javascript error messages: The code which fails is Element.extent in the function $(). The error

[Proto-Scripty] Re: Does $A('.classname').invoke('setValue',...) work on checkboxes?

2009-11-11 Thread joe t.
i agree on that. setValue has its purpose pretty much in the name. Set the value of a control. For checkboxes, setChecked (bool) (also applying to radios?) would have made a lot more sense. i suppose in the meantime there's Element.writeAttribute ({value:foo}); However, i raise caution on that

[Proto-Scripty] Re: JSON - which chars not accepted?

2009-11-11 Thread Manfred Rebentisch
Hi ok, please read, what I mean. My code actually runs perfectly. In the past I have had problems with the newline and found, that isJSON() checks the string coming from server. Thats fine. I only want, that I did not run into new problems later, and want to understand, what isJSON() does. So

[Proto-Scripty] formatting list item content in Ajax.Autocompleter

2009-11-11 Thread Ashwin
One of the reasons I like the Google Suggest powered autocomplete function at Google Finance (http://finance.google.com) is because the drop choice choices appear in a tabular format with 2 columns. The left column contains the ticker symbol and the right column contains the company name. I am

[Proto-Scripty] Re: formatting list item content in Ajax.Autocompleter

2009-11-11 Thread Yogesh Agashe
Hi Ashwin, How about floating the span elements? I have similar list and I use float. Add a class to your span elements. In CSS, assign a width and float them left or right as per your requirement. HTH. Yogesh Ashwin wrote: One of the reasons I like the Google Suggest powered autocomplete

[Proto-Scripty] Re: formatting list item content in Ajax.Autocompleter

2009-11-11 Thread Ashwin
Hi Yogesh, You gave me some food for thought! I added float:left; and width: 300px; attributes to all the span tags just to see how that turns out. When I do that, the span elements are outside the enclosing li elements, one below the other. I am no CSS expert, so I could be messing up somehow

[Proto-Scripty] Re: formatting list item content in Ajax.Autocompleter

2009-11-11 Thread Yogesh Agashe
I have a list with 3 columns. This is the code. You just modify it a little bit for your page. li Name span class='citystateinlist'City,State/span span class='dateinlist'Date/span /li .dateinlist{ float: right; width: 80px; } .citystateinlist{ float: right; width: 150px; } Ashwin

[Proto-Scripty] Re: formatting list item content in Ajax.Autocompleter

2009-11-11 Thread Ashwin
In addition to your snippet, I had to add the following CSS attributes to the LI element: position: relative; overflow: auto; and slightly increased the width of the container UL element. It is now showing up as expected. Thanks for your help! Ashwin On Nov 11, 2:15 pm,

[Proto-Scripty] Re: formatting list item content in Ajax.Autocompleter

2009-11-11 Thread Yogesh Agashe
Sure, glad that I was able to help you ! Yogesh Ashwin wrote: In addition to your snippet, I had to add the following CSS attributes to the LI element: position: relative; overflow: auto; and slightly increased the width of the container UL element. It is now showing up as expected.

[Proto-Scripty] String#smush helper

2009-11-11 Thread Ngan Pham
Just thought I'd share this for anyone who's interested... http://www.google.com/search?source=ighl=enrlz=q=a+really+long+urlaq=foq=aqi=g10 .smush() http://www.googlerlaq=foq=aqi=g10; --- Object.extend(String.prototype, (function() { function smush(length, truncation) {