Displaying 20 results from an estimated 10000 matches similar to: "prototype and json"
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
2007 Jun 09
4
Prototype Question
I''m trying to apply a css class to all LI elements that are children
of an element with the ID "idSelector".
This is what I did and it works. But I was wondering if there was an
easier way without having to use an anonymous function?
$$("#idSelector li").each(function()
{ arguments[0].addClassName("myClass") });
Thanks in advance.
2007 May 06
2
prototype setStyle (background-image) relative url problem
Hi there,
hope I can explain this one! When I try to use a setStyle call and set
the backgroundImage property of an element, I''m having some problems
using a relative URL.
my directory structure is this:
SERVER_ROOT/context/javascript/tree.js
SERVER_ROOT/context/style/tree/tree.css
SERVER_ROOT/context/images/node_icons/open.png
SERVER_ROOT/context/images/node_icons/closed.png
in my
2007 Jun 01
5
il8n with Prototype
I''d be grateful for feedback regarding the following:
/* Iterate over elements and lookup translation for language in JSON
dictionary */
function translateChildren(parent, language) {
var phrases = parent.getElementsByClassName(''lang'');
phrases.each(function(p) {
var phrase = p.readAttribute(''for'');
p.innerHTML =
2007 Feb 23
4
Does Ajax.PeriodicalUpdater have a shield against multiple parallel executions?
Hello
Does Ajax.PeriodicalUpdater have a shield against multiple parallel
executions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email
2008 Jan 31
7
Ajax.InPlaceEditor via PHP via prototype widows class = HELP :-)
my window comes up fine and builds a page from some PHP which is all
kosher. this is what the source of the "window" looks like:
-----------------------------------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2007 Jul 19
3
InPlace[Collection]Editor rewrite: it's in trunk!
Hi all,
For those of you who don''t follow Thomas Fuch''s blog, know that a
complete rewrite of InPlaceEditor / InPlaceCollectionEditor just made it
into the trunk.
You''ll find all the juicy details on Thomas'' post:
http://mir.aculo.us/2007/7/17/in-place-editing-the-summer-2007-rewrite
Do note that this is my rewrite, so if you find bugs etc., don''t
2007 Feb 23
7
Vanishing Globals
Gents,
I have what I thought was a simple scenario, but IE seems to have
found a way to make it difficult: I am creating pairs of drop-downs of
times of the day (9:00, 9:15, ...) on the fly (using AJAX) and want to
be able to adjust the displayed difference between them in hours
onChange and store this information in a global hash.
Straightforwardly enough, I simple use Event.observe to set up an
2007 Jul 10
9
Other parameters on InPlaceEditor
Hi to all,
I have a doubt on like passing other URL parameters to InPlaceEditor
function.
For Ajax.Updater I can use "parameters:", but for InPlaceEditor (or
InPlaceCollectionEditor) I cannot use "parameters". How I make to pass
other parameters to the page that callback?
A sample code:
----------------------------------
var editor= new Ajax.InPlaceCollectionEditor(el, url,
2006 Sep 29
3
no setClassName or removeAllClassNames in prototype - why?
Often I have the need to set one class name to an element. I don''t care
what was there before, just remove it and set it to the new class. I
don''t see any easy way to remove all the class names or to set just one
class name. Why is this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2006 Nov 27
7
3 prototype/scriptaculous effects in order on one <div>
What I am trying to do is fade out the content in a certain <div> load
new content while its black then fade in the new content but im lost.
I need it to go like this...
Effect.Fade,Ajax.Update,Effect.Appear
but everytime I try to do it it just trys to do all of them at once,
how do I go about making the effects wait on the previous one before it
starts?
2007 Jan 26
3
Newbie question.
Sorry for my ignoreance I''m kind of new to this....
I have a requirement for a page that essentially consists of three
"DIVS".
DIV1 - This is static, it has a bunch of links that initiate a AJAX
request to populate DIV2
DIV2 - Populated as a result of a request initiated from DIV1.
- This needs to have further links that will initiate a AJAX
request to populate DIV3.
2007 Feb 18
11
Tabulation with ENTER key
Dear all,
I think this can be interesting for others too. For a while I tried to
solve that problem - how to tabulate with ENTER/RETURN key too and not
only with TAB.
You know the problem - you are entering a lot of numbers from numeric
keypad but you need to go far left to press TAB. This prevents one-hand
data entry and prohibits web apps to be used by accountants, for instance.
Here is a
2007 Jun 09
23
hoverclass on droppable zone
Hi guys,
I''m trying to make a drag''n''drop portal using sortable element. I
would like to apply the "hoverclass" option only on the droppable zone
instead of the column border.
Any idea a about the solution?
Thanks for any help,
Sabri
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2007 Jan 19
7
Prototype.js: Is there an "in_array"-like function?
Hi
i was wondering if there is a quick way to search for a item within an
array. Here is my approach for this functionality. It''s an prototype
for an Array method called "has":
Array.prototype.has = function(needle) {
for (var i=0;i<this.length;i++) {
if(this[i] == needle){ return true; }
}
return false;
}
var someArray = [''jim'',
2007 Feb 02
2
Quick Element.getElementsBySelector() question
Hi,
Does this code should works ?
elm.getElementsBySelector(''UL.class1 > LI.class2'');
I have an error caused by "UL.class1 > LI.class2"
- Does CSS Selector ">" works ?
- What is the exact ? may be "UL.class1>LI.class2"
Regards,
--
Jean-Philippe Encausse - R&D Jalios SA
Jp [at] encausse.net - http://www.encausse.com -
2007 Apr 13
2
Sortable - Droppable interaction
Hi there,
I''m started to use scriptaculous yesterday and it''s really great.
Hovever, there is one problem that I cannot solve:
I have a page with a sortable list and a droppable "trash can". I
would like to drag and drop items between the list and the trash can,
but it don''t work. Which options should I set to make it works
correctly?
Thanks!
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
2006 Oct 27
16
Returning coordinates of a draggable?
How difficult would it be to get the x and y coordinates returned of a
draggable?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
2007 Jun 11
2
Column sort of checkboxes
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I''ve gleaned a lot of good advice from reading this group and I''m
hoping for more