similar to: Field and Form.Element design question

Displaying 20 results from an estimated 10000 matches similar to: "Field and Form.Element design question"

2006 May 22
13
Canceling a specific effect
Is there a way to cancel a specific effect? For instance; Effects are added to the queue. Before actually processing the effect, I''d like to check a condition & cancel the effect if necessary. Here''s the code excerpt: var menu = { toggleText: function(element,toggle) { var vis = $(element+''Text'').visible(); if (toggle && !vis)
2006 May 05
7
Problem with autocomplete
Hello, I''m using scriptaculous library (in symfony) v. 1.6.1 Great library !!!!! I have a problem. While in IE6 it''s all ok (the autocomplete field works perfectly) in FF 1.5.0.2 the field apparently isn''t working. If I try the example in the scriptaculous homepage (v. 1.4.0_pre4 of Prototype) doesn''t work with FF, while the simple online demo, that uses
2007 Jan 19
7
Prototype.js: Is there an "in_array"-like function?
Hi i was wondering if there is a quick way to search for a item within an array. Here is my approach for this functionality. It''s an prototype for an Array method called "has": Array.prototype.has = function(needle) { for (var i=0;i<this.length;i++) { if(this[i] == needle){ return true; } } return false; } var someArray = [''jim'',
2006 May 26
25
migration to rails
Hi, I''m a PHP developer and I''m think about migration to rails... my big problem is about printing web Reports, well I could not found a good thing to help me with this... Does Ror or some other ruby project have some thing to help about make/print database reports? tks
2006 May 01
2
[prototype] Selector class fails on selector strings with spaces
I just ran across this bug when trying to re-create Ben Nolan''s behaviour.js with prototype and was wondering if anyone had fixed it before I went re-inventing the wheel :) Thanks! -Jeremy -- Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org http://ipaction.org/ -- defend your rights to fair use _______________________________________________
2006 May 30
4
Limiting getElementsByClassName to specific nodes and entities
I''m currently using "The Ultimate getElementsByClassName" (http://www.robertnyman.com/2005/11/07/the-ultimate-getelementsbyclassname/) instead of the Prototype version. This version seems to be faster since it lets you specify the starting node and the type of entity. For example: var widgets = getElementsByClassName(document, "ol", "tree"); Is
2006 Mar 02
6
Question about $F()
Hi Guys, Maybe this is a stupid question, but I am confused at the moment. The $F() function is a handy shortcut to get the value of the an input field. So, doing something like $F(''name'') is equivalent to document.formname.name.value which is pretty cool. Now, what if I have 2 forms on the page, that same field name "name"? What would $F return? It does not take
2006 Nov 22
9
Way to interpolate a variable sent to $()
Hello all, I''m new to prototype and javascript isn''t my strong point. I''m trying to get a simple test script to work, which is turning out to be a little harder than I thought. I have a bunch of fields that I need to be able to switch on and off using one of a few hashes. In the example below I''m trying to get one to work. The problem occurs when I try to
2006 Oct 31
9
Dare Picker
Is there a good date picker that can be used with prototype & scriptaculous library. I am looking for something outside ruby on rails. Thanks --~--~---------~--~----~------------~-------~--~----~ 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
2008 Apr 22
1
Problem with Prototype 1.6.0.2, Opera 9 and Form.serialize()
Hello, following code fragment given: ~~~ function jsPostAppend(script, form_id) { if(form_id) //parameters=''&'' + $(form_id).serialize() // first flavour parameters=''&'' + Form.serialize($(form_id)) // second flavour [...] ~~~ This works perfect for FF2, IE7 and Safari3 (in both flavours). With Opera 9.x, I get the following javascript errors:
2005 Jul 06
16
Autocompletion not working in Konqueror
I''ve just had a look again at the autocompletion demo that Thomas put up at http://script.aculo.us/demos/ajax/autocompleter Unfortunately, in Konqueror (3.4.1) it doesn''t work at all. Not even an error is triggered. It does work nicely in Firefox. How about Safari? I don''t have the time right now to track this down systematically (maybe latter), but just from
2006 May 16
1
Ajax.Responders and onComplete
Hi all. I''m writing some kind of filter that i want passby my all AJAX request, and I stuck. I create object and pass him to Ajax Responders like this: var myGlobalHandlers = { onCreate: function(){ Element.show(''loading''); }, onComplete: function(request) { alert(request.responseText); } };
2006 Feb 09
3
Autocompleter Request depends on other field
Hi list, First, I have a textbox "username". I also have an Autocompleter'd textbox called "products". Is there a "built in" way to have the Autocompleter's Ajax Request pass the value in the "username" field ? (I tried adding "parameters: $F('username')" to the Autocompleter's options, but, that grabs the initial username
2005 Aug 17
3
Ajax.Autocompleter
I have been working with the Ajax.Autocompleter for about a day so forgive my ignorance. Is there any value in adding additional callbacks. I want perform an action when the user selects a choice. So I was thinking of adding an option {select: function(selectedElement) {}} similar to the callbacks on Ajax.Request in the prototype library. Call me out if you think I am crazy my feelings
2006 May 19
10
Content Rotate, unwanted flashing on IE.
I just wrote a stupid little JS object to rotate DOM Elements (mainly images) using Prototype and Script.aculo.us as support. Everything seems to work well on IE and Firefox Linux but on FireFox Windows I am getting a slight flash prior to transition. I was wondering if a effects guru could take a quick look and see if anything jumps out. I can live with the flash for my current project but
2005 Jul 09
7
Extending the AJAX autocompleter
Hi (I think Thomas?), I am trying to extending the AJAX autocompleter here, and would need to pass on additional params to the Framework I am using which is taking on the request. For this, I have changed the onObserverEvent function in controls.js as to the following: onObserverEvent: function() { this.changed = false; if(this.element.value.length>=this.options.min_chars) {
2008 Apr 18
1
element has no properties error.
Hey all, I''ve recently started messing around with Prototype again, so I thought I''d start small and write 5 lines of code that would check if all fields in a form are filled out. So I thought document.observe(''dom:loaded'', function() { $(''submNewUser'').disable(); new Form.Observer($(''newUser''), 0.3, function(e, val) {
2006 May 24
7
Using inline editor without requiring a URL
Hi, I was wondering if anyone has implemented the inplace editor without the need for the URL. I have tried this but run into a problem in that the ''saving...'' text in shown for ever and the label is no longer editable. Can I also confirm that my idea of the callback function is something that runs before the value is passed to the URL (if you were to use one). What might be
2005 Nov 04
1
prototype EventObserver on radio option elements
Hi all, I just started using prototype 1.3.1. I''ve successfully used Form.Element.EventObserver on a select list and recently tried to add it to radio options. However, I think there is a flaw in how it works with radio options. Radio options are a little unusual in that there are multiple distinct elements, tied together by a common name, where changing one element causes a
2006 Jun 12
10
Cross Broswer Fire Event
Is there a standard way of programmatically firing an event on an element? I think this code works in IE but not FF: myElement.fireEvent(''onclick''); I really only care about IE and FF, but anything else is a bonus. I didn''t see anything in prototype/scriptaculous for this, but I might have missed it. Thanks. Joe Athman