similar to: Prototype ajax/javascript q

Displaying 20 results from an estimated 3000 matches similar to: "Prototype ajax/javascript q"

2006 Mar 31
10
ruby help / if (cond or cond)
Why this code doesn''t work as expected? It raises exceptions everytime. Tried with || operator, too. validates_each :x, :y do |record, attr| record.errors.add (attr, ''between 1 and 100'') if (attr.to_i>100 or attr.to_i<0) end -- They say money can''t buy happiness? Look at the smile on my face... ear to ear, baby!
2007 Oct 15
3
JavaScript error after including Prototype library
Hello, I''ve started seeing this error after including Prototype: Form.Element.Serializers[method] is not a function http://qaslweb1.crossmediaservices.com/shoplocal/scripts/prototype.js Line 2754 You should be able to see this error, using either Firefox or IE, when browsing to: http://qaslweb1.crossmediaservices.com/ Any ideas? Since this is a version of our original site rebranded
2006 Mar 23
2
newbie - form_tag with get?
I can''t create a form with method "get". The rhtml code: <%= form_tag :controller => ''teritory'', :action => ''add'', :method => ''get'' %> The generated html code: <form action="/teritory/add?method=get" method="post"> What i''m doing wrong? -- They say money can''t
2006 Mar 14
4
ruby-postgres: can''t convert string to integer
Hi everybody, I''m experiencing trouble when trying to use ruby-postgres with a legacy database I need access to. To me it seems the problem is the VARCHAR columns used there as primary keys. On a simple me = User.find(''PS12345'') I get a type error exception with the message ''can''t convert String into Integer''. The trace is:
2006 Apr 07
2
Prototype 1.5.0_rc0 breaks my Form.serialize
Cheers, Prototype 1.5.0_rc0 breaks backwards compatability with this diff in Form.Element.Serializers: http://dev.rubyonrails.org/changeset/4147 I have explicit value="" in my options and now I get the text submitted. E.g. <select id="foo"> <option value="">Please select a value</option> </option value="1">Nr.
2005 Oct 18
0
Parsing rSS files using javascript/prototype
Hi, I would like to parse the rss files using just dom/javascript (don''t want any server side processing). I know that xmlhttp can''t contact 3rd party but i''ll route it through one of the backend scripts. I was wondering if there is some easy to use feature in these libraries that can help me parse rss feeds?
2007 Aug 27
0
Prototype: automatic javascript response evaluation
Hello All, I''m having some trouble getting this to work as I''d expected. Given a server response that sets the content-type to "text/javascript" and contains: var startLeft = -180; The following client-side code fails (variable "startLeft" not found): var xmlHttp = new Ajax.Request(url, { method: "get",
2006 Feb 03
2
JavaScript Prototype Help?
I have a form with a text area. I want to have an observer watch the text area and update a div with the running count of characters in the text area. I tried "onchange" but that doesn''t update until you leave the text area. I was able to get it working using AJAX, but it''s silly to make a needless round trip to the server, when the page already knows
2008 Apr 03
1
Changing the prototype.js from 1.5.0 to 1.6.0.2 causes error in javascript code.
Hi, I am a new member of this group. We are using autocomplete box from "script.aculo.us". It uses the prototype.js file. We are creating the auto completer dynamically in a table. Our code was working on FireFox(FF) but was giving error on InternetExplorer(IE). So we upgraded the prototype.js file today from version 1.5.0 to 1.6.0.2. Only this particular change was done. When we
2005 Sep 15
1
Javascript object literals -- prototype clash?
I''ve been playing with some ideas in getting the server-side Rails code and client-side AJAX stuff working nicely together while still providing fallback for non-js viewers. I''m using Behaviour + prototype. I was experimenting with using an object literal to define forms that would be inserted into appropriate divs. Why not just write the forms on the server side and unhide
2008 Jan 09
4
Using Prototype - Getting Javascript Error - "Object doesn't support this property or method"
I have the following javascript being called on my site and I am getting a Javascript error - "Object doesn''t support this property or method". The error is invoked on the line that has - "listItems = $ ("vidList").childElements("li");". The purpose of the Javascript is two fold: ''swapVideo'' to change the Youtube video and
2007 Oct 25
5
A new JavaScript Framework based on Prototype and Scriptaculous : Archetype
After several months of development, we are proud to announce you the first public release of Archetype JavaScript Framework (License MIT, version 0.1)! Archetype is a JavaScript framework. It''s not a simple toolkit, but a real framework which affects the way you code in JavaScript. Made on top of excellent libraries as Prototype and Scriptaculous, it aims to ease development of real
2011 Jan 06
1
Cross validation for Ordinary Kriging
ear ALL, The last part of my thesis analysis is the cross validation. Right now I am having difficulty using the cross validation of gstat. Below are my commands with the tsport_ace as the variable: nfold <- 3 part <- sample(1:nfold, 69, replace = TRUE) sel <- (part != 1) m.model <- x2[sel, ] m.valid <- x2[-sel, ] t<- fit.variogram(v,vgm(0.0437, "Exp", 26, 0)) cv69
2004 Jul 15
1
"Reverse Hold" feature prototype...
I have no idea what this really should be called, so for lack of a better name, I called it "reverse hold". Hopefully someone else can make use of it, or even make it better, as its the first thing of its kind I've made for asterisk. Like most people, I'm very busy, so when I call other companies, sitting on hold really sucks. If you have speaker phone, its not so bad, but then
2005 Dec 10
1
submit ajax form through javascript
hi all, my problem: i have a form that is sent through ajax with ajax.updater. the onsubmit function looks like this: new Ajax.Updater( { failure:''command_div'' }, ''/windows/chat_post'', { asynchronous:true, parameters:Form.serialize(this } ); return false; this works fine when I submit the form by pressing the submit button.
2007 Jan 27
5
Prototype not processing javascript
I''m trying to change over from Rails 1.1.6 to 1.2.1 and have discovered that either something is wrong with Prototype of else something has changed that I am not aware of and cannot find documentation on. (I just joined this group, so if this has already been cussed and discussed here or in another list then please point me in the right direction.) I am trying to use the
2006 May 09
2
[Prototype] Why doesn''t calling submit() on a form result in the execution of the onsubmit event handler?
Hi, Is it normal that a call to $(''some_form'').submit() doesn''t result in the execution of an onsubmit event handler on ''some_form''? Thanks, - Rowan -- Morality is usually taught by the immoral. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jun 12
0
javascript form events (onsubmit) in RHTML
what''s the trick for adding an onSubmit hook when using the start_form_tag? I can''t seem to find anything. I''m assuming that I can do it, no? Thanks! -- Posted via http://www.ruby-forum.com/.
2008 Feb 08
0
javascript parameter problem with onsubmit
Hi I have this problem: <script> var param1 = ''field3''; </script> <script> var param2 = ''field3''; </script> <script> var param3 = ''field3''; </script> <%= submit_tag ''Next'', {:onsubmit => ''return validate_options(param1,param2,param3);''} %> function
2006 Nov 23
3
Prototype Safari onSubmit Issues
Hi folks. Another Prototype question. I have a simple ajax form which I want to return results on an onChange. Works in IE6 (Win) and FF, but Safari doesn''t seem to take the onChange too well. Upon the return key, it blanks out the form. Upon tabbing to the next field (actually the next form), I get the results. <form name="form1" id="form1"