> 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
> 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
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
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'
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
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
> 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
> 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"
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
> 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
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
--~--~-~--~---
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
"
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
;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
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.
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
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
, 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
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 :)
> 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
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
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
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
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
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
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
--~--~-~--~~~---~--~~
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
27 matches
Mail list logo