similar to: Converting text into a javascript array

Displaying 20 results from an estimated 4000 matches similar to: "Converting text into a javascript array"

2005 Aug 25
17
IE and the activeX security warning
I''ve been testing my page, which not only includes my new slider code but the drag and drop code as well. You can see it here: http://hoover.razorstream.com/preference.htm My issue is that in IE, I get the annoying security warning across the top saying ''IE has restricted this file from showing active content that could access your computer''. If I allow the
2005 Sep 27
3
Too much recursion
Hey Guys, I''ve just encountered this error in Firefox will I pulled the latest scriptaculous rc into project. Sadly, I don''t have a linkable page for you to look over at the point. My question is what is this error exactly? My code before this never got it but now it does. My few searches suggest it''s the browsers way of keeping infinite loops from happening
2005 Aug 30
4
Java with Scriptaculous
I know that the prototype library was paired with Rails but I''m curious if anyone has used the ajax part (of the libraries) with java servlets? If so could you please point me to some examples or documentation. Cheers, Marty
2005 Aug 18
8
Extending a js class
It''s been a few days since I posted my last two emails (of which, no one replied to) so I''ve gone ahead and coded a working slider class as well as a ''resizeable'' class that allows a user to drag and resize the element. I also linked these two together as I want to have slider behavior that can resize the resizeable element. The end result is both the
2005 Oct 20
4
z-index and dragging
Hey Guys, I''m having trouble with getting my draggables to go over the top of other items on my page. For instance, if I drag an icon from ''lower'' in the page to a ''higher'' point then it slides underneath it visually. I have set the z-index to a very high number and that doesn''t seem to have any effect. Are there other things I need to
2005 Sep 21
8
Slider controls
Heya! Thanks to Marty Haught, script.aculo.us (as of changeset 2281) now sports a new Control for horizontal and vertical sliders. See the functional test file (test/functional/slider_test.html) for information on how to use it. Basically, you do: <div id="track1" style="width:200px;background-color:#aaa;height:5px;"> <div id="handle1"
2005 Aug 22
1
Event keycodes
I''ve been looking for a list of all the keycode constants for the Event object. Does anyone have a link to one? Specifically I''m looking for the page up, page down, end and home keys. Cheers, Marty
2006 Jan 04
9
Resizeable
Has anyone done any work on a "Resizeable" class they''d be willing to share? I''m looking to do some stuff that''ll need resizable divs, but I didn''t want to re-invent the wheel if I can avoid it. -Jerod _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005 Sep 15
4
Scrolling Tables/Divs?
Is anyone working on a scrolling table or div such as the openrico livegrid demo? I''m looking to develop (much like smashbox''s scrolling images) a collection of thumbnails that you can scroll horizontally. I''ve got a non-prototype.js example but I wanted to check to see if anyone was closer than I to this. BTW, I will be finishing up my slider code shortly and
2006 Apr 28
3
Serialize / deserialize an associative array
Perhaps I missed something but I don''t see an easy way to do this ? Basically just wanna hold some ui state in a cookie. Did I miss something obvious ? Best Matt *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorized and
2005 Oct 13
3
Tweaks of Array.prototype
Hi all, I encountered a big problem when trying to use Scriptaculous and Htmlarea in the same page. The Htmlarea code uses a lot of "for (var i in array_variable)" to iterate on array elements. Problem is that prototype.js augments Array.prototype, which then show up in the iteration, severely breaking htmlarea. The easy workaround is for sure to use "for (var i = 0; i <
2005 Aug 10
2
extend question
Is it possible to call the super class''s version of a function from a subclass? SuperClass = Class.create(); SuperClass.prototype = { initialize: function(){ this.varA = ''''; this.varB = ''''; } } SubClass = Class.create(); SubClass.prototype = (new SuperClass()).extend({ initialize: function(somevar) { this.somevar = somevar; }
2006 Mar 06
3
newhidups / Solaris 10 / APC RM1500
Hi there, been using NUT for ages and recently upgraded to a new server; while I'm waiting for a USB->Serial adapter for Solaris to arrive, I thought I'd play with the newhidups, as the APC UPS I have has a USB port and the new server doesn't have a serial port.... I've got Solaris 10 & newhidups working with the ugen driver up to a point, and that is a read
2006 Apr 24
1
JSON Validator
Maybe I am missing something very obvious, but guys does anyone know of any JSON Validators around? The reason is when you do an eval(json_response), if the JSON format is not proper, you''ll only get an error like "Can''t eval..". But, this doesn''t help identify where the actual problem lies. Is there some kind of a schema or something we can write to check
2006 Jun 25
17
JavaScript Compression
Is there a good windows-based JavaScript compressor which will reliably compress script aculo and prototype? Sam _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2008 May 13
8
static private and multi-inherit
/*author:csf178-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org*/ function Class(Initalizer,SuperClasses) { if(!SuperClasses)SuperClasses=[]; var ret=function(){ for(var i=0;i<SuperClasses.length;i++) { SuperClasses[i].call(this); } var $private={}; var $public=this; var $static=ret; with($static){ with($private){ with($public){
2011 Apr 14
3
Consecutive code blocks
Hi folks, I just wrote some Markdown which featured the following code snippets: <h1>TXJS 2011 Speakers</h1> <ul> <li><span>Brendan Eich</span></li> <li><span>Alex Russell</span></li> <li><span>Douglas Crockford</span></li> <li><span>Paul
2008 Feb 18
6
inheriting static/class methods with new prototype.js class creation
Hey all. I want something like this to work: var Foo = Class.create(); Foo.myStaticMethod = function(){alert("I''m a static method!")}; Foo.myStaticMethod(); // works var f = new Foo(); f.myStaticMethod(); // doesn''t work, but that''s good--I don''t want it to var Bar = Class.create(Foo); Bar.myStaticMethod(); // doesn''t work, undefined :(
2006 Mar 08
2
APC 1500RM / NUT 2.0.3 / newhidups / Solaris 10 [long]
Folks, while I've got the above combination to compile and run under Solaris 10, it seems that there are still problems in the libusb/ugen driver stack from Sun and or the APC Smart UPS 1500, so things aren't actually working. It seems that the APC Smart UPS 1500RM doesn't return the HID descriptor length information in 0x21 as noted in a previous thread, but in my case, it also
2012 Dec 12
1
EMA Package
Hi, I'm currently using EMA package to make clustering and heatmaps. The online doc concerning the package gives the following example code: data(marty) c<-clustering(marty, metric="pearson", method="ward") clustering.plot(c, title="Hierarchical Clustering\nPearson-Ward") which is working perfectly, However, when I'm changing the method to