Displaying 20 results from an estimated 5000 matches similar to: "each()"
2006 Feb 07
2
Question about Classes.
I have the attached class that I''m writing. The problem that I''m
running into is that I can not access the options from the createArray
function which get called after the ajax request gets done. I want to
move the values of the xml file to an array and story it in the options
variable. Can someone explain what I''m doing wrong?
var LeaderInfo = Class.create();
2007 Jun 14
4
How to convert a table to JSON (or to Javascript array)
Is there a way to retrieve an HTML table in javascript and convert it
to JSON using prototype?
I''m stumped :(
phil
--~--~---------~--~----~------------~-------~--~----~
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
2008 May 05
1
get element by property
I''m fairly new to Prototype and I was wondering if anyone can help me
out here.
i need to search the document for elements with a specific innerHTML.
I have the innerHTML string already, but i dont know how to find the
elements with that property.
thanks,
andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2006 Mar 03
6
[PATCH] Effect.Accordion (not from the wiki)
Hello boys and girls
In the ever-loving spirit of OSS, here''s another feature for s.a.u.
In particular it''s called Effect.Accordion, and is a scriptaculified
version of openrico''s Accordion.
Work in progress, I''ll submit further modifications as the come in, but
this is 90% of what needs to be done. I anticipate some bugs when I
start using it more.
Tested
2006 Mar 07
1
Ajax.Responders- how to get responseText?
Hi All. In my site I have situation that I always want to execute some piece of code when AJAX call happen. I am using function onCreate and onComplete from tutorial:http://www.sergiopereira.com/articles/prototype.js.html
but I don''k how to manipulate Ajax responseText in this function. Does anyone know how to do it?
Gregor
----------------------------------------------------
Zagraj o
2006 Feb 23
25
reloading fragments of pages
Hello,
I have a treeview, that works with scriptaculous in order to load the nodes
dynamically.
I also have in the main part of the page, a table with the list of elements.
The lists of elements can be drag-dropped on the treeview in order to move
them around
(they are also draggable on other parts of the page)
I need though, to refresh the treeview to reflect changes when a folder was
moved
2005 Nov 08
1
Event.observers - I''m totally list - please help
Hello,
I need some help on how to use the Event.observers - thank you in advance
for your input.
<div class="navcontainer">
<ul id="nav">
<li class="button">
<img src="images/spacer.gif" width="20" height="20">
</li>
<li class="button">
<img
2005 Sep 18
3
Attaching effects during onload
I''m trying to attach effects to elements in my onload handler and my
lack of Javascript-fu is showing... I want to call the effect from
the onclick handler of an anchor inside the div I want the effect to
apply to. Here''s what I''m trying to do:
function doOnLoad() {
var filters = document.getElementsByName(''filter'');
for
2006 Jun 28
3
Add to enumerable
This might seem like a really daft question, but I couldn''t find an
answer anywhere. How do you add something to an enumerable object?
Something like
var first = $A(getElementsByTagName(''td''));
var second = $A(getElementsByTagName(''tr''));
first.PUSH(second);
where the PUSH is something unknown.
am i supposed to use inject here in some way?
Andreas
2005 Dec 28
1
Problem with IE
Hi there, let me introduce myself, i am a web developer from venezuela, my
english is not the best, sorry by that...
i am developing a form builder, is simple, just dragging form elements to a
droppable container, all works well but im showing to my friends and...
surprise!!! doesn''t work in Internet Exploiter, i am a linux user with
firefox, im looking in internet how fix it but i dont
2006 Jul 24
15
XML Question
I''ve got an XML file which is pretty well structured. I need to retrieve
specific elements from that file to fill out empty HTML elements on a page.
I think what I need is xPath? Or - is that overkill? Is there some easier
way to locate an XML element?
What I have in mind is pulling the XML file using Ajax, then xPath to get
the bits I need.
Am I on the right path and does
2006 Mar 17
10
good javascript xml parser
Anyone know of a javascript function that will take an xml document and
turn it into an associative array?
Basically it would take something like this:
<body>
<item>
<id>1</id>
<name>Bob</name>
</item>
<item>
<id>2</id>
<name>John</name>
</item>
</body>
And turn it into something like this:
{
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" />
2006 Feb 20
1
[Prototype] onSuccess Event and Ajax.Updater bug in IE
Hi all,
Is there a known bug with Ajax.Updater not working in
IE6? I''m having
trouble with a Autocompleter control that calls a
function that contains
an Ajax.Updater as an AfterUpdateElement callback. It
works fine in
firefox, but I don''t think Ajax.Updater gets called
under IE.
http://pastebin.com/563889
1.
function updater(input, item) {
2.
var
2006 Apr 12
11
innerHTML and scripts not running
Hello,
I''m having an issue with getting embedded javascript code to actually
run when loaded via an Ajax.Request() call and the callback function
inserts the generated HTML and js code to my current page. It seems
that the javascript code is not properly parsing.
For example, I''m using the following function showinfo() to return
some html code.
function showInfo(go_url){
2007 Oct 25
4
""throw $continue" is deprecated, use "return" instead"
I am using the firebug plugin to debug my javascript code, and I get
the following message while debugging. Anyone familiar with this
error?
See my code below:
<title>My Test </title>
<script src="json.js" type="text/javascript"></script>
<script src="prototype.js" type="text/javascript"></script>
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
Joe,
After removing all occurrences of charset=utf-8 from
my headers I am
still getting the same bug in IE.
Currently, it''s Content-Type: text/html
Any other suggestion?
Nathan.
> Message: 2
> Date: Mon, 20 Feb 2006 09:13:57 -0500
> From: "Joe Hudson" <joe-x8g0hQFNjJhWk0Htik3J/w@public.gmane.org>
> Subject: RE: [Rails-spinoffs] [Prototype] onSuccess
Event
2006 Jan 31
5
resizing multiple images using getElementsByClassName
I am building a iPhoto like (Read rip-off) interface for thumbnails
and I am having a couple problems that I thought some one on the list
might be able to assist me on ...
first off here is the page: http://v4.incontrolsolutions.com/galltest/
I am no Javascript whizz and I am sure there is a FAR more efficient
way to do what I am trying. Having said that, the 2 things I was
looking for
2006 Mar 23
2
ajax replace div
Hi,
Using form_remote_tag methode, is there a clean way to
directly replace the content of a given div instead of just update it ?
If I destroy the content of the div using this code:
:success => ''$(\''mydiv'').innerHTML = \''\'''',
It works. But it''s not really a clean way...
Any suggestions are very welcome..
Thanks.
Seb
2006 Mar 16
20
help with each
can you please tell me why this is not working? i got the example for how
to use each online and copied it to a t (except i added the if). its
telling me items.each does not exist.
var items = document.getElementsByClassName(''editView'');
if (items.length > 0){
items.each(function (result){
thisid = result.id;
thiskey = thisid.replace(/se_item_/gi, '''');