I am loading some XML:
new Ajax.Request(this.options.url, {
method: 'post',
parameters: 'r=hlf=' + $F(this.textbox),
onSuccess:function(transport)
{
thisObject.data = transport.responseXML;
a function that is called when one of my '.blah' divs is
clicked, and so in that function 'this' refers the particular div..
I am trying to figure out how I can get all of the divs that are
'.blah' after 'this'...
Thank you.
-patrick
--~--~-~--~~~---~--~~
You received
after it-- but my layout is dynamic and I need to be able to get all
of the containers after $('me') regardless of how many there are.
-patrick
On Oct 10, 1:26 am, Alex McAuley webmas...@thecarmarketplace.com
wrote:
If you use Event with element you can find the element that was clicked
$$('.blah
you
release the box that you were dragging, it goes and flies off the
screen to the left and moves to some position way way way back (not
where it was intended to be placed).
Can anyone give me some advice on how to fix this?
-patrick
--~--~-~--~~~---~--~~
You
)
-patrick
On Oct 10, 1:11 pm, patrick patrick99...@gmail.com wrote:
Hi everyone,
I hope there is a solution to this problem. I don't quite get why it
is happening in the first place.
http://collinatorstudios.com/tree_test.html
If you go to the 2nd row (the scrollable div) and scroll far
});
});
to:
children.invoke('setStyle', css);
then all of my changes are exactly as they should be-- but I really
wanted to have some animation.
-patrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us
});
});
to:
children.invoke('setStyle', css);
then all of my changes are exactly as they should be-- but I really
wanted to have some animation.
-patrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us
Because I posted this topic twice by mistake, it seems this is a
confusing thread. I replied to the other, but no one answered-- and
people are replying to this one, so I am going to repost my last reply
from the other thread.
Patrick double posted and i replied to the
second post - perhaps
Is this the best way?
$$('body').first().down('form')
-patrick
--~--~-~--~~~---~--~~
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
above? Since it's happening
inside BuilderBox.buttons, I would like to reference it as this...
but if I do .bind(this) to that function, then the this which
references the element being clicked will be lost... Is there another
way to do this?
?
-patrick
Why not just use Ajax.Updater's onCreate callback to set an in_process
flag to true, and onComplete to false, and just put your ajax call
inside an if (!in_process) { Ajax.Updater ... }
-patrick
On Oct 27, 6:09 pm, JoJo tokyot...@gmail.com wrote:
I wanted to prevent rapid double clicking
);
}
});
But how could I do the same thing but update 3 or 4 divs with
different partials?
Is rjs really the best way to deal with this sort of thing?
-patrick
... guess what?
$F('my_select');
2
LIAR
why does it lie???
-patrick
--~--~-~--~~~---~--~~
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
hi,
Is the best way to loop an effect to just do:
setInterval(function() {
new Effect.pulsate('my_div', {duration: 1})
}, 1000);
?
-patrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype
Can anyone explain this to me? It appears to be a scope issue where
my_a no longer is set to the instantiated class 'a' once it gets
executed in class 'b's initialize method... How is the best way to
get around this?
thanks.
-patrick
document.observe(dom:loaded, function() {
var test
I don't see anywhere that a's `to_execute` property is set,
ah yeah, that was a typo.. That should have been
initialize: function() {
new b(this.future_func)
},
Thanks for the links.. doing new b(this.future_func.bind(this))
worked perfect!
-patrick
On Nov 14, 6:56 am, T.J
I've always noticed that occasionally when doing effects, the browser
flickers or does funky stuff.. Yesterday I started writing my own
visual effect using scriptaculous' engine, and I have been having a
lot of problems.
Basically what I am finding is that the animation loop's position
variable
fine this way.
-patrick
On Nov 14, 11:39 am, patrick patrick99...@gmail.com wrote:
I've always noticed that occasionally when doing effects, the browser
flickers or does funky stuff.. Yesterday I started writing my own
visual effect using scriptaculous' engine, and I have been having a
lot
?
-patrick
script type=text/javascript
document.observe(dom:loaded, function() {
$$('.a').invoke('observe', 'mouseover', function() {
console.log(this.id)
})
});
/script
style type=text/css
(event);
})});
..
-patrick
On Nov 15, 7:14 pm, patrick patrick99...@gmail.com wrote:
So, what I want is to be able to hover the mouse on overlapping divs,
and have be able to affect only the div that i am directly under (the
div highest up).
As of now, when I hover over the 3rd box, I
' in my js code???
-patrick
--
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr
apparently it has something to do with the respond_to / format.js
block..
--
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-scriptacul...@googlegroups.com.
To unsubscribe from
I have figured out that if I eval(r), and look at the object,
responseTEXT is set to {foo:bar}...
For some reason render :json is not sending a json
response..
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post
Ok.. so if I do this:
r.responseText.evalJSON();
it works.. But I just don't understand why it's text in the first
place.. It seems like something is wrong with the ajax request or
something.. ?? Is there a better way to do this.. ?
-patrick
--
You received this message because you
great. thank you very much!
On Feb 20, 11:14 pm, Радослав Станков rstan...@gmail.com wrote:
There isn't PeriodicalExecuter#start method its
PeriodicalExecuter#registerCallback
You can do:
code
x.stop();
x.frequency = 1;
x.registerCallback();
/code
You can also do:
code
shows the request as a POST, -- not a GET, so I am
totally baffled as to how I am going to an index action?? I
even tried manually doing method: 'put', in the request, but got the
same results..
Can anyone please explain to me how this is possible?
-patrick
--
You received this message
your
advice.
Thanks.
-patrick
--
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr
element
I don't quite get how I would also be able to pass in the class 'this'
instance to someFunc other than having a var foo = this; at the top of
the initialize block..
Can you see a way to get around that?
-patrick
--
You received this message because you are subscribed to the Google
.. that gives me access to the class, but then I lose #foo...
That's what I am wondering-- how can I have access to both #foo and
the class inside that function?
-patrick
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group
reading somewhere once that jQuery did away with the use of
'this' for this very reason (confusing and limiting)...
-patrick
--
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-scriptacul
Hi,
This is one of my more 'complicated' methods that just seem like
using .bind(this) at the end of the inner functions would make the
code read more confusing.. I believe I have some other methods
somewhere that actually pass functions as params inside those
beforeCreate, afterFinish blocks,
on how I can learn this sort of thing?
-patrick
--
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype
element).
Thank you in advance for any help..
-patrick
--
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email
Well, my solution was to do away with overflow: auto, and make my own
'scrolling'...
http://collinatorstudios.com/drag_bug_solution.html
-patrick
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send email
an individual
click event. I tried doing Event.stop(event)-- but that didn't do
it...
Thanks.
-patrick
--
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-scriptacul...@googlegroups.com
on how to do
it?
Thanks.
-patrick
--
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous
Hi, I wrote some code for a slideshow, and in firefox, the fade in/
fade out gets slower and slower and slower and slower... Just am
wondering if anyone can spot anything I am doing that could be causing
this?
http://pastie.org/962055
thanks.
-patrick
--
You received this message because you
?
Or does it not matter?
-patrick
--
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous
I looked at the code and it seems that readAttribute has some extra
plumbing for IE but other than that it works basically as you would
expect.
Yes, but my question was, is it safe for me to be doing x.id,
x.style ?
Or is it recommended to use readAttribute to get those values?
-patrick
type=hidden value=blah id=foo /
and then in firebug's console, I do:
$F('blah');
= foo
...
$('blah').value = bar;
= bar
(REFRESH PAGE)
$F('blah');
= bar
!!! it should be foo, not bar!!! Is there a way to tell it to reset
the values to the html?
-patrick
--
You received this message because
1990 00:00:00 GMT
whew.. I was losing it!
-patrick
--
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email
like:
this.fade_in_progress = true;
pageElement.fade({ duration: 1.0, to: 1.0, afterFinish: function()
{ this.fade_in_progress = false; }.bind(this) });
-patrick
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group
So, this is a case where I just am not sure how to do this better...
It feels very redundant and unfriendly to the eyes:
http://pastie.org/973958
thanks.
-patrick
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post
else... ?
-patrick
--
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr
also in Chrome, if not -like in the
example- it doesn't.
Any ideas or hints?
Thank you very much,
Patrick
--
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-scriptacul...@googlegroups.com
Thank you! It works, yes!
The problem was, that the response from my server contained another
element (div):
trtd/td/tr
div.../div
Of course that's not well-formed. All browsers ignore it, except
Chrome. So I moved the div and everything is fine now!
Thx, Patrick
On 1 Aug., 12:59, T.J
I've been trying to create a series of drop downs that extends the
inPlaceEditor class that is used in Scriptaculous and it keeps
throwing up on the prototype getValue function. This code was
originally for an older version of prototype and scriptaculous and was
posted as a rails patch back in
at 4:08 PM, Patrick patr...@clickfactor.nl wrote:
I am loading some XML:
new Ajax.Request(this.options.url, {
method: 'post',
parameters: 'r=hlf=' + $F(this.textbox),
onSuccess:function(transport
48 matches
Mail list logo