Hi there, i would like to be able to monitor whether i get a response
or not from request, within a certain time.
Using firebug, i can see that sometimes, the response does not come
back(request indicated with red color on firebug), or takes too long
to come back. On both those cases i would
Exceptions inside AJAX handlers are sent to onException and then
swallowed. The behavior I think most people would expect is that if
they're not using any onException handlers, exceptions should be
raised normally, not silently discarded. That's the behavior I
want--for errors to always go to
Hi,
swallowed. The behavior I think most people would expect is that if
they're not using any onException handlers, exceptions should be
raised normally, not silently discarded.
I don't think they would, but more to the point, raised normally
*where*? In the normal case (asynchronous
Hi
I am newbie in prototype.js, here i am trying to add the input box it
is working in IE but not in mozilla .
pl help me ASAP...
var c =new Element('input', {'type':'text', 'id': 'var1Value' ,
'value':'var1 default value'});
$('uiElements').insert(c);
regards
mahendra varandani
Hi,
you can try other way to insert like
$('uiElements').insert(input type='text' id='idName' value='anything'/);
it's the simple way as you are writing the code in js file so you can try
this one.
You can try scriptaculous builder.js also. Here is the link
On May 14, 10:09 am, mahi chiku.4...@gmail.com wrote:
Hi
I am newbie in prototype.js, here i am trying to add the input box it
is working in IE but not in mozilla .
pl help me ASAP...
var c =new Element('input', {'type':'text', 'id': 'var1Value' ,
'value':'var1 default value'});
I'm not sure if include would work if an item has more then one class.
Given these classes: $A(['foo', 'bar', 'foob']);
Would match:
div class=foo whateverhi/div
div class=barhi/div
Would not match
div class=whateverHi/div
div class=foobarHi/div
I guess i am going to have to iterate the
'value':'var1 default value'});
maybe no correct closing values
chage to 'value':'var1', default:'value'});
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group,
Hi all
thanks for replying..
no this is the correct value i am giving this by my own.
well ya i tried the above solutions by direct inserting the input tag as
Html but still its not working in Mozilla. Well my designer is
saying there might be somewhat issue of Design Css as the
Hi,
I can think of two approaches off-hand:
1. Use Enumerable#include on the array of classes you want to test
against, using Element#hasClassName as the iterator function (bound to
the instance), e.g.:
var test = ['foo', 'bar', 'foob'];
if
var test = ['foo', 'bar', 'foob'];
if (test.any(element.hasClassName.bind(element))) {
I believe using the non-methodized version of this method would be
better
Element.hasClassName.curry(element);
--
http://positionabsolute.net
On May 14, 12:30 pm, T.J. Crowder
Thanks guys. I am going to compare the difference in processing time
of TJ's suggestions. It will be called often (from a Form Observer).
For now I am using this one:
if
(_validate_field_classes.any(element.hasClassName.bind
(element))) {
Wasn't aware of the any
I think you misinterpreted what I was saying. Simply swapping bind
for curry will certainly generate errors.
I don't really feel like explaining it and its of potentially trivial
performance results but, savor some of this syntax...
var ele = $(container);
var arr = $w(foo bar
I'm new to script.aculo.us and trying to use the InPlaceEditor to edit
a string on the same line as some HTML. When I click on the text
controled by the Ajax.InPlaceEditor() call it always displays the
input control on the next line. Is this a not so inplace editor? Am
I missing something?
@Matt:
I believe using the non-methodized version of this method would be
better
Element.hasClassName.curry(element);
Ah, yes, well spotted. Probably not a huge difference, but certainly
a positive one. E.g.:
if (['foo', 'bar', 'foob'].any(Element.hasClassName.curry(element))) {
//
On Wed, May 13, 2009 at 3:34 PM, louis w louiswa...@gmail.com wrote:
I have an array containing a number of strings. I would like to
continue exucuting my script only if an item has ANY/ALL of the
strings assigned as a class name.
$A(['foo', 'bar', 'foob']);
Is there an elegant want to do
On Thu, May 14, 2009 at 8:17 PM, T.J. Crowder t...@crowdersoftware.com wrote:
Sure, after figuring out why exceptions are disappearing, and then
figuring out how to get around that all-encompassing exception block
surrounding the responder. It's a lot of digging to get reasonable
default
On May 14, 8:24 pm, Gabriel Gilini gabr...@usosim.com.br wrote:
On Wed, May 13, 2009 at 3:34 PM, louis w louiswa...@gmail.com wrote:
I have an array containing a number of strings. I would like to
continue exucuting my script only if an item has ANY/ALL of the
strings assigned as a class
On Fri, May 15, 2009 at 12:05 AM, kangax kan...@gmail.com wrote:
On May 14, 8:24 pm, Gabriel Gilini gabr...@usosim.com.br wrote:
var classNamesRegex = new RegExp('\\b(' + classesArr.join('|') + ')\\b');
//
Generates /\b(foo|bar|foob)\b/
Please don't use boundaries to separate class
19 matches
Mail list logo