search for: myelement

Displaying 17 results from an estimated 17 matches for "myelement".

2006 May 05
0
Node wrapping, node replacement, magic buttons...
Hey all, I was wondering if any of you has done any thing allong the lines of node wrapping? For example, lets same I have a document containing: <span id="myElement">My element text</span> And I want to wrap myElement with another node like this: <div><span id="myElement">My element text</span></div> The only solution I found was to do something like this: var myDiv = document.createElement (''div...
2007 Sep 20
10
Element.addMethods functions swallowing exceptions (IE6 + 7)
...0]; } else { var message = "default message"; } alert("generic Object: about to throw exception"); throw new Error(message); alert("this should not be executed"); } } </script> </head> <body> <h1 id="myElement">throw exception from Element.addMethods function</ h1> <script type="text/javascript"> // throw from Element.addMethods try { $("myElement").throwException(); alert("throw failed! You''re probably using IE7"); // this line s...
2006 Jun 12
10
Cross Broswer Fire Event
Is there a standard way of programmatically firing an event on an element? I think this code works in IE but not FF: myElement.fireEvent(''onclick''); I really only care about IE and FF, but anything else is a bonus. I didn''t see anything in prototype/scriptaculous for this, but I might have missed it. Thanks. Joe Athman ========================================================================...
2005 Oct 21
1
{ afterfinish }
Hi, 1. can someone give me an example usage of { afterfinish: }? I tried several ways and just can''t get it. I was trying to deploy an effect after another one had finished and just couldn''t do it. Effect.dropout (myElement, {afterfinish: function(element) { Effect.Appear(anotherElement); } } ); a) why doesn''t this work? b) what''s the element argument for? should it be there? 2. using $(myElement).style.visibility doesn''t seem to work when myElement class is defined as visibility:hidden in...
2007 Jun 22
2
Waiting For Completion
I am writing an application that will display a series of images. When a link is clicked the images will fade away, and new images will fade in. I am starting by trying to simply fade the images out then back in through a function: function ChangeImage() { Effect.BlindDown(''MyElement'',{duration:0.5}); Effect.BlindUp(''MyElement'',{duration:0.5}); } This results in the images simply being removed from the screen. I am guessing that this is not working because both Effects are trying to be executed at about the same time. Is there any way to do this?...
2005 Nov 24
1
Extended $ function called $$
This code lets you use standard CSS selectors to get an array of elements. For example, $$("#container div.myElements") would return all subelements of #container that are divs and are of the class myElements. I submitted similar code a while back to the email address for the prototype library but never got a reply. Thought I''d post this in the hopes that some others will find it useful. I think t...
2006 Jun 15
3
RE: Yahoo!-like Event object emulation/abstractionin Prototype?
Event.observe(myelement, ''click'', myfunc.bindAsEventListener()); That might fix your wagon. Greg > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] O...
2006 Jun 15
4
Yahoo!-like Event object emulation/abstraction in Prototype?
Hi, I was reading about the Yahoo! library recently and was really excited by the idea that I wouldn''t have to branch for IE in my event handlers. Is there any chance that such abstraction will come to Prototype? Thanks, Sam
2019 Jul 08
1
Format printing inside a matrix
...bute"-"s" you are referring to all the attributes. > This is a completely separate discussion from your original post. > And I don't see what it has to do with printing matrices with a list type. This is what I means: Suppose my list of S4 objects looks like following: myElement <- setClass("myElement", slots = c(x = "integer")) myList <- lapply(1:8, function(x) myElement(x = x)) myArray <- array(myList, c(2,2,2)) myArray # , , 1 # # [,1] [,2] # [1,] ? ? # [2,] ? ? # # , , 2 # # [,1] [,2] # [1,] ? ?...
2006 Jun 15
10
RE: Yahoo!-like Event object emulation/abstractioninPrototype?
...Thursday, June 15, 2006 12:18 PM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails-spinoffs] Yahoo!-like Event object > emulation/abstractioninPrototype? > > On Thu, Jun 15, 2006 at 11:28:03AM -0600, Gregory Hill wrote: > # Event.observe(myelement, ''click'', myfunc.bindAsEventListener()); > # > # That might fix your wagon. > > That didn''t seem to make any difference. FF still works, IE still > does not. I''m not branching for window.event in my callback/listener. > > I''m askin...
2006 May 26
4
stopping effects, help me again please
Hi * and thanks for you responses some body help me stop effect, just last effect. Thanks! to somebody help me with: Pulsator = Class.create(); Pulsator.prototype = {initialize: function(element) { this.stopped = false; new Effect.Pulsate(element, { afterFinish: this.action.bind(this) }); },action: function(element){if(!this.stopped) new Effect.Pulsate(element, { afterFinish:
2005 Nov 04
19
Drag & Scroll
When using drag and drop, the browser window will not scroll if you move the mouse off the page. This makes it very difficult, if not impossible to create certain types of web applications. I know this has been mentioned before and is on the Wish List, but it''s very frustrating. If you look at this other Javascript library called "Drag''nDrop & DHTML Library"
2019 Jul 08
5
Format printing inside a matrix
Hi Abby, Thanks a lot for your paraphrasing and your suggestion! The problem of wrapping the list into a S3/S4 object, i.e. subclassing array or matrix, is that one also has to define a bunch of methods for subsetting, joining, etc, in order to make it behave like a list array. The reason is that most R functions for subsetting, joining, etc. do not preserve class attributes of the input, which
2006 Jan 11
0
RE: Event.observer - unordered list problems
...eout", this.mouseOverListener); this.mouseOverListener = null; this.mouseOutListener = null; } }; Then within whatever scope makes sense, you get a reference to your element and extend it with the above class: Object.extend(myElement, new HoverClass()); I hope some of this was helpful and that I at least touched on what might be causing your problem... ________________________________ From: Marco M. Jaeger [mailto:mail-yVS5avHIROZWk0Htik3J/w@public.gmane.org] Sent: Wednesday, January 11, 2006 1:24 PM To: Ryan Gahl...
2006 Jan 11
0
RE: RE: Event.observer - unordered list problems
...eout", this.mouseOverListener); this.mouseOverListener = null; this.mouseOutListener = null; } }; Then within whatever scope makes sense, you get a reference to your element and extend it with the above class: Object.extend(myElement, new HoverClass()); I hope some of this was helpful and that I at least touched on what might be causing your problem... ________________________________ From: Marco M. Jaeger [mailto:mail-yVS5avHIROZWk0Htik3J/w@public.gmane.org] Sent: Wednesday, January 11, 2006 1:24 PM To: Ryan Gahl...
2006 Mar 25
0
in_place_collection_editor
...an HTML element specified by the DOM ID +field_id+ become an in-place + # editor of a property using a selection list populated by the . + # + # A form is automatically created and displayed when the user clicks the element, + # something like this: + # <form id="myElement-in-place-edit-form" target="specified url"> + # <select> + # <option value="1">One</option> + # </select> + # <input type="submit" value="ok"/> + # <a onclick="javasc...
2006 Jan 23
6
Performance Issues with Autocompleter
Hi All, I am currently using script.aculo.us and Autocompleter for a project which I am dealing now. I faced a situation for which I couldnt find any solution and I could not see any reference regarding this issue in the enhancement/bug lists of script.aculo.us either. Autocompleter component is working perfectly, if the information returned from the server does not exceed ~1000 LIs.