[Rails-spinoffs] DOM traversal functions performance

2008-06-17 Thread [EMAIL PROTECTED]
Hello List, Has anyone had difficulties with the performance of Prototype's DOM traversal functions (Element#up, Element#down, etc.)? I'm building out a rather complex application with Ext and Prototype 1.6.0. When setting everything up, I will occasionally have to instantiate a few hundred obj

[Rails-spinoffs] Re: Fire Native Browser Event

2008-06-17 Thread Dean
On Jun 17, 8:30 pm, kangax <[EMAIL PROTECTED]> wrote: > Custom events could help: > > // use custom event as a proxy This is what I ended up doing. I will keep an eye out for Event#simulate. Thanks for the help. --Dean > $(someInput).observe('change', function() > { this.fire('content:chang

[Rails-spinoffs] similar effect for: http://toolmantim.com/article/2007/10/14/old_skool_ajax_zoop_box

2008-06-17 Thread [EMAIL PROTECTED]
i'm amazing with effect from this post. anybody knows how to make using script.aculo.us? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrai

[Rails-spinoffs] strange fire custom event

2008-06-17 Thread 绝路
im not good in English, so code here - http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/ prototype.js"> //i pass the submit event with custom event $('form').observe('submit'

[Rails-spinoffs] Re: Fire Native Browser Event

2008-06-17 Thread kangax
Custom events could help: // use custom event as a proxy $(someInput).observe('change', function() { this.fire('content:changed') }); ... doIncrement : function() { this.inputBox.setValue((parseFloat($F(this.inputBox)) + 0.1).toFixed(1)); // fire custom event this.inputBox.fire('content:

[Rails-spinoffs] Fire Native Browser Event

2008-06-17 Thread Dean
Hi Prototype people Is there a good way to fire the browser's native onchange event? Here's my situation. I am using prototype and lowpro. I have a text input box and some divs. When the user mousedown's on one div, numbers in the input box start changing. onmouseup, the numbers stop changing

[Rails-spinoffs] Re: Prototype FAQ

2008-06-17 Thread Gareth Evans
Hey Just a thought, but most of us are web developers here. I'm not really one for reinventing the wheel, but surely it wouldn't be hard to produce a markdown-content-driven faq where it's easy to add and remove articles and the "published" ver of the faq is processed markdown. Just a thought, i

[Rails-spinoffs] Re: Getting the values from the responseText

2008-06-17 Thread Dan Dorman
On Tue, Jun 17, 2008 at 1:07 PM, seran128 <[EMAIL PROTECTED]> wrote: > > I have a PeriodicalUpdater that when ran calls a php page. this page > then returns three values > in a string something like active|102|56|johnDoe > How do I get these values from the response so I can run javascript > logic

[Rails-spinoffs] Re: Adding Properties to DOM::Elements as opposed to adding Methods

2008-06-17 Thread kangax
Eric, doesn't extending elements directly solve the problem? someElement.foo = 'bar'; I also happen to use custom Element#setProperty quite often: http://github.com/kangax/protolicious/tree/master/element.methods.js#L89 It's convenient in a context of iterators: $(someElement).setProperty('foo

[Rails-spinoffs] Re: Adding Properties to DOM::Elements as opposed to adding Methods

2008-06-17 Thread Matt Foster
Had to prove to myself that was even possible, I've got it done although I know it could be written a bit smoother, it gets the job done for the example. Seems like too much work to get such a simple task accomplished but it does allow for a nice private variable, getter/setter pattern. var ref

[Rails-spinoffs] Re: Adding Properties to DOM::Elements as opposed to adding Methods

2008-06-17 Thread Ken Snyder
EricGoogle wrote: > Hello kangax, > > I am trying to keep "state" information in the correspoding elements > themselves rather that having each element have a "brother object" > that keeps it's state information. > I can't figure out how to do that with a method as opposed to a > property. > > I c

[Rails-spinoffs] Re: circumvent default event bubbling

2008-06-17 Thread Ian Smith-Heisters
This is a modification of those classes. You have to reattach the draggable to the body in order for it to "float" outside of divs that hide their overflow (eg. where you have divs that are scrollable independent of the window). The problem being that in creating the proxy that gets attached to th

[Rails-spinoffs] Getting the values from the responseText

2008-06-17 Thread seran128
I have a PeriodicalUpdater that when ran calls a php page. this page then returns three values in a string something like active|102|56|johnDoe How do I get these values from the response so I can run javascript logic against them new Ajax.PeriodicalUpdater("", "user.php", { // initial number of

[Rails-spinoffs] Re: Adding Properties to DOM::Elements as opposed to adding Methods

2008-06-17 Thread Matt Foster
Could the method be used as a "getter" that would return the reference to the proper state? -- Matt Foster Ajax Engineer Nth Penguin, LLC http://www.nthpenguin.com On Jun 17, 2:24 pm, EricGoogle <[EMAIL PROTECTED]> wrote: > Hello kangax, > > I am trying to keep "state" information in the co

[Rails-spinoffs] Re: circumvent default event bubbling

2008-06-17 Thread Matt Foster
Have you looked into scriptaculous's draggable/sortable classes? http://github.com/madrobby/scriptaculous/wikis/draggable -- Matt Foster Ajax Engineer Nth Penguin, LLC http://www.nthpenguin.com On Jun 17, 4:48 am, "T.J. Crowder" <[EMAIL PROTECTED]> wrote: > On Jun 16, 9:14 pm, "Ian Smith-He

[Rails-spinoffs] Re: Adding Properties to DOM::Elements as opposed to adding Methods

2008-06-17 Thread EricGoogle
Hello kangax, I am trying to keep "state" information in the correspoding elements themselves rather that having each element have a "brother object" that keeps it's state information. I can't figure out how to do that with a method as opposed to a property. I can think of many useful reasons fo

[Rails-spinoffs] Re: Shall we create a new "Prototype Scriptaculous Users" group?

2008-06-17 Thread T.J. Crowder
Hi all, Just a very brief update on this: Everyone seems to think it's a good idea, including Tobie and a couple of the other core committers, so Tobie and I were talking about the mechanics and transition today. Look for an update soon, but I'm later for dinner. ;-) Meanwhile, Tobie suggested

[Rails-spinoffs] Re: Firefox vs. IE 6/7 Behavior w.r.t tables and utility function $

2008-06-17 Thread kangax
Extending elements is a tricky business. Providing a common prototype for element instances (which can be extended once and affect all later- created elements) is not a standard behavior (as per ecma specs). Mozilla happens to implement this, while IE does not. It's usually a good idea to extend a

[Rails-spinoffs] Re: Prototype FAQ

2008-06-17 Thread kangax
GGroup-based FAQ sounds like the way to go. I absolutely don't mind maintaining it regularly. I'm not quite sure about having an "official" FAQ on a prototypejs.org - home page could simply be pointing to the one on GGroup (where one could both read FAQ and ask questions) - kangax On Jun 17, 10:

[Rails-spinoffs] Re: JSONP & Prototype.js

2008-06-17 Thread kangax
I've been playing with JSONP some time ago. Take a look at: http://github.com/kangax/protolicious/tree/master/get_json.js - kangax On Jun 17, 8:21 am, Ron Derksen <[EMAIL PROTECTED]> wrote: > Hi list, > > I've been looking for a JSONP implementation in Prototype, but can't > seem to find any yet

[Rails-spinoffs] Re: Balloon pop-ups

2008-06-17 Thread kangax
Take a look at http://scripteka.com/#window - kangax On Jun 17, 8:42 am, Shivanand <[EMAIL PROTECTED]> wrote: > Hi, > > How to create pop-ups like in google reader. When I click the link a > balloon pop-up opens. I can close it by clicking the "X" button. > Please find the link below for a visua

[Rails-spinoffs] Re: Prototype FAQ

2008-06-17 Thread T.J. Crowder
> Not everybody can achieve Wikipedia quality. Indeed not. :-) And even though MediaWiki is fairly easy to install, that's just the beginning of the process. > Perhaps we could find some moderated system to contribute to FAQ pages > on the GGroup itself, in addition to a general FAQ on prototyp

[Rails-spinoffs] Re: Firefox vs. IE 6/7 Behavior w.r.t tables and utility function $

2008-06-17 Thread icfantv
It actually never occurred to me that I could write a wrapper function. My confusion is due to the fact that the code works fine in Firefox, in that $(...).insertRow(-1) actually returns a Prototype Element object so the chaining is nice and concise, but in IE, it does not return an Element objec

[Rails-spinoffs] Re: Ajax.Updater not working in IE, tried everything

2008-06-17 Thread NabLa
Just an addition, line 1457 *does* get executed, but it seems that IE and Opera are confused about what the hell the "update" function is or where it is defined, therefore the update function on line 1592 never gets called. --~--~-~--~~~---~--~~ You received this me

[Rails-spinoffs] Re: Ajax.Updater not working in IE, tried everything

2008-06-17 Thread NabLa
It doesn't work on IE and Opera for me either. I've checked out latest prototype's from git to no avail. All line numbers I mention correspond however to the stable version 1.6.0.2 (latest) I've traced down the problem to the line 1457: else receiver.update(responseText); which calls the functio

[Rails-spinoffs] Re: JSONP & Prototype.js

2008-06-17 Thread Ryan Gahl
All JSONP is, is an endpoint that returns javascript that is a call to a named function on your page, usually passing the resultant processed data as a JSON parameter to said function. Some JSONP endpoints will have a fixed name for that callback function, and some allow you to specify the name of

[Rails-spinoffs] Re: Selecting radio group from element

2008-06-17 Thread louis w
YOU ROCK. :) Thanks for the help, such a simple but powerful solution. I subscribed to your blog. On Jun 17, 1:21 am, kangax <[EMAIL PROTECTED]> wrote: > // all radio input elements that are of the same name ("radioName") > $$('input[type=radio][name='+ radioName +']'); > > // same as above, but

[Rails-spinoffs] Re: Prototype FAQ

2008-06-17 Thread Christophe Porteneuve
T.J. Crowder a écrit : > At the end of the day, I'll happily use what's there. :-) For me, > it's more important that it be fairly (but not completely) open than > that it be actually on prototypejs.org; if we can have both without > too much effort, great, but otherwise I'd go for the quick and

[Rails-spinoffs] Re: Prototype FAQ

2008-06-17 Thread Christophe Porteneuve
hey! Tobie Langel a écrit : > etc. And also, out of the top of my head: “ WHERE CAN I GET HELP? - The archive of the former official support GGroup (4,300+ threads) - The official support GGroup - IRC HOW CAN I LEARN ABOUT PROTOTYPE? - Books - Websites - Technical blogs - Conferences WHERE CA

[Rails-spinoffs] Re: Prototype FAQ

2008-06-17 Thread T.J. Crowder
Hi Tobie, Having one official FAQ on the prototypejs.org website sounds great. The mechanism sounds a bit manpower-intensive, though, particularly for you. For example: I send you a FAQ entry, you glance at it and post it, and then I see a typo in it -- doh! Fixing my typo then means my email

[Rails-spinoffs] Balloon pop-ups

2008-06-17 Thread Shivanand
Hi, How to create pop-ups like in google reader. When I click the link a balloon pop-up opens. I can close it by clicking the "X" button. Please find the link below for a visual clue. http://rubyonrails-spinoffs.googlegroups.com/web/igoogle-pop-up.gif?hl=en&gsc=8gB7TQsAAAC58xRj9HFDnXVmrWClzzAX T

[Rails-spinoffs] Formating Date Field

2008-06-17 Thread raku
First.jsp -- <% ResultSet rs=db.executeQuery("select no,name from mytable"); while(rs.next()) {%> onclick=callJs(< %=rs.getString(1)%>) > <%} %> function callJs(arg1) { var url="Ajax.jsp"; new Ajax.Request(url, {asynchronous: true,method: "post",parameters: "ajaxrefno=" +ar

[Rails-spinoffs] JSONP & Prototype.js

2008-06-17 Thread Ron Derksen
Hi list, I've been looking for a JSONP implementation in Prototype, but can't seem to find any yet. I came across something from a guy called Cody Swann, but that didn't seem to work, and his website seems to have disappeared. I tried to come up with a nice, integrated way to do it myself, but I'

[Rails-spinoffs] Formating Date Field

2008-06-17 Thread raku
First.jsp -- <% ResultSet rs=db.executeQuery("select no,name from mytable"); while(rs.next()) {%> onclick=callJs(< %=rs.getString(1)%>) > <%} %> function callJs(arg1) { var url="Ajax.jsp"; new Ajax.Request(url, {asynchronous: true,method: "post",parameters: "ajaxrefno=" +ar

[Rails-spinoffs] Re: Prototype FAQ

2008-06-17 Thread Tobie Langel
Hi again, An anonymous wiki clearly wouldn't work, you're absolutely right. I've thought a bit more about this and end up thinking I'd be in favor of a unique FAQ page on the Prototype website. Maintaining two different FAQs and figuring out where what belongs is just going to be a pain. I als

[Rails-spinoffs] PYRAMID INSIDE PHOTOS, FOOD CREATIVITY PHOTOS, AND TOP CONCEPTS CAR

2008-06-17 Thread magesh kotteswaran
HI FRIENDS, THIS WEEK, NEW ONE PYRAMID PHOTOS ,FOOD CREATION, AND LOT OF CAR CONCEPTS , JUST FOLLOWING LINCK AND USE SIDE TOPIC PYRAMID INSIDE PHOTOS http://mageshnaturefedi.blogspot.com/ FOOD CREATION PHOTOS

[Rails-spinoffs] Re: Prototype FAQ

2008-06-17 Thread T.J. Crowder
Hey Tobie, Sounds great! For me the key thing is to have at least one FAQ that the community can contribute to directly. If we can do that on prototypejs.org without taking someone's time away from other things, that's a clear winner. If not, though, just linking to the FAQ from prototypejs.or

[Rails-spinoffs] Do you Waste Lot of Time Online?

2008-06-17 Thread Sonia
This is not spam, if you wish to be removed from this mailing list, please reply to this email with the Subject "Remove". Dear *Member*, Launching *www.MyEverydayPage.com * Do you know, most of the internet surfers waste time online just for s

[Rails-spinoffs] Re: Prototype FAQ

2008-06-17 Thread Tobie Langel
Hi T.J., Why not host in on the prototypejs.org website ? Ultimately, we might actually need two FAQs: One, general, on the Prototype website, another one, more specific (problem solving related, really) on the Google groups page. Thoughts ? Tobie T.J. Crowder wrote: > Hi all, > > In the di

[Rails-spinoffs] Re: prototype problems in IE

2008-06-17 Thread T.J. Crowder
Hi, Glad you found a workaround, anyway. If you find the actual problem, it'd be cool to know what it was. Enjoy, -- T.J. :-) On Jun 17, 7:36 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > okay i understand thats hard to find a error if theres no example > other problematic code. but th

[Rails-spinoffs] Re: circumvent default event bubbling

2008-06-17 Thread T.J. Crowder
On Jun 16, 9:14 pm, "Ian Smith-Heisters" <[EMAIL PROTECTED]> wrote: > I'm only supporting Firefox, so IE incompatibility isn't an issue :D Nirvana. I have had a glimpse of Nirvana. -- T.J. ;-) --~--~-~--~~~---~--~~ You received this message because you are subs

[Rails-spinoffs] Prototype FAQ

2008-06-17 Thread T.J. Crowder
Hi all, In the discussion about renaming/replacing this group, a few of us mentioned a FAQ. If there's a FAQ somewhere, it's reasonably well hidden. :-) In that other thread, kangax wrote: > I have started on a FAQ some time ago. It's fairly basic, but could be > a good start Excellent! We h

[Rails-spinoffs] Re: Shall we create a new "Prototype Scriptaculous Users" group?

2008-06-17 Thread T.J. Crowder
> I have started on a FAQ some time ago. It's fairly basic, but could be > a good start Great! I'll start a new thread for a FAQ discussion. I was going to wait until we'd made a decision on the other thing, but there's no good reason to. -- T.J. Crowder tj / crowder software / com On Jun 16,

[Rails-spinoffs] Re: Shall we create a new "Prototype Scriptaculous Users" group?

2008-06-17 Thread T.J. Crowder
On Jun 16, 7:43 pm, Diodeus <[EMAIL PROTECTED]> wrote: > I think losing the spammers is beginning to be more valuable than > losing the archive. Yes, I think so too. But if we could do the one without the other, even better. -- T.J. :-) --~--~-~--~~~---~--~~ You

[Rails-spinoffs] Re: Ajax.Request causing Socket Exception on Weblogic 9.2

2008-06-17 Thread T.J. Crowder
Hi, > java.net.SocketException: Connection refused. My suspicion is that this a weblogic thing rather than a Prototype thing. There's something about what you're doing that weblogic doesn't like and so it periodically refuses the connection. This could be it rate-limiting individual clie