Displaying 2 results from an estimated 2 matches for "99sk8hloglv2efz".
2006 Feb 14
7
onFailure fails?
Hi all,
I have this code:
new Ajax.Request(''non_existant.file'', {
onSuccess:function(){alert("yay");},
onFailure:function(){alert("boo");}
});
Why does the onFailure alert never get called? It works fine if I use
a real file (onSuccess gets called).
Thanks,
Douglas
2005 Dec 02
0
Prototype Hash#map & #each
Hello,
I wanted to apply escape on every property of an object using the
Hash.map method in prototype library. Check out this code:
<script type="text/javascript">
// Regular Array
var a = ["john doe", "john-Ch9RrZxMC0c@public.gmane.org", "say hello to me"];
a.map(escape).each(function(x) {
document.write(x + "<br />"); //nice