similar to: What is $super

Displaying 20 results from an estimated 10000 matches similar to: "What is $super"

2011 Apr 05
1
super basic questions about S4 classes
Apologies for asking something that is probably super obvious, i just started with S4 classes and i guess i am not finding documentation that layout the grammar rules and give enough examples. Some questions i am having are these 1. I understand that main method of writing a member function is to write a generic function and setMethod for this particular object. This, however, presumes that there
2008 Apr 18
5
show sum of textboxes
Hi all, I have multiple textboxes containing numbers. I want to add up all the numbers and show the sum. Can I select the textboxes by class and sum the content? This also has to happen realtime: when a number is changed ina textbox the sum should also change. can this be done? regards, Stijn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2008 Feb 16
5
ie-specific error in prototype try-catch block?
Hi, I was wondering if anyone has any suggestions for debugging ie- specific errors? I have been working on a porting a prototype application that works fine in firefox to ie, and have run into several problems. For the latest one, the error message is not very informative. When trying to load the application, ie complains "Object doesn''t support this property or method." When
2007 Oct 19
2
string.prototype.isNumeric
Hey all, Just had a need for this, wondering if it is a candidate for inclusion as it is only a single line and I can''t seem to spot any other way of acheiving the same functionality in less code. String.prototype.isNumeric = function() { return (this.match(/^\d+$/) != null); } I used it in the context of: Event.observe(el,''keypress'',function (e) { if
2008 Jan 17
4
JSON query problems
I am constructing a JSON object that is an array of products. Using a select box, I want to find the object in the array that has an ID that matches the value from the selectedIndex of the select box and return the price. Here is the JSON script: var products = [{''ID'': 16378, ''Cost'': 100.00},{''ID'': 16377,''Cost'':
2007 May 11
15
Simulating onmouseleave and onmouseenter with Prototype
Hello. I spent an hour or three chasing down a desired effect that mootools implements, namely the simulation of onmouseleave and onmouseenter events. Why? Lets say you have a Menu. A ul element that contains many li elements. If you want to have a function (maybe an effect) fire when the mouse moves outside of the ul, you are out of luck. Observe the mouseout function like so:
2008 Mar 10
5
Passing extra parameters to functions called from Observers
Hi again, When you have an ''obeserver'' setup as follows: $(''myForm'').observe(''submit'', validateForm); If a user submits the form the ''validateForm'' function is called and is automagically passed the ''event'' to work with. This is fantastic! But is there a way to pass another argument to the function?
2008 Jun 03
7
Iframe shenanigans
Here''s my problem. Unfortunately I have the need to load up fully qualified html documents into my page. (think tens of thousands of mini sites). I also have the need to be as handicap accessible as possible. (So ajax is essentially out, screen readers aren''t up to snuff yet). Thus I''m using an iframe. The unfortunate part is that I have navigation menus that appear over
2007 Jul 31
6
Using Effect.Move() while maintaining the elements DOM order
Hi there, is it possible to maintain the elements order in DOM when using Effect.Move()? Currently the Move effect will change the element position (using top and left style attrs), this works quite well too, but what I''d like is to change the elements position as well. Consider the following example: html: ... <div id="a">First</div> <div
2008 Jun 20
3
problems using effects.morph && effect.appear
Hi, i wrote a sliding navigation using effect.morph and effect.appear. I don''t know why but there are a couple of problems: 1. effect.appear seems not to work in IE6 2. The effects aren''t really "smooth". 3. When using effect appear. The new element triggers onmouseover the onmouseout function.... It''s a small script: www.rhizom.nl/volkan/scriptalicous
2008 May 24
3
prototype causing value undefined error
I have a project for which I used a Wicket template as a starting point. The original example uses prototype.js. I''m using an SVG image as a background and have included a javascript that causes the image to always fill the background, regardless of the client window dimensions. This works fine in Safari 3 (Firefox doesn''t display the background image, but I''ll deal
2007 Dec 03
3
DOMContentLoaded error on IE6
Hi, I am loading prototype dynamically using the following js: var scr=document.createElement(''script''); scr.setAttribute("type","text/javascript"); scr.setAttribute("src","./static/js/lib/prototype.js"); document.getElementsByTagName("head") [0].appendChild(scr); on IE6
2007 Apr 06
5
Getting a dynamically generated elements dimensions
Ive posted this before, but unfortunately I still have yet to resolve it after numerous attempts... Here is the overview: populate a container element with some new html using Element.update and then retrieve the new dimensions of the containig element. Here is a bit of code snippet that I would think should work.. but doesn''t: ==== start snippet ==== <style> .bigBox {
2003 Jun 20
1
More than one param to AGI
I'm starting to write an AGI script. I want to pass more than one parameter to the script, but seem to be unable to. extensions.conf: exten => 85,1,AGI(/etc/asterisk/agi/args.agi,myarg1,myarg2) args.agi: #!/usr/bin/perl print STDERR "FNORD prog = $0\n"; print STDERR "FNORD arg 1 = $ARGV[0]\n"; print STDERR "FNORD arg 2 = $ARGV[1]\n"; print
2006 Jun 23
5
OT: Debugging iBook --- help
This is way OT, but here goes... I''ve had an iBook for 2 days now and am debugging a web built with prototype/script aculo / windows / etc... I have no real experience on a Mac. Occasionally, there''s no better way to debug JavaScript than an alert in a loop... Once I have the information information I want from the alert, the loop may want to execute another 300 times. I
2007 Jul 02
2
Object Property Sorting - Hash?
I''m trying to sort an object by its property names. As I understand it, iterating over an object using for...in or using Hash.each() (or Hash.sortBy()) does not guarantee the order of the properties. Is there an easy and low-overhead way to guarantee order? Or would I need to have some type of collection object that uses arrays instead of the property-value configuration that Hash
2008 Jun 20
5
About prototype.js and xml dom
Hello, I''m looking for a cross-browsers library based on prototype.js that wraps XML dom. I tried to extend XML dom elements by using Object.extend and Element.extend without success. It works fine with firefox (Object.extend) but don''t work with IE (msxml). I suppose that IE objects are not ''prototype based'' objects. Is there a way to go around this issue like
2007 Jul 12
2
Prototabs
I wrote a prototype based tabs script, they''re kind of basic but you can set them to use ajax or static content. http://jamesstarmer.com/prototabs/ Thanks, James Starmer --~--~---------~--~----~------------~-------~--~----~ 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
2008 Feb 05
2
Catching Ajax Failures (not 500s)
I am trying to catch failed Ajax requests, but I''m talking about requests that receive no response from the server (server is down), not responses that result in a 500. The latter can be handled with the onException or onFailure callback, but I am not able to handle the former. To reproduce/test: 1) Start your server 2) Create a page that does this:
2007 May 05
2
Problem with escape
Hello, I have a little problem with the escape function. Here is my code: function saveData() { new Ajax.Request("post.php", {method:"post", parameters:''message=''+escape(document.getElementById("shoutitmessage").value) } ); } If I have the escape function in my script I can''t post some characters e.g. ä,ö,ü,ß but if