Re: [Rails-spinoffs] Re: File upload (Jim Geurts)

2006-06-07 Thread Danial Tzadeh
Daniel,It looks very promising. I would be pleased if you send us the codes too.Danial On 6/7/06, Daniel Herrero <[EMAIL PROTECTED]> wrote: I have actually one library for uploading files in my web page, if you like the way it runs I can send you all the files I use. I didn´t create it form zero, I

[Rails-spinoffs] Autocomplete multiple item

2006-06-07 Thread Lei Sun
Hi I was using the Autocompleter for multiple tags of a post using token feature. It works great! But later, I discovered that the Autocompleter is only able auto complete the very last tag. Is it possible to be able to auto complete the earlier tags? Like del.icio.us? Thanks Lei

[Rails-spinoffs] RE: Including scriptaculous.js causes page to "hang"

2006-06-07 Thread Jason Harwig
I've had problems like this when importing some rich text editor libraries after scriptaculous. TinyMCE, in particular would cause browsers to hang unless it was imported before prototype/scriptaculous. When I say hang, I mean the browsers spinner keeps spinning and Firefox's info bar at t

RE: [Rails-spinoffs] Scriptaculous Problem

2006-06-07 Thread Gregory Hill
It's a browser limitation. If you set display: none in the css, when you do: $('id').style.display = ''; It doesn't revert the value to the default of block, inline, list-item, or whatever. It's like it forgets it magically. Would be nice if every item had a 'defaultDisplay' or something, so y

Re: [Rails-spinoffs] Scriptaculous Problem

2006-06-07 Thread Glenn Nilsson
As the documentation (http://wiki.script.aculo.us/scriptaculous/show/Effect.Appear) states: "Effect.Appear Make an element appear. If the element was previously set to display:none; inside the style attribute of the element, the effect will automatically show the element. This means that it must

[Rails-spinoffs] Scriptaculous Problem

2006-06-07 Thread Bryce Fischer
The following works: Click to display My Div (style is inline) but the following does not: ... #mydiv { display: none; } Click to display

Re: [Rails-spinoffs] Sortable Demo not working in FF (1.5.0.4)

2006-06-07 Thread Grzegorz V. Furmanek
Sweet, thanks. Greg Grzegorz V. Furmanek greg(at)ttiltd.com http://www.furmanek.net Tom Gregory wrote: The old version of the code is included (but hidden) on the wiki page, meaning there are multiple elements with the same id. (Oops, not supposed to do that!) When $() is called, the so

Re: [Rails-spinoffs] Sortable Demo not working in FF (1.5.0.4)

2006-06-07 Thread Tom Gregory
The old version of the code is included (but hidden) on the wiki page, meaning there are multiple elements with the same id. (Oops, not supposed to do that!) When $() is called, the sortables from the old version are returned rather than the visible ones. As a workaround, go back a couple

[Rails-spinoffs] Sortable Demo not working in FF (1.5.0.4)

2006-06-07 Thread Grzegorz V. Furmanek
Hi everyone I have tried the Sortable demo on the website and it does not seem to work with the current version of FF. Any ideas why? Greg -- Grzegorz V. Furmanek greg(at)ttiltd.com http://www.furmanek.net -- This message has been scanned for viruses and dangerous content by MailScanne

[Rails-spinoffs] IE6 Autocompleter dropdown - First element not highlighted (Scriptaclous)

2006-06-07 Thread Hirn, Joseph
Hello all.     I’m having a problem with the first element of the drop down list of the Autocompleter not being highlighted. If I hit enter it selects the top element, so it appears to be a purely a rendering issue. This happens with the demo .html’s contained in the download. I have ver

Re: [Rails-spinoffs] Determining the type of an object

2006-06-07 Thread Ryan Gahl
http://www.webreference.com/js/column79/7.htmlAnd IE supports the "instanceof" operator natively.On 6/7/06, Gregory Hill <[EMAIL PROTECTED]> wrote: Not as far as I know.  I think only built-ins can have a different type value, but I could be wrong.   Would be nice if _javascript_

Re: [Rails-spinoffs] Determining the type of an object

2006-06-07 Thread Casey O'Neill
That's what I was afraid of. Thanks for your input.On 6/7/06, Gregory Hill <[EMAIL PROTECTED]> wrote: Not as far as I know.  I think only built-ins can have a different type value, but I could be wrong.   Would be nice if _javascript_ supported true subclassing, but I don't believe

RE: [Rails-spinoffs] Determining the type of an object

2006-06-07 Thread Gregory Hill
Not as far as I know.  I think only built-ins can have a different type value, but I could be wrong.   Would be nice if _javascript_ supported true subclassing, but I don’t believe it does.   Greg   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Casey O'Neill

[Rails-spinoffs] Determining the type of an object

2006-06-07 Thread Casey O'Neill
How do you determine the type of a prototype object? I have a hashmap that was created using $H(). var temp = new $H();typeof temp: "object"temp.constructor (): [object Object]I know the the $H() is initially created by extending object but is there anyway to figure out if the temp object is of typ

Re: [Rails-spinoffs] Including scriptaculous.js causes page to "hang"

2006-06-07 Thread Stuart Grimshaw
Gregory Hill wrote: > All of the other scriptaculous files are in the same folder? > (effects.js, etc, etc) > > If so, I can't fathom what the problem is. Try just including > /js/effects.js instead of scriptaculous.js. Yes, all the files, including prototype are in the same directory. They are

Re: [Rails-spinoffs] What if $$() for?

2006-06-07 Thread Michael Peters
Dirk Eschler wrote: > Am Mittwoch, 7. Juni 2006 11:54 schrieb Maninder, Singh: > [...] >> Example: Find all elements inside elements with class >> "summary", all inside the with id "page". Hide each matched >> tag. >> >> $$('div#page p.summary img').each(Element.hide) > > Out of curiosit

Re: [Rails-spinoffs] What if $$() for?

2006-06-07 Thread Dirk Eschler
Am Mittwoch, 7. Juni 2006 11:54 schrieb Maninder, Singh: [...] > Example: Find all elements inside elements with class > "summary", all inside the with id "page". Hide each matched > tag. > > $$('div#page p.summary img').each(Element.hide) Out of curiosity, how does the Element method know

RE: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Maninder, Singh
lol... :) -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Gregory HillSent: Wednesday, June 07, 2006 10:53 PMTo: rails-spinoffs@lists.rubyonrails.orgSubject: RE: [Rails-spinoffs] Monitor Objects There’s this other great debugger

RE: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Gregory Hill
There’s this other great debugger for Firefox… just kidding J   Greg   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maninder, Singh Sent: Wednesday, June 07, 2006 11:07 AM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] Monitor Objects

Re: [Rails-spinoffs] Scriptaculous + Drag n Drop + "Boxes" Portal Layout

2006-06-07 Thread Jean-Philippe Encausse
Cool ! Many thanks, that a great getting started ! On 6/6/06, Nicolas <[EMAIL PROTECTED]> wrote: Try this (rename to zip) On 6/6/06, Jean-Philippe Encausse <[EMAIL PROTECTED]> wrote: > Hi, I've already played with scriptaculous DragNDrop for small fields or objects but I never did that for l

RE: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Maninder, Singh
Again and Again   This is FOR INTERNET EXPLORER :) We all know FIREFOX is brilliant ;) -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Matt SpendloveSent: Wednesday, June 07, 2006 10:34 PMTo: rails-spinoffs@lists.rubyonrails.orgSubjec

Re: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Matt Spendlove
For what it's worth, I find the simplest debugger to use is the one shipped in the latest version of Firebug : You just insert the "debugger" keyword in your script... The Eclipse Web Tools Project doesn't have a patch in Firefox + Firebug for front end stuff.. Matt Ryan Gahl wrote: Oh

Re: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Ryan Gahl
Oh ok, now I see what you're saying... you can't even USE ATF without Tomcat. Silly.On 6/7/06, Maninder, Singh < [EMAIL PROTECTED]> wrote: http://www.alphaworks.ibm.com/tech/ajaxtk/faq#08 -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ryan

RE: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Maninder, Singh
http://www.alphaworks.ibm.com/tech/ajaxtk/faq#08 -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Ryan GahlSent: Wednesday, June 07, 2006 10:18 PMTo: rails-spinoffs@lists.rubyonrails.orgSubject: Re: [Rails-spinoffs] Monitor ObjectsWell it

Re: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Ryan Gahl
Well it shouldn't need to attach to any SERVER... just to a running instance of a browser. On 6/7/06, Maninder, Singh < [EMAIL PROTECTED]> wrote: The Eclipse ATF (from when I tried it) could not attach itself to an external server... I think you needed to run Tomact if you wanted to debug.

RE: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Maninder, Singh
The Eclipse ATF (from when I tried it) could not attach itself to an external server... I think you needed to run Tomact if you wanted to debug... -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Ryan GahlSent: Wednesday, June 07, 2006 10:12

Re: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Ryan Gahl
How about Eclipse? Isn't that supposed to have script debugging facilities, or does that debugger only attach to FF?On 6/7/06, Maninder, Singh < [EMAIL PROTECTED]> wrote: As far as Debugging using Venkmann is concerned, I know of it and use it but the problem is -   You do not always imple

Re: [Rails-spinoffs] Prototype Array object extension causing problems

2006-06-07 Thread Ryan Gahl
It's extension of the Array object if perfectly fine, if people would just stop using the Array object as an associative array (just use a normal object for that)... Arrays are for numeric indexing and should NOT be used as dictionaries or hash tables. Using Array in that manner is entirely useless

RE: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Maninder, Singh
As far as Debugging using Venkmann is concerned, I know of it and use it but the problem is -   You do not always implement similar feature in your site for all browsers (eg RTE might be enabled in IE but not in Firefox) and if I get an issue in RTE code how do I use Venkmann? :))   Sometim

[Rails-spinoffs] Prototype Array object extension causing problems

2006-06-07 Thread John Wang
I heard that, as of 1.5.x, prototype is no longer extending object prototypes or causing object bleeding, making it more compatible with 3rd-party _javascript_s such as Dojo Toolkit. I tested this by running prototype 1.5.0 rc0 and Dojo 0.3.0 together and Firefox's _javascript_ Console produced the

RE: [Rails-spinoffs] What if $$() for?

2006-06-07 Thread Gregory Hill
> $$('#info p.notice').each(Element.hide); > > This will hide all P elements that have a CSS class of "notice" that > are inside > the element with id "info". I've had problems getting such a thing to work with the $A function (it's my understanding that internally $$ creates an Array object simi

Re: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Ryan Gahl
Hmm, never had those problems with the script debugger, although I haven't used in a while since I discoverd the built in js debugger in Studio and Express.Sorry for ya.As for Venkmann, slow as molasses, but yea I can see it's utility for open source devs. I just do all my js logic debugging in VS,

Re: [Rails-spinoffs] What if $$() for?

2006-06-07 Thread Thomas Fuchs
$$() is like $() but selects an array of elements via a CSS selector. Thus, $$('div.someclass') returns an array of all DIV elements on the page that have a CSS class of "someclass" set. For example, you can do: $$('#info p.notice').each(Element.hide); This will hide all P elements that have

[Rails-spinoffs] Re: Create new Image Plugin?

2006-06-07 Thread Henrik Ormåsen
Sorry. That was meant for the rails list, not the spinoffs. I try again.. - Henrik ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Maninder, Singh
Ryan,   Thanks for sharing...but I am using the Script Debugger - it opens but doesn't show anything :( Then I resinstall it, it works for 2-3 times and then again starts misbehaving.   And for VSExpress, it doesn't work unless FrontPage Extensions are installed on your server.   I use ap

RE: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Maninder, Singh
Ditto Andrew!   I have faced those issues almost every single time and I need to keep installing it again :)   So, its kind of useless! :)   There is another software from TitoSoftware or something that helps in profiling and debugging in Internet Explorer.http://www.titosoftware.com/   Le

RE: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Martinez, Andrew
Dunno if it comes with MS Office but the script debugger is almost useless. Especially when it starts to fail to open, opens but doesn’t show you anything, or becomes minimized off screen randomly. It’s a piece of crap in my opinion.   -Andrew Martinez   -Original Message- From:

RE: [Rails-spinoffs] Draggable issue

2006-06-07 Thread Leon Chevalier
-Original Message- How can I stop the draggable to follow the cursor? - You can run your confirmation script after a timeout. For example: function sure() { conf = confirm("Are you sure?"); if(!conf) { return false; } } Sortable.create('thelist',{endeffect: function(element) { s

RE: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Gregory Hill
Is that the one that comes with MS Office?  As in the one that closes your browser for you, oh so helpfully, when you click Stop?  Man I hate that thing with a passion.  Venkman debugger for Firefox is pretty decent, at least what I’ve seen of it (haven’t used it much).   Greg  

Re: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Ryan Gahl
Alternately, you can give this a whirl instead. Download and install the MS script debugger at http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en ...make sure in IE you enable script debugging by going to Tools > Options > Advanced > unchec

Re: [Rails-spinoffs] Monitor Objects

2006-06-07 Thread Jerod Venema
IIRC, ie will pop up the "debug" option when you turn on script debugging. At that point, you can tell it to debug with VS, and it *should* load everything up for you. At least, that's worked for me in the past FWIW. -Jerod On 6/6/06, Maninder, Singh <[EMAIL PROTECTED]> wrote: I keep get

Re: [Rails-spinoffs] prototype-based color picker

2006-06-07 Thread Tobie Langel
Great job! Would suggest either adding a transparent div on top of the images or storing the images as background to prevent accidentally dragging the image rather than the slider. Regards, Tobie ___ Rails-spinoffs mailing list Rails-spinoffs@list

RE: [Rails-spinoffs] Including scriptaculous.js causes page to "hang"

2006-06-07 Thread Gregory Hill
All of the other scriptaculous files are in the same folder? (effects.js, etc, etc) If so, I can't fathom what the problem is. Try just including /js/effects.js instead of scriptaculous.js. Greg > -Original Message- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] O

Re: [Rails-spinoffs] prototype-based color picker

2006-06-07 Thread Dirk Eschler
Am Mittwoch, 7. Juni 2006 13:52 schrieb Matthias Platzer: > hi thomas, > > good stuff takes time :) > so here is a late reply to your request > > i implemented a ColorPicker based on the YUI Color Picker script > using script.acolo.us and some EasyRGB math > > http://www.knallgrau.at/code/colorpick

[Rails-spinoffs] Draggable issue

2006-06-07 Thread Garito
Hi all! I have some draggables objects that I can drop them on another one When I drop an element I need to ask for confirmation At this point the draggable object follow the cursor to the confirm dialog How can I stop the draggable to follow the cursor? I try to create a system where you can

Re: [Rails-spinoffs] prototype-based color picker

2006-06-07 Thread Matthias Platzer
hi, thanks for the feedback. i fixed it and uploaded a new version. http://www.knallgrau.at/code/colorpicker/demo i also fixed a css issue with firefox. does anybody know, what i have to do that clicking somewhere at the slider control moves the slider? mat Jean-Philippe Encausse schrieb: > G

Re: [Rails-spinoffs] SelectLists

2006-06-07 Thread Fernando
yes selectedIndex ,solved my problemn =) tks Carl escreveu: Hi, some text1 //id = 0 some text2 //id = 1 some text3 //id = 2 I need something like $('test').options[*TEST_ID*] but I only have it's value Try $('test').selectedIndex Regards, Carl.

RE: [Rails-spinoffs] SelectLists

2006-06-07 Thread Gregory Hill
$(‘test’).value = ‘45’;   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fernando Sent: Wednesday, June 07, 2006 8:15 AM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] SelectLists   How to know the option  Id from a Select List by its valu

RE: [Rails-spinoffs] SelectLists

2006-06-07 Thread Gregory Hill
Sorry, hit send before I finished: $(‘test’).value = ‘45’; var id = $(‘test’).selectedIndex;   Is that what you mean?   Greg   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fernando Sent: Wednesday, June 07, 2006 8:15 AM To: rails-spinoffs@lists.rubyonrail

[Rails-spinoffs] Including scriptaculous.js causes page to "hang"

2006-06-07 Thread Stuart Grimshaw
When I say hang, I mean the browsers spinner keeps spinning and Firefox's info bar at the bottom says "Transfering data from .. " I'm just including the js like this: which I cribbed from the demo pages anyway. If I remove the 2nd line, and just have prototype loaded, the page loads

Re: [Rails-spinoffs] SelectLists

2006-06-07 Thread Carl
Hi, some text1 //id = 0 some text2 //id = 1 some text3 //id = 2 I need something like $('test').options[*TEST_ID*] but I only have it's value Try $('test').selectedIndex Regards, Carl. -- TopTheTable.com - Fun and games for the World Cup 2006. It'l

[Rails-spinoffs] SelectLists

2006-06-07 Thread Fernando
How to know the option  Id from a Select List by its value? ex       some text1 //id = 0       some text2 //id = 1     some text3 //id = 2     I need something like $('test').options[TEST_ID] but I only have it's value ___ R

Re: [Rails-spinoffs] prototype-based color picker

2006-06-07 Thread Jean-Philippe Encausse
Great, You should just fix a little issue: - While clicking somewhere the circle is set - While moving circle the color change But while clicking somewhere + drag circle the color didn't change. If think end user often click and drag in image software. May be it is because the circle is move on m

Re: [Rails-spinoffs] Create new Image Plugin?

2006-06-07 Thread Ryan Gahl
I believe Marco M. Jaeger of this list has something that might be useful for you...Marco...?On 6/7/06, Henrik Ormåsen < [EMAIL PROTECTED]> wrote:I'm working on a CMS for some time now. I need some kind of functionality to deal with images. As I know there are to pluginsavailable: SuperImage and Fi

Re: [Rails-spinoffs] File upload

2006-06-07 Thread Jean-Philippe Encausse
Hi I already did that, just set the target attribut of the form to the hidden Iframe. It should work. It is very difficult to work with input type='file' in javascript because, for security reason many browser doesn't allow handle on this input. I don't know if it is possible to Post file with A

RE: [Rails-spinoffs] What if $$() for?

2006-06-07 Thread Matt Spendlove
out of interest, is there an equivilent get-elements-by-classname in 1.4 ? I couldn't see one and I am curious about what strategy people use in 1.4.. Best Matt Maninder, Singh wrote: > Hey Will, > > $$ function is used for finding DOM elements by simple CSS selector > strings. > > Ex

[Rails-spinoffs] Create new Image Plugin?

2006-06-07 Thread Henrik Ormåsen
I'm working on a CMS for some time now. I need some kind of functionality to deal with images. As I know there are to plugins available: SuperImage and FileColumn. Neither of these have exactly what I want. What I want is a plugin with the following functions: - A poppup window (or ajax field) w

Re: [Rails-spinoffs] prototype-based color picker

2006-06-07 Thread Matthias Platzer
hi thomas, good stuff takes time :) so here is a late reply to your request i implemented a ColorPicker based on the YUI Color Picker script using script.acolo.us and some EasyRGB math http://www.knallgrau.at/code/colorpicker/ and a demo at: http://www.knallgrau.at/code/colorpicker/demo downl

RE: [Rails-spinoffs] What if $$() for?

2006-06-07 Thread Maninder, Singh
Hey Will, $$ function is used for finding DOM elements by simple CSS selector strings. Example: Find all elements inside elements with class "summary", all inside the with id "page". Hide each matched tag. $$('div#page p.summary img').each(Element.hide) Hope this helps! Th

Re: [Rails-spinoffs] Scriptaculous + Drag n Drop + "Boxes" Portal Layout

2006-06-07 Thread Nicolas
Try this (rename to zip)On 6/6/06, Jean-Philippe Encausse <[EMAIL PROTECTED]> wrote: Hi,I've already played with scriptaculous DragNDrop for small fields or objectsbut I never did that for larger "boxes" like portal portlet.Does anybody know a tutorial or sample or explaination about how to Drag n

[Rails-spinoffs] Re: File upload (Jim Geurts)

2006-06-07 Thread Daniel Herrero
I have actually one library for uploading files in my web page, if you like the way it runs I can send you all the files I use. I didn´t create it form zero, I obtained the inspiration from other libraries and made one I liked. It has onStart event, onEnd, onError, etc... My web page is: www.trintx

[Rails-spinoffs] File upload

2006-06-07 Thread Jim Geurts
Can anyone recommend a technique or library for uploading files in a hidden iframe?  I came across this http://beta.zapguide.nl/iframe/pork.iframe.js but I was wondering what alternatives are out there.  I don't need to have progress information, I would just like to be able to hook an event when t

[Rails-spinoffs] What if $$() for?

2006-06-07 Thread Will Merrell
In the prototype.js library, what doe the $$ function do, and how do you use it --Will Merrell ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs