[Rails-spinoffs] Event.observe for href

2006-06-28 Thread Kevin Old
;othercontent')); }, false ); Thanks for any help, Kevin -- Kevin Old [EMAIL PROTECTED] ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] Set global var in onComplete and keep persistant? Is this possible?

2006-06-15 Thread Kevin Old
on some object that's visible at the global level (window, for example, or some object you've created just for this purpose). On 6/15/06, Kevin Old <[EMAIL PROTECTED]> wrote: > Hello everyone, I posted yesterday about setting a global variable. I've done everything I

[Rails-spinoffs] Set global var in onComplete and keep persistant? Is this possible?

2006-06-15 Thread Kevin Old
Hello everyone, I posted yesterday about setting a global variable. I've done everything I can think of to keep the global variable set outside of the onComplete. Is this impossible? Surely I'm not the only one who needs this. Thanks for any help, Kevin -- Kevin Old [EMAIL

[Rails-spinoffs] Re: Global variables and onComplete in Ajax.Request

2006-06-14 Thread Kevin Old
On 6/14/06, Kevin Old <[EMAIL PROTECTED]> wrote: Hello everyone, Just a note, I have to pass my JSON in the response body. I'm aware of the X-JSON header, but am passing too much data to use it. No problem and I have code that has it working well. While I'm getting my JSON d

[Rails-spinoffs] Global variables and onComplete in Ajax.Request

2006-06-14 Thread Kevin Old
s undefined Has anyone else run into this? Any ideas what I can do to fix it? Thanks for any help, Kevin -- Kevin Old [EMAIL PROTECTED] ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] IE help for Rating system

2006-04-17 Thread Kevin Old
http://kold.homelinux.com/rating_new/rating.html Problem is, the green stars don't "stick" like they do in Firefox. Can anyone help me with this? Any help is greatly appreciated! Kevin -- Kevin Old [EMAIL PROTECTED] ___ Rails-spinoffs mailing

[Rails-spinoffs] Not able to see length in another function

2006-02-12 Thread Kevin Old
Hello everyone, I have the following code that builds into a . buildModel() is called first, then setModel(). For some reason, I can't get the length of the "model" options in setModel(), but can after they are built in buildModel(); function buildModel(originalRequest, json) { var model =

Re: [Rails-spinoffs] JSON and scriptaculous

2006-02-11 Thread Kevin Old
Ed, On 2/11/06, Ed C. <[EMAIL PROTECTED]> wrote: > Just include the ( and ) parens in your X-JSON header string. Yes, that will work, but it's a hack. Looking a all of the documentation for the definition of JSON data, the parens are no where to be seen. Kevin -- Kevin Old [E

Re: [Rails-spinoffs] JSON and scriptaculous

2006-02-10 Thread Kevin Old
On 2/10/06, Kevin Old <[EMAIL PROTECTED]> wrote: > On 2/10/06, Todd Ross <[EMAIL PROTECTED]> wrote: > > On 2/10/06, Kevin Old <[EMAIL PROTECTED]> wrote: > > > Here's the page: http://kold.homelinux.com/prototype/testajax2.html > > > > I wa

Re: [Rails-spinoffs] JSON and scriptaculous

2006-02-10 Thread Kevin Old
On 2/10/06, Todd Ross <[EMAIL PROTECTED]> wrote: > On 2/10/06, Kevin Old <[EMAIL PROTECTED]> wrote: > > Here's the page: http://kold.homelinux.com/prototype/testajax2.html > > I was hoping to be able to play with your X-JSON approach because that > seems to

Re: [Rails-spinoffs] JSON and scriptaculous

2006-02-10 Thread Kevin Old
Hi Todd, On 2/10/06, Todd Ross <[EMAIL PROTECTED]> wrote: > On 2/10/06, Kevin Old <[EMAIL PROTECTED]> wrote: > > I'm using prototype 1.4.0 final. > > > > Any help is greatly appreciated! > > I'd be happy to look at a live website. > Here'

Re: [Rails-spinoffs] JSON and scriptaculous

2006-02-10 Thread Kevin Old
s } but it never "creates" my object. I've even tried passing the data into the $H() function, but no luck. I'm pulling my hair out with this as I'm coding this by the book and none of it's working. I thought surely this would work as I'm

Re: [Rails-spinoffs] Ajax.Updater not populating element - please help

2006-02-09 Thread Kevin Old
the_make", "the_mode" and "the_year" (if defined in the global vars by server side code displaying this page). 2) Reload "model" and "year" as new "make" is selected. Thanks for any help with this. Kevin -- Kevin Old [EMAIL PROTECTED]

Re: [Rails-spinoffs] Ajax.Updater not populating element - please help

2006-02-09 Thread Kevin Old
On 2/9/06, Kevin Old <[EMAIL PROTECTED]> wrote: > Hi Tom, > > On 2/9/06, Tom Riley <[EMAIL PROTECTED]> wrote: > > The above line looks wrong - the onComplete shouldn't be there and > > should be a separate element in the options hash passed to > > A

Re: [Rails-spinoffs] Ajax.Updater not populating element - please help

2006-02-09 Thread Kevin Old
s function: function showResponse(originalRequest) { //put returned XML in the textarea $('result').value = originalRequest.responseText; } I'm using Prototype 1.4.0 final. Any ideas? Thanks for your help, Kevin -- Kevin Old [EMAIL PROTECTED] ___

[Rails-spinoffs] Ajax.Updater not populating element - please help

2006-02-09 Thread Kevin Old
; if ( yearre.test(m) ) { year.selectedIndex = i; } } }   Abarth Abbott-Detroit ABC Abingdon Ford AC ACE Ac

[Rails-spinoffs] Re: Help needed with conflicting EventObserver

2006-02-07 Thread Kevin Old
Since no one's replied, I've thought of a few specific questions related to the code. On 2/7/06, Kevin Old <[EMAIL PROTECTED]> wrote: > function setMake() { > var make = document.getElementById("make"); > var makere = /ford/; > > // Set the ma

[Rails-spinoffs] Help needed with conflicting EventObserver

2006-02-07 Thread Kevin Old
model', function( element, value ) { new Ajax.Updater( 'year', '/util/year_select_response', { parameters: 'id='+value,asynchronous: 1,onComplete: function(request){var year = document.getElementById('year&

[Rails-spinoffs] Execute script tag loaded from Ajax.Updater call

2006-01-27 Thread Kevin Old
> The question I have is how do I get Ajax.Updater to load this? I'm not sure if onComplete will work and I'm not sure that I can count on the function names in this_javascript.js. How could I go about getting this code to run once it's been fetched by Ajax.Updater? Thanks