[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=ig&hl=en&rlz=&q=a+really+long+url&aq=f&oq=&aqi=g10 ".smush() "http://www.googlerl&aq=f&oq=&aqi=g10"; --- Object.extend(String.prototype, (function() { function smush(length, truncati

[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 element: position: relative; overflow: auto; and slightly increased the width of the container element. It is now showing up as expected. Than

[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 element: position: relative; overflow: auto; and slightly increased the width of the container element. It is now showing up as expected. Thanks for your help! Ashwin On Nov 11, 2:15 pm, Yogesh Aga

[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. Name City,State Date .dateinlist{     float: right;     width: 80px; } .citystateinlist{   float: right;   width: 150px; } Ashwin wrote: Hi Yogesh, You gave me some food for thought! I add

[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 tags just to see how that turns out. When I do that, the elements are outside the enclosing elements, one below the other. I am no CSS expert, so I could be messing up somehow in that area

[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] 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 try

[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] 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

[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 erro

[Proto-Scripty] otype 1.6.1, IE6: 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.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 mess

[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] Re: JSON - which chars not accepted?

2009-11-11 Thread T.J. Crowder
Hi, The link I gave you has the full JSON syntax. In terms of outputting that syntax from C or C++, you'll need to remember that the backslash is special in C/C++ literals (it introduces escape sequences), and so to actually output a backslash, you have to escape the backslash with another one.

[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 "O

[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 "" 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 rece

[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 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 more information.

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

2009-11-11 Thread T.J. Crowder
Hi, > If I send a JSON { 'str': 'This is a line with \n linefeed' } 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) rather

[Proto-Scripty] Refused to get unsafe header "X-JSON"

2009-11-11 Thread jcorry
I'm having an issue with Safari and Chrome on a site that I have been tasked to support and maintain (as in, I didn't design/build this...I inherited it). http://www.myhealingkitchen.com In the sign-up process there are a number of Ajax transactions. Works great in FF, not working in Safari thou

[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 setSt

[Proto-Scripty] Drag & Drop Performance Lack in IE

2009-11-11 Thread Sascha
Hi, i use the Drag and Drop Feature for my Site. In Firefox it works fine, i can smoothly drag and drop my items (about 15 Dragabels and 10 Droppabels). To using this in IE (8, 7 or 6) i patched the cumulativeOffset: function(element) { .. }. cumulativeOffset: function(element) { var valueT =