[Proto-Scripty] Re: Is this a bug in select()'s CSS evaluation, or am I misunderstandig something?

2009-03-09 Thread Marc Liyanage
On 09.03.2009, at 01:44, Tobie Langel wrote: We'll be shifting to Sizzle pretty soon, which afaik allows (or could easily be modified to allow) both behaviours. Maybe we can make this opt-in for an upcoming release. That would be great, I can see both use cases. I also see that

[Proto-Scripty] Re: How to correct the following code?

2009-03-09 Thread ColinFine
On Mar 6, 5:30 pm, SamuelXiao foolsmart2...@gmail.com wrote: Hi, David, it seems that periodicalupdater send request first, breaking down the preview code setting new Ajax.Request.  And the object is no longer refering to the gotopreview function. Because the firebug console returns the

[Proto-Scripty] Problem loading large scripts in Safari

2009-03-09 Thread lgel
Hi all, I have a problem using Ajax.Updater in Safari 3.2. Whenever the response contains a large script tag (over 16k of JSON data) it's not evaluated. After some debugging I've find out that extractScripts doesn't find the big script tag for some reason. Currently I wrote a patch that just uses

[Proto-Scripty] Re: Class.create and klass() how do you use it folks?

2009-03-09 Thread dzw!
Thank You guys for so much help, it saved me heaps of google time:) I got much deeper insight how things work in js now. This is just how ECMAScript is designed - expression on a right hand side of an assignment is not aware of its left hand side context. - that already became tattoo in my

[Proto-Scripty] Re: Is this a bug in select()'s CSS evaluation, or am I misunderstandig something?

2009-03-09 Thread T.J. Crowder
With :self I could do: $(x).select(':self .mixedcontent').each(...); I don't have anything against :self, but I don't see why $(x).select ( .foo) shouldn't be legal syntax. Right now this is the shortest I came up with, and it's not as concise as I'm used to with Prototype:

[Proto-Scripty] Re: Post Deleted

2009-03-09 Thread Bhudda Ben
well the post you indicated was a former one. I had posted a question about forms on Wednesday, had at least three responses by Friday and they were gone on Saturday. POSSIBLY, I posted my question somewhere else - some other prototype group - but I don't think so since this is the only group I

[Proto-Scripty] Re: How to correct the following code?

2009-03-09 Thread SamuelXiao
Sorry for my unclear explanation, the following is all my JavaScript code, // script01.js // obj = new Object(); obj.f1 = eventHandler; window.onload = obj.f1; window.onunload = function(){}; function eventHandler(){ postUpdater(); dynamicEdit(); deleteAlert();

[Proto-Scripty] comparing arrays of checkboxes

2009-03-09 Thread Bob
I am trying to determine if a series of checkboxes have been changed on the screen. They all have the same ID of CODE, and different values. the list is dynamic based on what was passed in to build the screen. I have also setup a hidden div to store the inital valuse of these checkboxes with and

[Proto-Scripty] Re: Decimal places

2009-03-09 Thread Bob
reply thanks that worked I had to remember to add the quotes around my response to make it a string. I'll also keep the calulation in mind if I have any issues, so far all math is done in external programs and sent back as a response. On Mar 5, 8:15 pm, RobG rg...@iinet.net.au wrote: On Mar 5,

[Proto-Scripty] Re: comparing arrays of checkboxes

2009-03-09 Thread Walter Lee Davis
They must have unique IDs, or the page isn't valid and the code has no chance at all of working (unless you need the current property of the last one such). When coding checkboxes, try this: input type=checkbox name=box[] class=box id=box_1 value=1 / input type=checkbox name=box[] class=box

[Proto-Scripty] Re: Post Deleted

2009-03-09 Thread Bhudda Ben
OK, sorry I found that I had posted to a different group on linkedin Please forgive erroneous post - will be back for more if responses from that group do not fix my prob... Ben On Mar 9, 9:07 am, Bhudda Ben benjamin.rud...@gmail.com wrote: well the post you indicated was a former one.  I

[Proto-Scripty] Autocompleter.DB

2009-03-09 Thread Namotco
I want to create an autocompleter that uses HTML database storage. What I'm intending to it modify Autocompleter.Local. My problem is that I'm not sure how to fit these 2 pieces of code together: From Autocompleter: getUpdatedChoices: function() {

[Proto-Scripty] forms - serialize and more

2009-03-09 Thread Bhudda Ben
Hi I have a rather large complicated form that changes considerably based on database content and user interaction - therefore, I said to myself, I need to serialize ?? The whole is I wish to serialize form elements, pass them to php (Admin/editmylinks2.php) - which would update database

[Proto-Scripty] Re: forms - serialize and more

2009-03-09 Thread Bhudda Ben
as additional info, I should mention: there are multiple forms - tho with much different names jQuery is also loaded which at first gave me conflicts, but Ajax.Updater, at least, working now the form giving me problem is itself loaded via Ajax.Updater - along with (using eval) the script

[Proto-Scripty] Re: forms - serialize and more

2009-03-09 Thread Quleczka
Hi, First of all I'm not prototype expert, rather newbie ;) 1) why do you use onsubmit=validatethis(); if you can use $ ('formlinks').observe('submit',validatethis); 2) you don't have to set asynchronous:true - it's default value 3) most common is parameters: $('formlinks').serialize(true)

[Proto-Scripty] Editing Multiple Fields Simultaneously with InPlaceEditor

2009-03-09 Thread Darryl
Hi, I am looking to edit multiple fields simultaneously with the inplace editor, I've only seen this accomplished on Basecamp so far and I'm not entirely sure how's its done. Have spent a good hour Googling for a tutorial on it, but can't find anything. Anyone know of one or is anyone able to

[Proto-Scripty] Re: I can't show a Dialog.confirm on the unload event - Please help!

2009-03-09 Thread Quleczka
My first thought was gmail scenario as well :) Even google use just confirmation dialog...I've never seen any other type - so I guess you have to live with it ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: $$ failing in FF3.1b3

2009-03-09 Thread kangax
On Mar 9, 6:57 am, Jim Higson j...@wikizzle.org wrote: On Friday 06 March 2009 15:26:49 kangax wrote: [...] It's possible that we'll introduce a custom `hasOwnProperty` in later revisions. Makes sense. if( !hasOwnProperty ) hasOwnProperty = function hasOwnProperty(){ ... }; I was

[Proto-Scripty] Re: I can't show a Dialog.confirm on the unload event - Please help!

2009-03-09 Thread Tobie Langel
There's another, less bullet-proof solution, which involves catching and stopping all click (an possibly keypress) events on links. That would allow for a custom dialog. You could always fallback on a regular alert for page refreshes and the like. Best, Tobie On Mar 9, 9:39 pm, Quleczka

[Proto-Scripty] Re: Opinions appreciated on approach to Getters and Setters.

2009-03-09 Thread kangax
On Mar 9, 9:50 am, webbear1000 normpo...@hotmail.com wrote: I'm interested in your opinions on how I'm handling getters and setters in classes. Can you see any problems with my approach and what trouble might I be getting myself into? The huge body of my programming work has been with

[Proto-Scripty] Re: press enter and go to next field visible

2009-03-09 Thread Miguel Beltran R.
2009/3/9 RobG rg...@iinet.net.au On Mar 10, 10:20 am, Miguel Beltran R. yourpa...@gmail.com wrote: Hi list How can do it when I press automatic change to next field visible? the field can be input=text or input=select. Use the tab key, it navitates through visible form controls by