similar to: Hide content before page load

Displaying 20 results from an estimated 10000 matches similar to: "Hide content before page load"

2006 May 28
13
JSON not auto-evaluated
Hi, please consider this stripped down example: new Ajax.Request(''foo.php'', { onSuccess: function(t, json) { alert(json.myParam); } }); According to http://www.sergiopereira.com/articles/prototype.js.html, the second param is supposed to be the evaluated json object IF the X-JSON header is send in the response. I send the header in my script. However, the json var
2006 Jun 07
6
What if $$() for?
In the prototype.js library, what doe the $$ function do, and how do you use it --Will Merrell
2006 Jan 20
5
Height problem after interrupting SlideDown/SlideUp effects
Hi, i have a problem with the the SlideDown and SlideUp effects. Since a similiar problem is also visible on the script.aculo.us homepage, i''m going to explain it this way. - Go to http://script.aculo.us/ - On the main site below "visual effects", click "Advanced options", the sub panel will scroll down. - Hit the close button, and while the panel is still
2006 Apr 30
1
Draggable - how start action on start dragging and end action on droppping
Hi all. I have got situation that I made element draggable - and when element is dragged I want to start some action (e.g. shown AJAX indicator, and change one of CSS class in dragging element). What is the best way to achieve this? I search source code of the Draggable and I saw that there is 2 method: Draggable.initDrag and Draggable.endDrag so it looks like in initDrag method i should
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
2005 Dec 29
2
Ajax.Request: onLoading executed after onComplete in IE
Hi, i''m trying to use a visual indicator for my Ajax requests. It''s based on the shopping cart demo at script.aculo.us and works great in Firefox, Konqueror and Opera, but fails in IE6. For some reason (timing problems?) onComplete is executed before onLoading, so the indicator is shown but not hidden when the request has finished. Oddly enough it works fine in the shopping
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 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
2006 May 22
13
Canceling a specific effect
Is there a way to cancel a specific effect? For instance; Effects are added to the queue. Before actually processing the effect, I''d like to check a condition & cancel the effect if necessary. Here''s the code excerpt: var menu = { toggleText: function(element,toggle) { var vis = $(element+''Text'').visible(); if (toggle && !vis)
2006 May 20
10
Changing the height of LI elements to achieve such an effect?
Hi Everybody, I was wondering if there is such a work done with Scriptaculous/Prototype before and if not how to achieve it? Example : http://www.anatolip.com/ It is done with codes borrowed from moofx and his own codes. Thanks in advance Danial _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Sep 14
10
scriptaculous Toggle Appear rate
I have the following code to toggle a basic appear of a div: <a href="#" onclick="Effect.toggle(''d3'',''appear''); return false;">Toggle appear</a> I want to edit the rate in which the effect runs. I can''t for the life of me figure it out. I would like to make the effect complete faster, like .5 seconds. I''ve
2008 Mar 25
4
Prototype: toggle() not supported on TD in IE?
The following line causes trouble both with IE 6&7: cels[i].toggle(); It tells me that this element does not support the property or method. The element is a cell (TD) which I checked by outputting the tagName and it works with FF, Opera and Safari. The IE script debugger stops at this line but I didn''t find a single posting on the net with a similar problem which is kind of strange.
2006 Apr 07
4
Effect.toggle error in 1.6.1
I have this line of code: new Effect.toggle(document.getElementsByClassName(''modarea'', Event.findElement(ev,''li'')), ''blind''); I''ve confirmed that the Effect.toggle is indeed getting the proper element, however, I''m getting this in my javascript console: element.visible is not a function (effects.js: line 153) I
2005 Oct 17
11
a better question
I''m trying to call a click() event on an <a href> that has an Observable registered for it. Something like: <a href="#" id="toggle_1929">show</a> ... Event.observe("toggle_1929", ''click'', function(event){ Element.toggle ("group_1929"); return false; }); ... $("toggle_1929").click(); //this throws
2005 Dec 22
0
RE: Re: ajax - multiple updates on singlexmlhttprequest
>From looking at the Prototype code, it looks like any text in the ''X-JSON'' header will be eval''d and passed as the second parameter to your onSuccess handler. Your handler function could then be (using all the power of Prototype): var handlerFunc = function(t, json) { // Update info container Element.update(''someId'', json.foo); } But your
2006 Jan 16
4
how di i stop a running effect?
Hi, i need some help with Effect.Appear/Effect.Fade i would like fade in and out an element on hovering an element(-> tooltip behavior), but when i''m using Effect.Appear/Effect.Fade both effects will continue to play and overlap each other, resulting in unpredictable behavior. <code> <button onmouseover="Effect.Appear(''test_div2'')"
2006 Dec 26
1
One content at a time - Effect.toggle
Hi everyone, I am creating a web page which has many links to hidden <div> content, which on clicking reveals the <div> through "Effect.toggle Blind". When i click one link the corresponding <div> blinds down, but when i click some other link the first <div> still persists and won''t blind up. Can anyone please tell me how should i get to work such that
2007 Nov 07
5
Prototype error - iterator is not a function
I''m starting to learn to use Prototype (v1.5.1.1) along with Mootools. However I keep bumping into the same problem: All of the inserts result in the error "iterator is not a function" at line 542 of Prototype memo = iterator(memo, value, index); Am I missing something obvious here? I''m wondering if there''s an incompatibility between Prototype and Domino
2005 Oct 19
6
how to prevent "blinking" when adding an element with an effect
Hi, I add a div to my document and use an effect to make it apear gracefully. Unfortunatly, when adding the element, the element apears shortly, then the effect (slideDown) lets it apear nicely - so the page flickers abit - What is the best practice to avoid it? Cheers, Ron
2005 Dec 21
5
ajax - multiple updates on single xmlhttprequest
Hello, I was wondering whether anybody would share a working example of a multiple html update on a single xmlhttprequest. Thank you in advance for your help. _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement