if you look in the patch it sets the variables inside it ...
I think it goes element,Old,New or someting
Alex
- Original Message -
From: "terry-5-"
To: "Prototype & script.aculo.us"
Sent: Monday, June 01, 2009 11:12 PM
Subject: [Proto-Scripty] Re: Revert sortable on return value true
On Jun 2, 5:32 am, molo wrote:
> I could use some help. I've been looking at this all day and cannot
> come up with a solution
>
> I am using the same routine on these 5 input fields. If I type in a
> character on one of these fields and press enter, it works as expected
> I get an error alert
2009/5/31 js_dev
>
> Hello,
>
> I have a function i found on the web that allows you to submit a form
> through POST and obviously this function uses the prototype lib. Now
> it works as it should but you have to "hard code" 3 parameters into
> the function.
>
> 1) The form id of the form you wan
if i may make a suggestion... you could simplify that by adding a class to each
of the form elements the using the $$ with invoke...
function validateFn(e){
console.log(e.target.value);
// assuming you use firebug
}
$$('.ClassName').invoke('observe', 'keyup', validateFn);
hopefully that gets y
Thanks so much Alex,
I am just not sure about Element.hasClassName(el,n.id). First I tried
to have revert:changeClass follow directly after onUpdate:function(el)
{...}, but the script stopped working. So then I included
revert:changeClass inside the update function and I tried to pass
"this" to r
Hi,
My guess (untested, don't know about interplay with alert) is if you
through in a defer[1], it'll work:
else {
(function(){
$(this).focus();
}).defer();
alert("invalid number");
return false;
}
...but that the user experience won't be great for a variety of
reasons (
I could use some help. I've been looking at this all day and cannot
come up with a solution
I am using the same routine on these 5 input fields. If I type in a
character on one of these fields and press enter, it works as expected
I get an error alert and focus on the field. However if I type in
My bad
- Original Message -
From: "T.J. Crowder"
To: "Prototype & script.aculo.us"
Sent: Monday, June 01, 2009 4:38 PM
Subject: [Proto-Scripty] Re: xml namespacing and selecting with $$()
@Alex:
> $('pb:liveupdate')
"pb:liveupdate" is the tag of the element, not its ID. $$() m
First a patch is needed http://dev.rubyonrails.org/ticket/7396
That tenery operator wont work in that situation you need to evaluate
the return of the function
onUpdate : function (el) {
// do your code
}
revert : changeClass // function call
And you change class must provide a boolean tru
@Alex:
> $('pb:liveupdate')
"pb:liveupdate" is the tag of the element, not its ID. $$() makes
sense for finding elements by tag name. He's just saying that it's
not working with namespaced XML tag names for whatever rason.
@OP:
Which Prototype are you using? The entire selector engine c
Hi,
> One request is preempted on completion of other request.
Not by Prototype or the browser, it would be something else you're
doing on the page.
Again, I'd suggest coding up a small, self-contained example -- you'll
figure it out.
Good luck,
--
T.J. Crowder
tj / crowder software / com
Inde
why are you useing double dollar ...
have you tried with single ...
$('pb:liveupdate')
I dont know about namespacing but $$ returns an array as far as i know ...
to get the first element of such an array you need to do $$('.classname')[0]
Alex
- Original Message -
From: "chillid
A quick question about using the $$() function with namespaced xhtml
elements. Basically, I have my normal xhtml as normal xhtml, but I've
added some custom elements that I pick up with javascript and play
with. My document looks a bit like this:
http://www.w3.org/1999/xhtml"; xml:lang="en"
xmlns
Crowder,
The results were as i mentioned. Now after the change working in IE 6,7 & 8.
The code is refactored to use asynchronous call.
Thanks
On Fri, May 29, 2009 at 2:30 PM, T.J. Crowder wrote:
>
> Hi,
>
> > Is there are workaround to get this working in IE 8?
>
> Not a workaround, a fix: D
Hi,
I really appreciate all you guys hard work. It has helped me in the
past very much and I really hope someone has encountered this problem
before. I tried to find a related one in this group, but had no luck.
I am trying to revert the sortable/draggable to its original place if
the changeClas
I am using "Ajax->form" from CakePHP, and now i need create a simple
validation, i tried use "before" and "create", but without success.
I saw this topic:
http://groups.google.com.br/group/prototype-scriptaculous/browse_thread/thread/43a1ff2fbc9e968f/6036631fa2d741e2?lnk=gst&q=stop+ajax#6036631fa
On May 31, 1:37 pm, "Imbi Rehling" wrote:
>
> if(this.olc_divborder) {
> $(id).style.border=this.olc_divborder+'px solid '+this.olc_bordercol;
> /* $(id).setStyle({ border: this.olc_divborder+'px' +this.olc_bordercol+
> 'solid' }); */
> this.diagnostics('div border set to '+this.o
Hi T.J. Crowder,
Thanks for your immediate response.
The two elements advtResult and carRentalResult are not
interconnected.
Did not get error.
One request is preempted on completion of other request.
Thanks
On Jun 1, 5:51 pm, "T.J. Crowder" wrote:
> Hi,
>
> Are the advtResult and carRent
Hi,
Are the advtResult and carRentalResult elements connected in any way?
For instance, is one of them a descendant of the other? If so, you'll
have a race condition.
Do you get an errors? Have you tried any debuggers (like Firebug[1])?
One thing that may help is to create a small-but-complet
On May 29, 4:04 pm, Alex wrote:
> Thank you everyone.
>
> The problem was the absense of the .
It's a common but wrong assumption that you can use the /> notation
for any empty element. The XHTML specification allows it only for
elements which may not have any content (such as HR, BR and IMG).
Hi,
Calling two ajax request and rendering the values of both request in
the same page.
One request takes more time.
The result page is rendered only with one ajax request. Values of
the request taking more time is not rendered.
But the same code works in IE7.
Code:
var myAjax = new Aja
On May 27, 2:45 pm, abhilasha wrote:
> Hi,
>
> I am using partials in my application.I have a cancel link
> (link_to_remote) in my partial which will update the div id.It is
> working fine.But,problem is it is throwing a error in firebug saying
> "App is not defined in prototype.js line 403".I
Hello,
I have a function i found on the web that allows you to submit a form
through POST and obviously this function uses the prototype lib. Now
it works as it should but you have to "hard code" 3 parameters into
the function.
1) The form id of the form you want to post
2) The name of the php s
I need help with multiple divs.
function compress() {
new Effect.multiple([
'div1',
'div2',
'div3',
'div4'], new Effect.Morph{ style: 'width: 0px', duration: 1});
);
}
This doesnt seem to work. Can Effect.multiple handle mo
24 matches
Mail list logo