similar to: prototype.js

Displaying 20 results from an estimated 300 matches similar to: "prototype.js"

2006 Jul 21
2
Abstract insertion question
Hi, In the following block of Prototype.js when will the catch() block run? I cannot create conditions in Opera where it will run. Thanks, Peter if (this.element.insertAdjacentHTML) { /* IE and Opera */ try { this.element.insertAdjacentHTML(this.adjacency, this.content); } catch (e) { // when will this run? can feature detection be used instead? var tagName =
2005 Sep 21
2
Result Documents XML or JSON?
My Java servlets can generate both JavaScript objects, like JSON, and XML. I can generate both pretty easily. What''s best practice for AJAX responses? Return scripts to be evaled by the Ajax control, or return XML documents and iterate them using XML DOM? Thanks. -- Alan Gutierrez - alan@engrm.com - http://engrm.com/blogometer/index.html -
2005 Sep 19
5
accept on Sortable
Hi all, I am working on a Google Suggest Like thing, where you can add / remove, drag n drop ... mini-apps, it is nearly done but I need some advices (here it is if you want to check it : http://dev.karibou.org/default/edit ). I am using Sortables, is it the best way to do it ? I needed to modify the Serialize function cause I didn''t like the way I had to id my elements. Sorry, the
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
2005 Oct 01
3
storing state in cookies using scriptaculous
Hi All, So I''m using scriptaculous in rails to allow opening and closing of messages in a threaded forum without the need for reloading the entire page. What I was wondering was if there was some way to store the state (which messages are open and which are closed) in a cookie or something, so that when the user does reload the page the messages won''t all be reset to their
2005 Sep 21
9
Ajax.Updater
Hi all, I was wondering if one could pull a completely separate web site into a div, e.g. <a href="#" onclick="new Ajax.Updater(''artifact'', ''http://www.vivisimo.com/'', {asynchronous:true, evalScripts:true, onLoading:function(request){Toggle.display(''message2body'')}}); return false;">&raquo;</a> it fails
2005 Oct 27
3
String.protoype.toQueryParams
Hi, I am trying to play with all the methods in the Array Object. Just wanted to check with you guys if this is the correct explanation of toQueryParams(). If yes, then I''ll add it to the documentation as well. Works for me (but I am not sure if it''s the correct way to use it). /* String.prototype.toQueryParams takes a query string, i.e, string with name value pairs
2006 May 31
9
How can I make this thing work on IE?
Hello... i''ve been read lots of posts talking about this kind o mess in IE... but no one tells how could this be possible to work... :-) Any suggestions?? thanks... <html> <head> <script src="prototype.js"></script> </head> <body> <table border=1> <tbody> <tr id="0" name="0"> <td>LINE
2005 Sep 19
9
Rails compatible JS datepicker -- beta
hi all, I''ve built a simple javascript datepicker for use with Rails. I''m sure others exist, but think this one is quite decent without being overengineered. http://projects.exactlyoneturtle.com/date_picker/ At present there''s no Rails HTML generator method for it; later I will package it in a script/generator, but for now it is quite easy to use with Rails and
2005 Oct 01
7
minimal browser requirements for scriptaculous
Hi, I noticed that the scriptaculous shopping cart demo doesn''t work in safari 1.03. I was wondering if there was documentation somewhere that would tell me what my minimal browser requirements were for running scriptaculous? I found this comparative analysis on the web: http://wiki.osafoundation.org/bin/view/Projects/AjaxLibraries but I think it might be a bit out of date. I did
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) {
2005 Dec 21
1
RE: Prototype: correct useage of onCompletewithAjax.PeriodicalUpdater
The only call that PeriodicalUpdater will make periodically to you is the insertion call. I think of onComplete as being ''I''ve done everything I was going to do'', which for Updater is right after it''s done a single update, but for PeriodicalUpdater, it''s after it''s finished all of its updates, so you''ll only get it once for any call
2008 Jan 05
4
PeriodicalUpdater onComplete broken?
Using the PeriodicalUpdater, I''m finding the onComplete is not firing. I thought I''d get some feedback here before filing a bug report. http://ianty.com/updater/update_test_1.6.0.1.html http://ianty.com/updater/update_test_1.6.0.html The above are examples of this for prototype 1.6.0 & 1.6.0.1. I''m expecting the onComplete to fire after the update takes place, per
2007 Feb 23
4
Does Ajax.PeriodicalUpdater have a shield against multiple parallel executions?
Hello Does Ajax.PeriodicalUpdater have a shield against multiple parallel executions? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email
2005 Dec 21
1
RE: Prototype: correct useage of onComplete withAjax.PeriodicalUpdater
>From a quick look at the source code, it looks like onComplete is only called when the whole thing is done - in the case of Updater, right after the update, in the case of PeriodicalUpdater, right after it has been stopped. It looks like you need to pass your callback method as an ''insertion'' method in the options. This takes two parameters, the first will probably be the
2008 Jun 13
3
dynamically change frequency in periodicalUpdater
Hello All, I''ve seen this topic but it seems no one has post a response. I''m using periodicalUpdater to display live content queried from a database. Sometimes the result can be thousands of rows and before it finishes processing (displaying as a visual indicator) all the data, the next request is sent to the server. I''d like to have a periodicalUpdater whose
2005 Dec 18
3
JavaScript question
Hi guys, I know this is not the perfect place to ask this question, but I''m struggling with object-oriented javascript and event-handlers and you guys are probably the only ones adept enough to help me out with this. I have this calendar code I hate (and still have to maintain ;) and wanted to change it to use object-orientation. So I have written a JavaScript-class called
2005 Oct 27
5
Problem passing event object
Hi all, I''m having a problem with an Ajax.Request. I can''t figure out how I can pass an event (an onclick on a checkbox) which causes the Ajax Request, to be recognized in an onSuccess function. Here''s my simplified code: var RequiredField = Class.create(); RequiredField.prototype = { initialize: function(chkbox) { this.chkbox = chkbox; this.chkbox.onclick =
2005 Sep 28
0
Prototype / script.aculo.us / XSLT 2.0
Here''s an blog on how I''m using Prototype and script.aculo.us... http://engrm.com/blogometer/2005/09/28/relay-and-javascript-generators/ If anyone is interested in generating views and models for script.aculo.us controllers in XSLT 2.0 please let me know. -- Alan Gutierrez - alan@engrm.com - http://engrm.com/blogometer/index.html -
2008 Jan 22
3
prototype 1.6 Ajax.PeriodicalUpdater executing old scripts??
Hello , I have a PeriodicalUpdater executing every x seconds and sends a ajax request to update an element. Each time it comes back, the element is getting replaced with some html and and possibly <script>coolFunction()</script>. This seems to work fine when for prototype 1.5. However when I upgraded to prototype 1.6, it seems to execute coolFunction() as many times as the request has