[Proto-Scripty] Problems with XML in IE 7

2009-01-26 Thread Patrick
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;

[Proto-Scripty] how to select all elements by class after a certain point?

2009-10-10 Thread patrick
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

[Proto-Scripty] Re: how to select all elements by class after a certain point?

2009-10-10 Thread patrick
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

[Proto-Scripty] sortable nonsense...

2009-10-10 Thread patrick
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

[Proto-Scripty] Re: sortable nonsense...

2009-10-10 Thread patrick
) -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

[Proto-Scripty] major frustration with Effect.Morph

2009-10-10 Thread patrick
}); }); 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

[Proto-Scripty] Major frustrations with Effect.Morph

2009-10-10 Thread patrick
}); }); 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

[Proto-Scripty] Re: Major frustrations with Effect.Morph

2009-10-13 Thread patrick
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

[Proto-Scripty] best way to get first form on page without using id?

2009-10-20 Thread patrick
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

[Proto-Scripty] Is there a way to write this differently?

2009-10-27 Thread patrick
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

[Proto-Scripty] Re: Disable double click in IE6 and 7

2009-10-27 Thread 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

[Proto-Scripty] how do you emulate what rjs does in rails with form.request?

2009-10-30 Thread patrick
); } }); 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

[Proto-Scripty] why does javascript lie?

2009-11-10 Thread 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

[Proto-Scripty] loop effects?

2009-11-13 Thread patrick
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

[Proto-Scripty] why does this not work?

2009-11-14 Thread patrick
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

[Proto-Scripty] Re: why does this not work?

2009-11-14 Thread patrick
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

[Proto-Scripty] scriptaculous animation loop position is buggy

2009-11-14 Thread patrick
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

[Proto-Scripty] Re: scriptaculous animation loop position is buggy

2009-11-14 Thread patrick
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

[Proto-Scripty] how can mouseover get the foreground element under the mouse?

2009-11-15 Thread patrick
? -patrick script type=text/javascript document.observe(dom:loaded, function() { $$('.a').invoke('observe', 'mouseover', function() { console.log(this.id) }) }); /script style type=text/css

[Proto-Scripty] Re: how can mouseover get the foreground element under the mouse?

2009-11-15 Thread patrick
(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

[Proto-Scripty] major frustration with ajax onComplete with r.response...

2010-02-07 Thread patrick
' 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

[Proto-Scripty] Re: major frustration with ajax onComplete with r.response...

2010-02-07 Thread patrick
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

[Proto-Scripty] Re: major frustration with ajax onComplete with r.response...

2010-02-07 Thread patrick
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

[Proto-Scripty] Re: major frustration with ajax onComplete with r.response...

2010-02-08 Thread patrick
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

[Proto-Scripty] Re: change frequency in running periodical executer?

2010-02-21 Thread patrick
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

[Proto-Scripty] form.request weirdness!!!

2010-03-16 Thread patrick
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

[Proto-Scripty] class.create question

2010-04-09 Thread patrick
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

[Proto-Scripty] Re: class.create question

2010-04-09 Thread patrick
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

[Proto-Scripty] Re: class.create question

2010-04-09 Thread patrick
.. 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

[Proto-Scripty] Re: class.create question

2010-04-09 Thread patrick
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

[Proto-Scripty] Re: class.create question

2010-04-10 Thread patrick
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,

[Proto-Scripty] Re: class.create question

2010-04-11 Thread patrick
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

[Proto-Scripty] any solutions for an annoying draggable / droppable bug?

2010-04-11 Thread patrick
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

[Proto-Scripty] Re: any solutions for an annoying draggable / droppable bug?

2010-04-11 Thread patrick
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

[Proto-Scripty] clear event queue ?

2010-04-22 Thread patrick
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

[Proto-Scripty] update content in a child window?

2010-05-03 Thread patrick
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

[Proto-Scripty] do I have a memory leak or something?

2010-05-15 Thread patrick
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

[Proto-Scripty] readAttribute?

2010-05-19 Thread patrick
? 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

[Proto-Scripty] Re: readAttribute?

2010-05-20 Thread patrick
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

[Proto-Scripty] what is the deal with inputs and page refreshing?

2010-05-20 Thread 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

[Proto-Scripty] Re: what is the deal with inputs and page refreshing?

2010-05-20 Thread patrick
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

[Proto-Scripty] Re: How to create slideshow type effect?

2010-05-23 Thread patrick
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

[Proto-Scripty] can anyone help give me advice on how to write this better?

2010-05-23 Thread patrick
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

[Proto-Scripty] Re: no String.insert method?

2010-05-24 Thread patrick
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

[Proto-Scripty] AjaxUpdater: Option insertion:'bottom' fails in Chrome in dealing with tables

2010-08-01 Thread patrick
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

[Proto-Scripty] Re: AjaxUpdater: Option insertion:'bottom' fails in Chrome in dealing with tables

2010-08-01 Thread patrick
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

[Proto-Scripty] Creating an InPlaceCalendarEditor problem with Form.Element.Serializers

2008-12-11 Thread Patrick Tulskie
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

[Proto-Scripty] Re: Problems with XML in IE 7

2009-01-27 Thread Patrick Jongmans
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