Hi Etha,
I just have a thought !
Event.observe( window, 'unload', Event.unloadCache ); is outside the
onload event.
So If it's placed in the head tag, your not sure that the DOM is
loaded at the time IE parse this line, and after testing, it throw an
stack overflow in line 707 in IE6 (could not
Hi Patrick,
You could do somethink like that:
BuilderBox.buttons = {
add_behavior: {
'.some_class:click': function(element) {
this.containerMorph(element);
}
},
containerMorph: function(element) {
...
but in that case, you can't bind the function to the
Hi, :)
You can not imagine how much you helped me about understanding
function scopes. Since I was unaware of bind method. Anymore with the
help of prototype documentation, I completely understood 'this' and
function context :)
For more : http://www.prototypejs.org/api/function/bind
Thank you
Hi all,
I think $$ is not so good for the reason you give, but how about using
the select() method??
you have one reference to the parent object and then you use CSS
selector to find childrens. So when moving some pDOM art from a place
to another, you just have to change the parent element to
Hi Jonathan,
Just a little precision, if the element is not inside any scrolled
element, use like say alex the cumulativeOffset function but the doc
is:
http://api.prototypejs.org/dom/element.html#cumulativeoffset-class_method
In case a parent element of the element you try to find position is
Hi Avichal Garg,
Is it a GET or a POST request, because IE (and OPERA) cache GET
request.
In Firebug, do you see the header you set when request is lauch from
FF ?
--
david
On 28 oct, 08:54, Avichal Garg avic...@gmail.com wrote:
Hi,
I'm using Prototype 1.6.0.3. I spent a lot of time
But you are sending json with the properties 'success' and 'value',
and in the callback you use my example code, which tries to alert the
values of properties 'feelingOk' and 'value'?
Also, make sure you have set the response's content type to
application/json.
/L
On Oct 30, 2:38 am, Michael
Sorry, I meant to write:
But you are sending json with the properties 'success' and 'message',
On Oct 30, 9:56 am, Lapis petter.env...@gmail.com wrote:
But you are sending json with the properties 'success' and 'value',
--~--~-~--~~~---~--~~
You received this
Hi mjhaston,
What works and what doesn't ??
Where do you have any trouble ??
What is the question ??
--
david
On 28 oct, 20:59, mjhaston mich...@haston.name wrote:
function ajaxRequest2(){
var url = /cgidev2p/r_chgpwd.pgm;
Hi Mattia,
it seems that you can't do what you're actually doing, prototype could
not be able to correct IE lack of speed.
But what do you want to do exactly ?
So that we could (if we find something of course) give you some other
idea ;))
--
david
On 29 oct, 10:29, Mattia Locatelli
Hi Joseph,
Normally, just set the display:none to the element to toggle. But IN
the style property of the element !
--
david
On 26 oct, 23:48, Joseph DelCioppio jdelciop...@gmail.com wrote:
Just a quick question about using toggle_blind, since it would be much
easier then writing my own js
Hi Simon,
you should use event delmeguation so that, you first only set one
observer, and then you can freely modify the DOM and still access to
your event.
--
david
On 27 oct, 09:55, T.J. Crowder t...@crowdersoftware.com wrote:
Hi Simon,
...do I need to stopObserving those events before
Hi all,
I have a page with some boxes placed side by side. When the user moves
over one of them a tooltip appears, then it should disappear when the
user moves out or moves over another box.
I use the mouseenter and mouseleave events to do this but sometimes,
when the user moves quickly on the
Hi Kupido,
When writting:
Event.observe(element, 'mouseenter', mouseEnter.bindAsEventListener
(element));
When writting bindAsEventListener, it means that your binded
function will have its scope set to element.
So your called fiunction should be:
function mouseEnter(event)
{
Event delegation is indeed a wonderful thing. One thing to watch out
for here though is that input blur, focus and form submit don't bubble
(don't know if it's on all browsers, but certainly on some). There's
NWEvents (http://javascript.nwbox.com/NWEvents/) that handles those
special cases
Hi all,
This might be a more generic browser/javascript questions than a
prototype specific quesiton but i thought it would better to ask here
because you all tend to really understand javascript and browsers in a
ton of detail. So here goes.
If i execute the following code:
HTML:
div
Hi Kiran,
It sounds like you've already put together a minimalist test case,
would you post it (e.g., to Pastie[1] or similar)? I haven't run into
a situation where a single defer wasn't sufficient, but I also haven't
tested extensively on Mac OS.
Cheers,
--
T.J. Crowder
Independent Software
Good catch Peter, my explanation was lacking ... explanation :))
btw, NWEvent is impressive, like NWMatcher:
http://javascript.nwbox.com/NWMatcher/
I recommand using both !
--
david
On 30 oct, 11:11, Peter De Berdt peter.de.be...@pandora.be wrote:
Event delegation is indeed a wonderful
Hi david, thank you for your reply.
The element argument in my previous post was a copy/paste error,
here's a simplified working version of my code:
function init()
{
var boxes = $('boxes');
boxes.select('.box').each(
function (box)
{
After some testing I noticed the problem only occurs when I use:
tooltip.appear(); // scriptaculous effect
insted of:
tooltip.show();
Any suggestions?
On Oct 30, 11:37 am, Kupido kup...@hotmail.com wrote:
Hi david, thank you for your reply.
The element argument in my previous post was a
After some testing I noticed the problem only occurs when I use:
tooltip.appear(); // scriptaculous effect
instead of:
tooltip.show();
Any suggestions?
On Oct 30, 11:37 am, Kupido kup...@hotmail.com wrote:
Hi david, thank you for your reply.
The element argument in my previous post was a
Hi Kupido,
the mouseleave event is a hide which set display property to none;
And the mouseenter event is an appear, which set opacity from 0 to 1.
So when the element is hide, there is no way to appear again, because
they don't change the same property.
This could explain why event is still
I think I solved the problem using effect queues, this is the new
code:
function init()
{
var boxes = $('boxes');
boxes.select('.box').each(
function (box)
{
var tooltip = box.down('.tooltip');
Hi Kupido,
This is a good way to do this.
Just a suggestion, if the tooltip appear, let it des-appear sloowly
too.
so don't just hide() it, but do an effect to do this :))
--
david
On 30 oct, 12:58, Kupido kup...@hotmail.com wrote:
I think I solved the problem using effect queues, this is the
Hi david,
I'll consider using fade instead of hide, thank you again for your
help!
On Oct 30, 1:02 pm, david david.brill...@gmail.com wrote:
Hi Kupido,
This is a good way to do this.
Just a suggestion, if the tooltip appear, let it des-appear sloowly
too.
so don't just hide() it, but do an
Hi Matthew,
I think it is a bug, so open a ticket at lighthouse:
http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/new
--
david
On 25 oct, 19:45, matt...@bytemark.co.uk matt...@bytemark.co.uk
wrote:
I'm trying to use Prototype to do some basic Ajaxy things for the
first
Ok,
let's day I have 2 elements :
input type='text' name='myname_1'
and
input type='text' name='myname_2'
So now I want to get all the elements wich has a name starting with
myname_
is this possible with getElementsBySelector?
--~--~-~--~~~---~--~~
You
$$([name^='myname_']) should return all elements with names that begin
with myname_
Prototype has great CSS3 selectors support: check out:
http://www.w3.org/TR/2001/CR-css3-selectors-2003/#selectors
On Fri, Oct 30, 2009 at 10:49 AM, Yozefff yoze...@gmail.com wrote:
Ok,
let's day I have
wow that worked like a charm!!! thnx
On 30 okt, 15:55, Alexander Wallace alexmlwall...@gmail.com wrote:
$$([name^='myname_']) should return all elements with names that begin
with myname_
Prototype has great CSS3 selectors support: check
Hi,
So, if I have a controller action with an rjs template that does
page.replace_html on several different elements, how can I accomplish
this same update of multiple elements in my regular js functions?
For example, I have a controller: and in it I do:
def some_action
render :partial =
Split the response or make it a JSON response and loop it or...
evalScripts:true
and have the serverside do the updating
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
From: patrick patrick99...@gmail.com
To: Prototype script.aculo.us
31 matches
Mail list logo