similar to: Element.show / Element.hide

Displaying 20 results from an estimated 10000 matches similar to: "Element.show / Element.hide"

2006 Apr 07
6
ajax loading message
Hello, I''m looking for some help - I''m having problems in getting the loading message to disappear - sometimes it disappears, sometimes it doesn''t. This is the javascript I have: ajaxContent: function(iTabPos) { if (isNaN(iTabPos)) return false; var iTabIndex = this._posToIndex(iTabPos);
2006 May 02
6
Stopping the Ajax.PeriodicalUpdater -- My Kludge?
Well, I''ve been burning the midnight oil trying to figure out how to issue the stop() command to a PeriodicUpdater. I''ve come up with a solution that uses setTimeouts to call the stop function. I think my solution is very kludgey... especially since I''m new to Javascript + Prototype. Can anyone let me know if the below code is at all proper? :) --------- Summary: A
2006 Mar 03
3
xml handling
Hello there, im having a problem with the xml handling, i want to get and xml node and put things in an input text but im a little lost, im using this code, but isn''t work, what am i doing wrong? --------------------- <a href="#" onclick="getXML()">Get XML</a> <input type="text" value="nothing here" id="respuesta" />
2005 Dec 21
1
RE: Prototype: correct useage of onComplete withAjax.PeriodicalUpdater
>From a quick look at the source code, it looks like onComplete is only called when the whole thing is done - in the case of Updater, right after the update, in the case of PeriodicalUpdater, right after it has been stopped. It looks like you need to pass your callback method as an ''insertion'' method in the options. This takes two parameters, the first will probably be the
2005 Dec 21
1
RE: Prototype: correct useage of onCompletewithAjax.PeriodicalUpdater
The only call that PeriodicalUpdater will make periodically to you is the insertion call. I think of onComplete as being ''I''ve done everything I was going to do'', which for Updater is right after it''s done a single update, but for PeriodicalUpdater, it''s after it''s finished all of its updates, so you''ll only get it once for any call
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 Mar 23
4
XML parser fixed
Hi, I changed the XML parser who have been write by Greg (Gregory Hill) and changed some things. It did not work in IE and Safari and opera. I fixed some bugs. Now it works fine in IE, Safari, Firefox and Opera. /* --------------------------------------- */ XMLParser = Class.create(); Object.extend(XMLParser.prototype, { initialize: function (XMLFile, options) {
2005 Dec 21
0
Prototype: correct useage of onComplete with Ajax.PeriodicalUpdater
Hello all, I know it''s a Prototype question, but I hope someone can tell me what I''m doing wrong (I hope Prototype gets documented soon ;-( Problem: using a onComplete callback with Ajax.PeriodicalUpdater (using scriptaculous 1.5 with Prototype 1.4) Works: function fooBar() { Element.hide(''foobar''); } new
2006 Mar 22
3
document.write() in ajax response
Hi, I am facing a problem and the description is as follows - I have a page 1.html that does an Ajax.Updator & calls stuff from 2.html (that has some html snippet & some javascript). So far so good - things work fine. However, if 2.html had any document.write code - eg document.write(''hello'') then once the response is received it will be rendered till the point
2005 Dec 04
5
Javascript Logging
Hello Everyone, Just wanted to find out if scriptaculous has a patch for a error logging class? Currently, I have found 2 javascript logging scripts (outside of scriptaculous). Lumberjack: http://gleepglop.com/javascripts/logger/ log4js: http://jroller.com/page/stritti?entry=logging_in_javascript_log4js Could you guys shed some light on what would be a good logger class to use with our
2005 Oct 18
3
Ajax.Request / XmlHttpRequest details
Does anyone know a good reference for the various statuses that XmlHttpRequest''s readyState property can have? I mean, I know what the states are, but I''m unclear on the circumstances under which each occurs... In a simple test I wrote, I''m seeing the loaded, interactive and complete states (i.e. my Ajax.Request instance calls its onLoaded, onInteractive and
2006 Mar 18
2
Additional link tag attributes with link_to_function...
Hi, I''m having a bit of a struggle with link_to_remote. Everything works exactly as I want it, but the problem is that I want to add another attribute to the <a>-tag, namely class="". Long story short, I want specific links to look differently from others, but all of them being link_to_function. Normally, I''d do this with adding a class="foo" to
2005 Oct 27
3
String.protoype.toQueryParams
Hi, I am trying to play with all the methods in the Array Object. Just wanted to check with you guys if this is the correct explanation of toQueryParams(). If yes, then I''ll add it to the documentation as well. Works for me (but I am not sure if it''s the correct way to use it). /* String.prototype.toQueryParams takes a query string, i.e, string with name value pairs
2005 Dec 15
3
Generic Question about the way code is written
Hi, This is a generic question about the way code is written in prototype and scriptaculous libraries. Inside every object, we find functions that begin with "_". How are these methods/functions different from the rest? eg _text, _attributes, _each... Please let me know. Thank you, Mandy.
2006 Jan 16
2
Problem with AJAX not working on IE
I''m having a problem making this code to work on IE: var Permit = { // Expand permit information onMore: function(id) { new Ajax.Updater(''pm-''+id+''-lg'', ''/employees/sign_permit_lg/''+id, {asynchronous:true, evalScripts:true, onLoading:function(request){
2005 Dec 09
5
Prototype Enumerable, Array and Hash Documentation
Hey guys, I recently published an article documenting some of the more useful and interesting parts of Prototype''s Enumerable, Hash and Array objects. You can find it here: http://encytemedia.com/blog/articles/ 2005/12/07/prototype-meets-ruby-a-look-at-enumerable-array-and-hash If you have any feedback or suggestions, fire away. Cheers, -Justin Palmer
2006 Feb 24
1
RE: Appending <tr>''s to Table - Images in<tr>''sloading slowly.
I tried the same thing Ryan - tried preloading the images using javascript once and then using CSS (heights of desperate behavior ;) But no Luck! But, IE is misbehaving in this respect. The application behaves fine once loaded. But, each refresh sucks! Only if I knew why this was happening ... :) Thanks anyway, Mandy.
2006 Jan 20
3
disabling drag''n''drop features on some areas
Hi, I have implemented the drag and drop feature to move around some divs, but I have a small side effect i am trying to clear: When the draggable div contains links, and if the user grab the div on the link, the drag is done but the link is also visited, leading to unwanted issues. What I''ve tried to do is to look for all ''a'' tags in the draggable elements in order
2005 Dec 08
2
Prototype.js Hash Methods
Hi, Has anyone seen any documentation on the Hash Object defined in the prototype library? To be precise the following methods - 1. keys 2. values 3. toQueryString 4. inspect 5. Merge I am trying to play around with them and have come up with the following examples - var h = $H({name: "john doe", email: "john-Ch9RrZxMC0c@public.gmane.org", msg: "say hello to
2006 Feb 07
1
Help needed with conflicting EventObserver
Hello everyone, I have a page that populates/updates make, model and year select lists via Ajax.Updater and I think that an EventObserver is causing a conflict. Here''s what I''m trying to do. I''m using this page as a create and edit page for a car database. If I''m calling the page in edit mode, I''ll want the make, model and year set (using the