Displaying 20 results from an estimated 10000 matches similar to: "JSON not auto-evaluated"
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 25
7
Hide content before page load
Hi,
i''ve been experimentating with dynamicCSS.js [1] to hide content only if
JavaScript is enabled. It works pretty well and fires before onload to avoid
the flash of visible content. Now i''m wondering if there is a Prototype way
of doing this.
[1] http://www.bobbyvandersluis.com/articles/dynamicCSS.php
My main problem is that Prototype functions like Element.toggle() do
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
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 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 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 May 09
9
Tooltips v1.1 Released
All --
Thanks to those who sent me input! I'm proud to release my tooltips
version 1.1 into the wild; it can be downloaded here:
https://boygeni.us/svn/tooltips/tags/release-1.1.0/
Changes include:
* Rendering constrained to viewport
* User-defined effects options
* MIT License
Tested under Safari 2, IE 6 (strict) and Firefox 1.5
You can demo the sample app here:
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 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
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 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 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
2007 Apr 12
6
JSON handling in Prototype 1.5.1_rc2
Hi,
I try to use the JSON encoder/decoder on JSON string receive from an
HTTPRequest.
And it failed to handle characters with accents (çéèà...) giving me an
parsing Exception.
I think because the convertion from string to object is a simple
eval !
This make Protoype unusable for non americain characterset
application ! Or I miss something !
Sad !
Constant
2006 Feb 09
22
Length of parameters in Autocompleter.Local()
Hi,
I''m using PHP to fill my parameterlist for Autocompleter.Local as
shown in the example
(http://wiki.script.aculo.us/scriptaculous/show/Autocompleter.Local).
<script type="text/javascript">
new Autocompleter.Local(''recipeNameAlternative'', ''rezept_list'', [
<?php $ende = count($rezept_vorgabe);
for ($i=0;$i<$ende;$i++) {
2005 Sep 25
14
script.aculo.us 1.5 release candidate 1
So, the first script.aculo.us 1.5 release candidate is out!
Important changes and fixes from 1.5_pre4 (for a detailed list, see
the CHANGELOG file):
* Droppables w/greedy and hoverclass are now reverted when dragged
item is no longer over them, fixes #2184
* Let Effect.Highlight correctly parse IE colors, add
String.prototype.parseColor() for this, fixes #2037
* Make scriptaculous.js work
2006 Feb 08
29
Autocomplete and Firefox
Having problems with the autocomplete on my linux box and firefox.
When I use form tags it breaks, without form tags everything works fine.
Exact copy of the example provided, but I added form tags.. The initial
search and select works but then the box sort of "locks up" and I can''t
change it at all, If I do try to type something nothing changes but a
second later the whole
2007 Jun 04
2
Re: Ajax.Request question with JSON return
Do I need something like this:
eval(''('' + this.header(''X-JSON'') + '')'')
(taken from Cody Swann,
http://ajaxian.com/archives/prototype-extension-dynamic-script-pattern-support
).
I''m guessing my problem is simpler, and I''m leaving something small out
related to the header though.
Thanks for any help
-Mark
1. evalJSON:
2005 Sep 30
5
Converting text into a javascript array
Hey Guys,
I know this isn''t specific to scriptaculous libraries but it''s something
that I''m exploring as I use the ajax functions in prototype. My
application server is not rails but java and I was thinking of returning
a javascript array in the ajax response. When I get back my response is
it, of course, text and I''m not sure how best to convert it into