search for: sergiopereira

Displaying 20 results from an estimated 32 matches for "sergiopereira".

2005 Dec 08
6
What does mean $(element) ?
Hi All, In scriptaculous scripts, I don''t understand this syntaxe : $(element) --8<--------------------------------- Effect.Highlight = Class.create(); Object.extend(Object.extend(Effect.Highlight.prototype, Effect.Base.prototype), { initialize: function(element) { this.element = $(element); ... --8<--------------------------------- I had never seen this syntaxe, I
2005 Sep 21
2
Tutorials, Howtos
Are there any tutorials or howtos on scriptaculous or Prototype? -- Alan Gutierrez - alan@engrm.com - http://engrm.com/blogometer/index.html - http://engrm.com/blogometer/rss.2.0.xml
2006 Jan 29
2
Questions about Sortable javascript
Hi, I''ve been playing with sortable, the demos on script.aculo.us and reading the javascript. I hope I''m not just missing the documentation somewhere but I can''t find it. I want to do something like Sortable for the admin side of an open source ecommerce project I''m working on [1]. I''m relatively new to DHTML but understand the basic ideas. If someone
2006 Feb 09
3
each()
I have been reading the documentation at: http://www.sergiopereira.com/articles/prototype.js.html One of the examples does this: var someNodeList = $(''lstEmployees'').getElementsByTagName(''option''); var nodes = $A(someNodeList); nodes.each(function(node){ alert(node.nodeName + '': '' + node.innerHTML); }); Ho...
2006 Mar 09
6
[Prototype] Ajax.Request include form fields?
Hi, Is it possible to submit my form (or part of my form) with an ajax request? I had been using dojo to do this, but having just read up on the prototype library, I think I''d rather use prototype. The one thing I don''t see (maybe I''m just missing it) is the ability to submit my form (actually just parse through an element and include all inputs as request parameters)
2005 Dec 05
3
Effect.Highlight on Ajax.Updater
Hello to all list members... Exchuse for my bad english, I don''t write english very well. I''m searching for a solution to hilight a div when his value change. The value in these div is take from Ajax.Updater . the code is: new Ajax.Updater(''acc'',''tools/head_info.php'',{asynchronous:true}); and have a settimeout to recall it every 5 seconds.
2006 Apr 03
3
AJAX Insertion.Before
Can anyone point me to an example of how to use the Insertion.Before technique? I''ve just begun trying to use AJAX and worked through Curt''s "Ajax on Rails". The description in AWD of what this does is just what I need, there''s no example of how to use it, and I''m getting no joy using Google. Any help is tremendously appreciated. -------------- next
2006 Jan 22
0
Using prototype.js Documentation - UPDATED VERSION TO COVER 1.4.0
Hi Everyone, The most popular documentation on prototype.js now got even better. The earlier one was for version 1.3.0. Sergio Pereira has updated his documentation to cover prototype.js version 1.4.0. http://www.sergiopereira.com/articles/prototype.js.html <http://www.sergiopereira.com/articles/prototype.js.html> -Mandy. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/r...
2005 Aug 22
1
Docs for prototype.js
I just found this (by way of comp.lang.javascript), and article on the use of and reference for prototype.js. http://www.sergiopereira.com/articles/prototype.js.html I haven''t checked the details, but it looks pretty good. The author points out that it is un-official. Sam, if you''re reading this, is there a chance of giving it an official blessing? Michael -- Michael Schuerig Those p...
2006 Mar 07
1
Ajax.Responders- how to get responseText?
Hi All. In my site I have situation that I always want to execute some piece of code when AJAX call happen. I am using function onCreate and onComplete from tutorial:http://www.sergiopereira.com/articles/prototype.js.html but I don''k how to manipulate Ajax responseText in this function. Does anyone know how to do it? Gregor ---------------------------------------------------- Zagraj o tytuł Króla Strzelców i poczuj atmosferę Ligi Mistrzów: http://klik.wp.pl/?adr=www.ligamist...
2005 Dec 14
4
newbie q: Form element focus
This is probably a dumb question, but is there an easy way to set the focus of a form to the first visible/editable element? I''ve been googling lots and searching documentation and haven''t come up with anything. Help would be appreciated. -- Posted via http://www.ruby-forum.com/.
2006 Oct 10
4
Prototype Tutorials?
Hi, Can anyone please point me in the direction of a good prototype tutorial? I''m not sure if one exists yet or not but I havn''t been able to find a comprehensive one yet. TIA Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2006 Mar 29
4
HELP: Rails / Ajax with 3 Drop down lists (see code)
Hi All, I have successfully implemented a two tier drop down lost with rails. However I''m stumped on how to make a third tier. For example: The form has three select lists; Catagory, Subcatagory and Make User Experience Desired: 1. On page load a Catagory Select List shows a list of Catagories from the database. example: Portable Electronincs Laptops etc. 2. Upon select of Catagory
2006 Feb 03
2
RE: help with syntax
I guess the first step is reading up on OOP in javascript... http://www.webreference.com/js/column79/ http://www.codeproject.com/aspnet/JsOOP1.asp Then, check out the definitive prototype.js guide... http://www.sergiopereira.com/articles/prototype.js.html -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Louis Walch Sent: Friday, February 03, 2006 2:01 PM To: rails-s...
2006 May 23
10
throttling...
Is there a way to throttle the firing of updater requests easily with Prototype? Thanks, mark
2006 Jun 21
11
scriptaculous question
Hello everybody. I''m wondering if there is away with scriptaculous to update multiple form fields with data after finishing an autocomplete request. Heres an example. Joe BlowSchmoe fills in his name and starts to type in the customer number, he selects the approprate customer number from autocomplete list, and bam the address associated with the customer number is populated into the
2006 Apr 15
11
evalScripts in IE
My Ajax.Updater is set for evalScripts and it receives this: <script language="JavaScript">complete();</script> It works in FF but not IE. Is the above code the proper way to return scripts? Thanks!
2006 Apr 18
7
[Prototype] evalScripts not working for me
...t;edit_table_279"> --SNIP-- </table> <input type="button" onclick="test();" value="test" /> Clicking the "test" button pops a "test is not defined" error. This is basically the same code that is in the example at http:// www.sergiopereira.com/articles/prototype.js.html so I don''t know what I''m doing wrong. Here is how I call Ajax.Updater: new Ajax.Updater(updateDiv, "Profile/update.aspx", { asynchronous: true, parameters: params, evalScripts: true, onComplete: function() { refresh_columns(...
2006 Feb 16
3
Retrieve a property defined in a css
Hi all, I have a property, defined in an external stylesheet: .my_class { background-color: #FF0000; } I want to retrieve the value of this background-color of the class my_class. How can I do that with prototype/scriptaculous ? Thanks in advance, Nicolas Terray
2006 May 28
13
JSON not auto-evaluated
Hi, please consider this stripped down example: new Ajax.Request(''foo.php'', { onSuccess: function(t, json) { alert(json.myParam); } }); According to http://www.sergiopereira.com/articles/prototype.js.html, the second param is supposed to be the evaluated json object IF the X-JSON header is send in the response. I send the header in my script. However, the json var is always undefined and i have to evaluate t.responseText myself. Am i missing anything important? Be...