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

2009-03-10 Thread Quleczka
There's another, less bullet-proof solution, which involves catching and stopping all click (an possibly keypress) events on links. But what about situation when someone type new url , press home button or one from favourites toolbar? Quleczka

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

2009-03-10 Thread Quleczka
Explorer is hanging up after giving a 'null' response for the alert below - but, firefox is not even hitting the alert and is processing normally, thogh it does not have the code to complete the AJAX request, just redirects to redo the original page If you don't use event.stop() for is just

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

2009-03-09 Thread Quleczka
of your application. Quleczka --~--~-~--~~~---~--~~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from

[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: Is this a bug in select()'s CSS evaluation, or am I misunderstandig something?

2009-03-08 Thread Quleczka
any of them. It does not count selectors which are not inside of given context. You have to use element.select on highter level or $$() instead. Quleczka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: How to get the latest prototypejs source under windows system?

2009-03-07 Thread Quleczka
or check google ajax libraries page http://code.google.com/intl/pl/apis/ajaxlibs/documentation/index.html#prototype Quleczka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Re: writeAttribute problem

2009-03-05 Thread Quleczka
elements (use FormElement#(get|set)Value instead). Lee, is there a setValue()? Only getValue is mentioned in API Docs - http://prototypejs.org/api/form/element . I use just something.value='test'; and it's working :) Quleczka --~--~-~--~~~---~--~~ You received

[Proto-Scripty] Re: General Questions

2009-03-05 Thread Quleczka
script type=text/javascript src=http://ajax.googleapis.com/ajax/ libs/prototype/1.6.0.3/prototype.js/script script type=text/javascript Event.observe(window, 'load', function() { }); /script /body Why? Why not include prototype and other things in the head section of the page? If you

[Proto-Scripty] Re: Position of div with suggests

2009-03-05 Thread Quleczka
; border:1px solid #888; margin:0; padding:0; } Quleczka --~--~-~--~~~---~--~~ 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 prototype-scriptaculous

[Proto-Scripty] Re: Processing Ajax.updater response before updating container

2009-03-05 Thread Quleczka
In my framework, sometimes there is debugging information dumped at the bottom of the page. I would like to know what the easiest way to scrub that debug output would be with prototype.  My framework outputs a very unique string before the debug output. So, a simple substring-before would do

[Proto-Scripty] Re: writeAttribute problem

2009-03-05 Thread Quleczka
It's ok, I can use the method you mentioned above for Form Elements and the generic version for others. I think $(a).attribute=value; works for both types... but I'm not the expert ;) Good luck :) Quleczka --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Re: Password field as hint

2009-03-03 Thread Quleczka
://dl.getdropbox.com/u/530105/registerform.html Quleczka --~--~-~--~~~---~--~~ 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 prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Re: Password field as hint

2009-03-02 Thread Quleczka
I make it look nicer. I hope this give you some hint :) Quleczka p.s. it is based on http://www.folksonomy.org/2009/01/12/changing-input-type-from-text-to-password-in-internet-explorer-hack/ --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] Re: Password field as hint

2009-03-02 Thread Quleczka
it, but this loses the binding of the element to the function (it is no longer observed by focus or blur). You have to observe focus only from this newly created element - not orginal password field... and observe blur only on orginal one, not mocked one. I'll work on this script later on :) Quleczka

[Proto-Scripty] Re: Password field as hint

2009-03-02 Thread Quleczka
Version with second field added in script http://dl.getdropbox.com/u/530105/input2.html --~--~-~--~~~---~--~~ 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: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread Quleczka
is submitted earlier. What is standard way to deal with this kind of things? This is only example I have problem with. I understand basic rule of working with Ajax and it asynchronous nature :) Quleczka --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread Quleczka
Hi, Thanks for your reply. There are a couple of ways you can do this. 1. Don't let them submit until the field is validated. : The point is I wanted to change my validation from dynamic (when user type or changes the fields) to on submit only :) 2. Do the submit via XHR rather

[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread Quleczka
By the way if I don't find any other solution soon I'll use http://prototypejs.org/api/form/request probably to send entire form and return some result. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread Quleczka
it with an ajax request ? No I have 2 functions to run on sumbit: - nice validation of many other fields in browser - simple checking if username is taken by ajax request If it is taken I don't want to submit form and reload the whole page agan - that's all :) Thanks a lot :) Quleczka

[Proto-Scripty] Re: Delay Required after Ajax.Request() ... How to?

2009-03-01 Thread Quleczka
On 1 Mar, 22:38, BearState wixelb...@yahoo.com wrote: I found out that onSuccess has little to do with successfully returning anything from the script. What do you exactly mean by this? Quleczka --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] Re: Creating Ajax.InPlaceEditor dynamically ... confusing the hell out of me.

2009-03-01 Thread Quleczka
What I found is that the fix I put in for the 'onSuccess' in Ajax.Request() still did not satisfactorilly allow time to return the value from the CGI.  Thought it did, but it didn't. Maybe some example what exactly is not working for you in this 'onSuccess' callback? Quleczka