Re: [Rails-spinoffs] test

2006-03-17 Thread Jaimz
This is the world speaking! HELLO cosmin! Cosmin Cimpoi wrote: Hello World! --- Cosmin Cimpoi Web Developer – Team Technology (OT) -

Re: [Rails-spinoffs] Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Jerod Venema
And beware using evalscripts on anything between 1.0 and 1.5all kinds of funky stuff happens (they broke the js rendering in one of the versions in there). Just as an aside-Jerod On 3/17/06, Martin Bialasinski <[EMAIL PROTECTED]> wrote: On 3/17/06, Ryan Gahl <[EMAIL PROTECTED]> wrote:> Why

Re: [Rails-spinoffs] Re: Re: [prototype] how i send Dynamic form

2006-03-17 Thread Todd Ross
On 3/17/06, jaimz murray <[EMAIL PROTECTED]> wrote: > yeah you can check it out now, lol i feel like an idiot, i had put some > JS that relies on php in a .JS file because i forgot the php was in the > JS > > it works now Swap your and tags. A form isn't a valid descendent of a table. Al

[Rails-spinoffs] Re: Re: [prototype] how i send Dynamic form

2006-03-17 Thread jaimz murray
Todd Ross wrote: > Is it in a state where you think it should be working? > > Todd yeah you can check it out now, lol i feel like an idiot, i had put some JS that relies on php in a .JS file because i forgot the php was in the JS it works now -- Posted via http://www.ruby-forum.com/. __

RE: [Rails-spinoffs] Updated the xml code to be more object-oriented

2006-03-17 Thread Gregory Hill
Updated code: XMLDoc = Class.create(); Object.extend(XMLDoc.prototype, { initialize: function (xmlDoc) { this.element = xmlDoc; }, asHash: function () { if (! this._xmlHash) { this._xmlHash = this._nodeToHash(this.element); } return this._xmlHash; }, _nodeToHash: fun

Re: Re: [Rails-spinoffs] [prototype] how i send Dynamic form

2006-03-17 Thread Todd Ross
> once your logged in click on "Pick-Up Depot | Add a File" > in the client code box you can try "FA" then choose "FAME" from the > autocomplete. > > if you look at it right away it may be a little funky because i'm > currently working on it Entering Client Code 'FA' and then choosing the first FA

RE: [Rails-spinoffs] Updated the xml code to be more object-oriented

2006-03-17 Thread Ryan Gahl
No problem, always try to play Devil's advocate... Your tool is very nice, I can think of a few applications already. Thanks for the work. The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprieta

RE: [Rails-spinoffs] Updated the xml code to be more object-oriented

2006-03-17 Thread Gregory Hill
> But what about elements with attributes, nested elements AND/OR text > values? It's recursive. > > What does: > > text > > Look like? I don't think that is handled in the current code. If you have attributes, you'd need to have nested tags (or nothing). I could add a conditional that if y

RE: [Rails-spinoffs] Updated the xml code to be more object-oriented

2006-03-17 Thread Ryan Gahl
Very nice! Thank you. I'm sure I will be using this. But what about elements with attributes, nested elements AND/OR text values? What does: text Look like? And what does a nested structure like this look like as a hash: text1 text2 I would expect something similar to... {

[Rails-spinoffs] Updated the xml code to be more object-oriented

2006-03-17 Thread Gregory Hill
I changed the code to be more prototype-esque, and created a class called XMLDoc. I may add more functionality to it later, hence the more generic name, but you do something like this to convert XML to a hash: XMLDoc = Class.create(); Object.extend(XMLDoc.prototype, { initialize: function (xmlD

[Rails-spinoffs] Autocompleter.Local problem/desparate plea for help...

2006-03-17 Thread Steve Longdo
I have been trying to write a selector function for Autocompleter.Local that will show a predefined Array and will scroll automatically to the first match.  I have had success with with getting my list to populate and show all of the choices, however I cannot get it to scroll to the first match. 

Re: Re: [Rails-spinoffs] [prototype] how i send Dynamic form

2006-03-17 Thread jaimz murray
Todd Ross wrote: > Do you have a live example? It's going to be your fastest (and, > possibly only) route to a solution. > > Todd yeah here's an example.. http://labs.gi-tools.com/hat_trick/ login info: username: demo password: demo once your logged in click on "Pick-Up Depot | Add a File" i

Re: [Rails-spinoffs] Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Martin Bialasinski
On 3/17/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > Why are you not using FF > 1.0.7? sheesh, how many versions have been > released since then? I have both 1.0 and 1.5 installed. When I use FF, I use the 1.0 branch, as there are some to me critical extensions not ported to 1.5 yet. Just for a di

RE: [Rails-spinoffs] good javascript xml parser

2006-03-17 Thread Gregory Hill
First attempt was blocked by the mailing list for being too long, so here’s the trimmed version.  This works in IE also:   function xmlToHash(el) {   Element.cleanWhitespace(el);   if ((el.attributes && el.attributes.length > 0)    || (el.hasChildNodes() && el.childNodes[0].nodeType ==

Re: [Rails-spinoffs] good javascript xml parser

2006-03-17 Thread troels knak-nielsen
A bit OT, but have a look at E4X. It's only supported in mozilla, but you might be able to write an emulation for IE On 3/17/06, Gregory Hill <[EMAIL PROTECTED]> wrote: > > > > It's pretty quick-and-dirty, but this is my first attempt. > > > > function xmlToHash(el) { > > Element.cleanWhitespace

RE: [Rails-spinoffs] good javascript xml parser

2006-03-17 Thread Gregory Hill
Oops… it doesn’t work at all in IE.  Friggin IE.   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory Hill Sent: Friday, March 17, 2006 11:20 AM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] good _javascript_ xml parser   It’s pr

RE: [Rails-spinoffs] good javascript xml parser

2006-03-17 Thread Gregory Hill
It’s pretty quick-and-dirty, but this is my first attempt.   function xmlToHash(el) {   Element.cleanWhitespace(el);   if (el.hasAttributes() || (el.hasChildNodes() && el.childNodes[0].nodeType == 1)) {     var localHash = {};     if (el.hasAttributes && el.attributes.length >= 1) {

Re: [Rails-spinoffs] Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Alex Young
Jeremy Kitchen wrote: that's a chrome issue, not a page issue. check out the console2 firefox extension: https://addons.mozilla.org/extensions/moreinfo.php?id=1815&application=firefox you can disable chrome errors so this should stop occurring. ...except that that's for 1.5, and the problem I'm

Re: [Rails-spinoffs] Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Alex Young
Jeremy Kitchen wrote: Alex Young wrote: Has anyone else seen this? Error: uncaught exception: [Exception..."Component returned failure code: 0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS) [nsiXPCComponents.lookupMethod]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location:"JS frame :: chro

Re: [Rails-spinoffs] Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Alex Young
Nicolas Terray wrote: On 3/17/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: It's a FF bug, man, upgrade. I'm using Fx 1.0.7 (FC3), I'm using prototype and therefore $(), and I havn't those errors. Do you have a short snippet of code which produce this exception ? I may have been a little hasty i

RE: [Rails-spinoffs] Element.getDimensions

2006-03-17 Thread Gregory Hill
Maybe one of them is set to 0 when display is none (might be browser-specific). Might be interesting to look into. Greg > -Original Message- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] On Behalf Of Lorenz Knies > Sent: Friday, March 17, 2006 10:07 AM > To: rails

Re: [Rails-spinoffs] Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Jeremy Kitchen
Alex Young wrote: > Has anyone else seen this? > > Error: uncaught exception: [Exception..."Component returned failure > code: 0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS) > [nsiXPCComponents.lookupMethod]" nsresult: "0x80570009 > (NS_ERROR_XPC_BAD_CONVERT_JS)" location:"JS frame :: > chrome://global/

Re: [Rails-spinoffs] Element.getDimensions

2006-03-17 Thread Lorenz Knies
I think you misunderstood my question. I totally agree that one wants the dimensions as if it were showing. I just wonder why the *offset*Width/Height in one case and the *client*Width/Heigth in the other? Lorenz On 17.03.2006, at 17:47, Gregory Hill wrote: Probably feature. I imagine when

Re: [Rails-spinoffs] good javascript xml parser

2006-03-17 Thread Tom Riley
This might not be practical for you, but the google maps api has an xml parser that uses a native xml parser if the browser has one and a _javascript_ parser if the browser doesn't.http://www.google.com/apis/maps/documentation/#GXml_code_Also, just found http://xmljs.sourceforge.net/  Tom Riley

RE: [Rails-spinoffs] Element.getDimensions

2006-03-17 Thread Gregory Hill
Probably feature. I imagine when you want dimensions, you want what the dimensions are if the element were showing, not 0x0 when it isn't. Or am I misunderstanding the question? Greg > -Original Message- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] On Behalf Of

RE: [Rails-spinoffs] good javascript xml parser

2006-03-17 Thread Gregory Hill
Hmm… that is a pretty cool class.  I was hoping more for something that you didn’t need to know what the tag names were, it would just create a hierarchy that you could drill down into easily, but if I get stuck, this is a good backup.   Greg   From: [EMAIL PROTECTED] [mailto:

Re: [Rails-spinoffs] Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Nicolas Terray
On 3/17/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > It's a FF bug, man, upgrade. > I'm using Fx 1.0.7 (FC3), I'm using prototype and therefore $(), and I havn't those errors. Do you have a short snippet of code which produce this exception ? ___ Rails-spi

RE: [Rails-spinoffs] good javascript xml parser

2006-03-17 Thread Maninder, Singh
Maybe this would help you :)   Thank you,Mandy.   p.s. I have not written this. I got this from some site long time back.     XMLParser = Class.create();Object.extend(XMLParser.prototype, {  initialize: function(xmlObj) {this.xmlObj = xmlObj;this.root = xmlObj.documentElement;  },  list

Re: [Rails-spinoffs] good javascript xml parser

2006-03-17 Thread Colin Mollenhour
If you are only using for server-client communications, you might consider JSON. I needed something very basic as well, but just decided to go with JSON instead of XML since it has less markup and is just plain simpler. Using XML with prototype was more trouble than it was worth for me. Usage i

Re: [Rails-spinoffs] Re: Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Alex Young
Todd Ross wrote: Alex Young wrote: Has anyone else seen this? Yes, I get those from time to time in the JavaScript Console. I'm also running Firefox 1.0.7 on Ubuntu 5.10. They don't seem to have any adverse side effects though; are they breaking something for you? Not that I know of - th

Re: [Rails-spinoffs] Re: RE: Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Michael Peters
Todd Ross wrote: > Ryan Gahl wrote: >> Why are you not using FF > 1.0.7? sheesh, how many versions have been >> released since then? > > How many? Easy! None for Ubuntu. Firefox 1.0.7 is the latest > supported release unless you want to jump through hoops and potentially > break other packa

[Rails-spinoffs] Element.getDimensions

2006-03-17 Thread Lorenz Knies
Hi all, should it be considered a bug that Element.getDimensions returns the offsetWidth and offsetHeight properties from elemens having not display none, but clientWidth and clientHeight from elements with display none? Or is it a feature? Regards Lorenz _

RE: [Rails-spinoffs] Re: RE: Exception in Javascript console in Firefox1.0.7

2006-03-17 Thread Ryan Gahl
Ahh... ok. I guess some things ARE better in M$ land. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Todd Ross Sent: Friday, March 17, 2006 10:17 AM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Re: RE: Exception in Javascript console

[Rails-spinoffs] Re: RE: Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Todd Ross
Ryan Gahl wrote: > Why are you not using FF > 1.0.7? sheesh, how many versions have been > released since then? How many? Easy! None for Ubuntu. Firefox 1.0.7 is the latest supported release unless you want to jump through hoops and potentially break other packages or install software outside

[Rails-spinoffs] Re: Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Todd Ross
Alex Young wrote: > Has anyone else seen this? Yes, I get those from time to time in the JavaScript Console. I'm also running Firefox 1.0.7 on Ubuntu 5.10. They don't seem to have any adverse side effects though; are they breaking something for you? Todd -- Posted via http://www.ruby-forum.

RE: [Rails-spinoffs] good javascript xml parser

2006-03-17 Thread Gregory Hill
Good point, I hadn’t thought of that ‘cause the project I was needing it for didn’t use them.  I’ll have to think about that for a bit.   Greg   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gahl Sent: Friday, March 17, 2006 8:48 AM To: rails-spinoffs@lis

RE: [Rails-spinoffs] good javascript xml parser

2006-03-17 Thread Ryan Gahl
> If not, I’m gonna build one.     Cool, make sure it can handle both elements and attributes. For instance, how would your example be different if my XML doc was…     The information transmitted in this electronic mail is intended only for the person or entity to which it

RE: [Rails-spinoffs] Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Ryan Gahl
I thought that there was an issue with that version of FF and trying to place expando properties on the function javascript object.. i.e. ("bind"). Why are you not using FF > 1.0.7? sheesh, how many versions have been released since then? It's a FF bug, man, upgrade. -Original Message-

[Rails-spinoffs] good javascript xml parser

2006-03-17 Thread Gregory Hill
Anyone know of a _javascript_ function that will take an xml document and turn it into an associative array? Basically it would take something like this: 1 Bob 2 John And turn it into something  like this: {     itemList: [ { id: 1, name: ‘Bob’ }, { id: 2, name:

[Rails-spinoffs] Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Alex Young
Has anyone else seen this? Error: uncaught exception: [Exception..."Component returned failure code: 0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS) [nsiXPCComponents.lookupMethod]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location:"JS frame :: chrome://global/content/XPCNativeWrapper.js

RE: [Rails-spinoffs] help with each

2006-03-17 Thread Ryan Gahl
If you go back through that thread from yesterday, you’ll see that I (and the other responder) made the mistake of seeing “getElementsByClassName” and thinking he was talking about “getElementsByTagName”. So we were both barking down the wrong tree, saying you had convert the nodeList into

Re: [Rails-spinoffs] ajax exception

2006-03-17 Thread Cosmin Cimpoi
Thanks for the reply. I'm pretty good at using bind all over where functions might get out of scope so it's not that. But I've managed to solve the problem. The thing is that on success I was doing some method callback that caused a TypeError error. And in prototype there's this line that execu

Re: [Rails-spinoffs] help with each

2006-03-17 Thread Francisco Calderon
hello there, what is the diference exactly between the two arrays? On 3/16/06, Ryan Gahl <[EMAIL PROTECTED] > wrote:You first have to convert it to an enumerable array (use the $A() helper method for that)...--    Ing. Francisco J. Calderón S.//   [EMAIL PROTECTED]//   Usuario de GNU/Linux  nº

Re: [Rails-spinoffs] ajax exception

2006-03-17 Thread Todd Ross
On 3/17/06, Cosmin Cimpoi <[EMAIL PROTECTED]> wrote: > On one of the ajax.request calls I make something weird happens. In the > debugger I get this output: > === > 10:36:04:796 [DEBUG] FileBrowser.onServiceResult > inResult = success > 10:36:04:812 [DEBUG] FileBrowser.onService

Re: [Spam] Re: [Rails-spinoffs] [prototype] how i send Dynamic form fieldvalues??

2006-03-17 Thread Todd Ross
On 3/16/06, Jaimz <[EMAIL PROTECTED]> wrote: > so everything is there. it's just like the form won't submit elements > that were added to it's structure AFTER the page was rendered. While that might appear to be the case, there's probably another explanation. I see no reason why dynamic form elem

Re: [Rails-spinoffs] Yahoo! User Interface Libraries

2006-03-17 Thread Tom Riley
I'm using the calendar widget (which depends on the events library) with prototype/scriptaculous. No problems to report. Tom Riley On 17 Mar 2006, at 09:31, Siegfried Puchbauer wrote:me too :) the tree widget is quite niceOn 3/17/06, Matt Vanderpol <[EMAIL PROTECTE

Re: [Rails-spinoffs] Yahoo! User Interface Libraries

2006-03-17 Thread Siegfried Puchbauer
me too :) the tree widget is quite niceOn 3/17/06, Matt Vanderpol <[EMAIL PROTECTED]> wrote: I'm using the Yahoo events library along with prototype and scriptaculous and haven't had any problems.-Matt On Mar 16, 2006, at 3:37 PM, Alex Duffield wrote:Are their any compatibility issues with using th

[Rails-spinoffs] test

2006-03-17 Thread Cosmin Cimpoi
Hello World!   ---Cosmin CimpoiWeb Developer – Team Technology (OT)---monogroup Srlpiata unirii nr 4-5400013, Cluj-Na

[Rails-spinoffs] ajax exception

2006-03-17 Thread Cosmin Cimpoi
Hello!   This is my first post so hello to the ROR community :) I am implementing an online editor using the prototype.js lib.   On one of the ajax.request calls I make something weird happens. In the debugger I get this output: === 10:36:04:796 [DEBUG]   FileBrowser.onServic