Displaying 20 results from an estimated 2000 matches similar to: "Detecting Body Onload"
2006 Jun 19
13
PNG and Alpha-Transparency
Is there a prototype / extension which will assist in cross-browser support
of PNG images?
http://www.alistapart.com/articles/pngopacity/
It seems to me that a class could be developed which would zip through the
DOM and make changes where needed for IE 5.5 / IE 6.0 to handle PNG images.
I don''t want to write one if it''s been done before.
Sam
2006 Jun 21
26
Implementing a boolean "switch" in a Class
I need a single boolean which would be "globally" accessible to all
instances of a class. Seems like the boolean should be in the class
prototype, but I was troubled by the difficulty of setting the prototype
boolean to true. Maybe I''m missing something?
var MyObject = Class.create();
MyObject.prototype = {
bSwitch: false,
... other methods and properties
}
var oMyOb1
2006 Jun 30
7
javascript woes with radio button groups
Ok! So I have this survey project I''m working on where there are a list of
questions but only one shows up at a time.
That part''s easy. And, it is fully functional as we speak (and I think even
''live'') however.....
My boss wants to be able to have the survey go to the next question when a
user selects an answer. This part is easy.. except.....
IE
2006 Jun 24
10
Looking for Javascript IDE
Hi everyone!
I am looking for a good Javascript IDE. Complete code-completion, should
understand object oriented models and anonymous functions.
Any suggestions?
PS: Im on windows.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2006 Jan 22
3
"onload" event handler inside a div
Hi. I need help on what is essentially putting an "onload" event handler
into a div. I am using render :partial and when the partial is loaded, I
would like the divs to show using an effect from a library such as
scriptaculous or moofx. However, there is no "onload" for a div. I was
wondering what alternative methods I should use to achieve this.
Thanks!
--
Posted via
2005 Nov 21
2
NAMESPACE, S4, and .onLoad
The Writing R Extensions manual instructs developers who use S4
classes and methods in a package with a name space to:
There needs to be an .onLoad action to ensure that the methods package
is loaded and attached:
.onLoad <- function(lib, pkg) require(methods)
I'm wondering if listing methods in the Depends field of the package's
DESCRIPTION file is sufficient.
2011 Oct 15
2
.onLoad failing because could not find function "loadMethod"
Hi,
This strange warning happen sometimes when running 'R CMD check':
* checking whether the package can be loaded with stated dependencies
... WARNING
Error : .onLoad failed in loadNamespace() for ?pkgB?, details:
call: length(new("A"))
error: could not find function "loadMethod"
Error: package/namespace load failed for ?pkgB?
Execution halted
2006 Apr 24
26
prototype-based color picker
has anyone in this list ever tried to make a javascript color picker
something like http://www.daantje.nl/blog/index.php?buttonID=37
or http://typetester.maratz.com/
i just thought i''d ask before i force myself to doing this.
thanks
mark renn
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2011 Jun 23
1
Class not found when search in .onLoad
Hi,
I am facing with a strange behaviour of isClass and extends when these
are called in .onLoad in both R 2.12.1 and R 2.13.0. This is preventing
my package from doing some object initializations at a proper place
(i.e. in .onLoad).
Suppose one defines two S4 classes in a package, and that one needs to
check the inheritance between these two when loading the package (e.g.
to validate slots
2016 Jan 30
2
Best way for rgl's .onLoad to fail?
On OSX and Linux, the rgl package currently requires X11 libs to be
available for linking. Recent versions of OSX don't include them by
default, so I'd like rgl to fail nicely.
Ideally, it will load a library that doesn't need to link to the X11
libs but will still allow WebGL code to work, but that's complicated, so
I'd like a stopgap.
I can detect that the failure is
2006 Feb 02
8
this pointer in Event.observe function
Hello,
please consider the following code example. It applies the onclick handler to
all image tags, and through window.event it ensures that it works in IE too:
--------------------------------------------------
var imgs = $(''foo'').getElementsByTagName(''img'');
for(var i=0; i<imgs.length; i++) {
// Apply onclick handler
imgs[i].onclick=function() {
2006 Jan 23
2
DRY encoding conversion and onload ajax execution
Hi everybody,
my first Rails app is a frontend for customer data pulled from a legacy
postgres database. The db is encoded in Latin1, but my pages will be
UTF-8.
What is the best way of character encoding conversion? I haven''t found
any way to have Rails deal with this natively, so I assume I have to
take care of this myself, right?
Where would I place my conversion code if I want
2013 Oct 03
1
check warning with .onLoad() and setClass()
Hi
I am writing a package in which I define a new class in the .onLoad()
hook:
,----
| .onLoad <- function(libname, pkgname) {
| setClass(
| "inDrak",
| representation(
| init = "SpatialGridDataFrame"
| ),
| contains = "simObj"
| )
| }
`----
The class "simObj" is defined in the package, which
2016 Feb 01
2
Best way for rgl's .onLoad to fail?
>>>>> "BH" == Bryan Hanson <hanson at depauw.edu>
>>>>> on Sun, 31 Jan 2016 09:50:46 -0500 writes:
BH> I think the 2nd option will be more palatable to
BH> inexperienced users, but both do state the important
BH> detail. Bryan
>> On Jan 30, 2016, at 4:11 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
2007 Aug 25
5
onLoad event with an update function
Hello,
I am using the following code:
new Ajax.Request(''ajax.php'',
{ parameters: { task: ''home'' },
onSuccess: function(transport)
{
$(''home_montage'').update(transport.responseText);
new Effect.Appear(
2006 Jun 10
5
Tooltips
Anyone know of a tooltip extension which uses script.aculo or prototype?
e.g., hover a mouse on an object and pop-up a "help" dialogue?
Sam
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2005 Sep 18
3
Attaching effects during onload
I''m trying to attach effects to elements in my onload handler and my
lack of Javascript-fu is showing... I want to call the effect from
the onclick handler of an anchor inside the div I want the effect to
apply to. Here''s what I''m trying to do:
function doOnLoad() {
var filters = document.getElementsByName(''filter'');
for
2008 Aug 06
1
R CMD check message that I can't figure out (.onLoad failed)
I have been able to track and fix everything so far with R CMD check.
How do I make this reproducible and I will do it.
this is the message that I got:
Error in fun(...) : couldn't connect to display ":0.0"
Error : .onLoad failed in 'loadNamespace' for 'tcltk'
--
Let's not spend our time and resources thinking about things that are
so little or so large that
2016 Feb 01
1
Best way for rgl's .onLoad to fail?
If I recall it correctly, at least on Linux, rgl only needs X11 when
rgl.useNULL(FALSE). Is that correct? If so, I would say dependency
on X11 is optional and therefore you should be able to load the
package even without X11. Or is it that it still requires X11 libs
but not an X11 server?
My $.02
/Henrik
On Mon, Feb 1, 2016 at 1:44 AM, Duncan Murdoch <murdoch.duncan at gmail.com>
2006 Apr 27
8
Prototype based tabs and field validation. Enjoy!
Thought I''d try and contribute to the growing prototype ecosystem.
tabs:
http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/
field validation:
http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototype/
Both real easy and clean to use. Hope y''all can use them somehow.
Cheers
--
Andrew