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
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
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
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
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
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
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
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
;
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
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
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
://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
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
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
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
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
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
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
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
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
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
21 matches
Mail list logo