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

[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

[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

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

2009-03-09 Thread Quleczka
ust update $('Middle Contect').innerHTML here with what you have in transport.responseText }else document.getElementById("mlprerresult").innerHTML = 'Your request failed!!!'; - These are my thought to make it easier but I'

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

2009-03-08 Thread Quleczka
element that match 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 ar

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

2009-03-07 Thread Quleczka
otypejs.org/download 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

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

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

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

2009-03-05 Thread Quleczka
ition:absolute; width:250px; background-color:white; 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

[Proto-Scripty] Re: General Questions

2009-03-05 Thread Quleczka
> http://ajax.googleapis.com/ajax/ > libs/prototype/1.6.0.3/prototype.js"> > > Event.observe(window, 'load', function() { > > }); > > > Why? Why not include prototype and other things in the head section of the page? If you use observe it on window load it doesn't haveto byat the end of

[Proto-Scripty] Re: writeAttribute problem

2009-03-05 Thread Quleczka
e attribute of Form 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 --~--~-~--~---

[Proto-Scripty] Re: writeAttribute problem

2009-03-04 Thread Quleczka
Third option is maybe not the best one but you can always try simple $(a).b=c; Quleczka p.s. honestly I don't think it can be FF related issue --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[Proto-Scripty] Re: writeAttribute problem

2009-03-04 Thread Quleczka
I've checked also Element.writeAttribute('username', 'id','testId'); and also worked in my browser --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send ema

[Proto-Scripty] Re: writeAttribute problem

2009-03-04 Thread Quleczka
;testId'} ); is working for me :) using FF3 and firebug console I haven't tried with objects :) Quleczka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To

[Proto-Scripty] Re: Password field as hint

2009-03-03 Thread Quleczka
oduce asterixes there not letters - that is main problem :) http://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.

[Proto-Scripty] Re: Password field as hint

2009-03-02 Thread Quleczka
e it nicer :) 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 unsubscri

[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

[Proto-Scripty] Re: Password field as hint

2009-03-02 Thread Quleczka
, 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 scr

[Proto-Scripty] Re: Password field as hint

2009-03-02 Thread Quleczka
messy but it works. You have it also here http://dl.getdropbox.com/u/530105/inputfields.js. Just include it in your code, check if you have prototype included and it will replace all things like : Username I'll post something more when I make it look nicer. I hope this give you some hint :)

[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 'o

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

2009-03-01 Thread Quleczka
On 1 Mar, 22:38, BearState 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 are subscribed

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

2009-03-01 Thread Quleczka
d submit my form inside ajax callback. I don't know why but all the time I was thinking about stoping event inside one of callbacks. Thanks again guys - that's exaclty what I needed :) Quleczka p.s. I haven't seen pastie before - rea

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

2009-03-01 Thread Quleczka
server side, what's > the point in doing 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

[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 & scr

[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
is no chance to execute it cause form 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 --~--~-~--~~~---~--~~

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

2009-02-28 Thread Quleczka
form without really validating it I think it is why people ask about delay - they want to have the response still inside the same function where the request was called ...not some time (even small time) later and outside it :) quleczka --~--~-~--~~~---~--~~ You