Displaying 20 results from an estimated 1000 matches similar to: "Problem replacing form element with another form"
2007 Feb 12
18
document "expando" properties broken in Konqueror
I noticed that some of my event handlers and scripts evaluated in ajax
responses didn''t work in Konqueror (3.5.5).
document.getElementsByClassName is not defined in these contexts.
I can work around this, by saving document.getElementsByClassName in a
(namespaced) global variable once and reassigning it before each use.
Still, this misfeature is annoying and not restricted to this
2007 Jul 26
4
populate select box by ajax query with Prototype and IE7
Trying to populate a select box with a value passed in from another
select box works great in Firefox, but using IE nothing happens, no
data is getting returned back. I commented everything out and put
alerts in there and the alerts work in IE but when ajax is getting
used it seems to just die...Is this a bug or what am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You
2006 Jan 08
2
Replacing an html chunk with a different html chunk
All,
I''m a big fan of the Insertion.* classes in prototype
(Insertion.Before, Insertion.After, Insertion.Top, Insertion.Bottom).
These classes solve the problem of adding new html to existing html
in the desired place. Very useful.
But what about replacing one chunk of HTML with another? Or removing
a specific chunk of HTML? These tasks come up just as often.
1)Am I correct that
2006 Jan 09
6
drag and drop problem
I am working on a resource planning problem. I like to use a nice drag
and drop interface for that. E.g. have a box of persons and a box of
projects, now I would like to assign a persom to project by dragging it
from the available resources box to a recieving project box.
I have studied the amazing drag and drop shopping card code listed here
http://demo.script.aculo.us/shop
What I need to
2008 Jun 19
2
Capturing draggable revert
I''ve seen a few posts about this, but no answers.
I would like to be able to call a function when a draggable revert
occurs. What I''m trying to do is replace a photo with an icon on drag
(which I''ve accomplished), but I need to swap it back if the revert
fires.
I really, really wish there were an onRevert() option, but there
isn''t, so I guess I''ll
2005 Jul 18
2
scriptaculous dragdrop.js empty list problem
Hi,
I''ve just been having a look at the scriptaculous drag-n-drop library, which
looks exceedingly good. I''m running across a show-stopper here, though -
something that''s cropping up in both the online demos and my own test scripts. If
I set up two lists so that I can drag items between them, then if either list
becomes empty, I can''t drag elements back into
2007 Sep 14
6
Spam?
Hey Guys,
I just joined this list a couple days ago...what''s up with all the spam?
I maintain about 8 or so googlegroups lists and have never received any
<cross fingers>. Is this something to (unfortunately) look forward to?
--
______________________________________________________________
Clayton Dukes
______________________________________________________________
2005 Jul 12
8
Tip Sheet for AJAX
Hi all,
I''m making an Amy Hoy style tip sheet PDF for the Prototype and
Scriptaculous AJAX stuff, to be used with Rails. Are there other
resources you would suggest besides the websites themselves (the
previous thread about Highlight reminded me of this)? Is there a
particular focus that would be helpful for such a document? Preferred
fonts or colors?
I must say, once you get
2007 Jul 10
6
Having trouble using data returned by Ajax.request
Hello everyone, I''m new here.
I''ve been working with prototype and plotr for about a month now, off
and on, and I have pretty much hit the wall on using the data returned
by Ajax.Request.
I''m using some php code to return a string:
{''foo'': [[0,0.0865334429075127], [1,0.0828179861705063],
[2,0.0828173042602942], [3,0.0841707718624196]]}
But I keep
2007 Jan 10
4
Firefox Redraw Time
While not directly related to prototype/s.a.u. I thought this would be
the best place to pose this question. I apologize, if it''s off topic.
I''m working on an interface where I have a bunch of list items floated
to the left in a horizontal fashion. The list is inside a absolutely
positioned div, with an overflow set to hidden.
At one point in my script I have to remove the
2007 Apr 04
2
Simple RJS Calls Not Working
I have a simlple view:
<h2>Tags</h2>
<% unless @recipe.tags.empty? %>
<table>
<tbody id="tags">
<%= render :partial=>''tags/tag'', :collection=>@recipe.tags %>
</tbody>
</table>
<% end %>
<% form_remote_tag :url=>tags_path(@recipe) do%>
2006 Aug 03
6
creating a recycle-bin
Hi all,
I''m trying to create a recycle bin for elements from a Sortable. To do
that I created an <img> (image of a recycle-bin ofcourse) and made it
a Droppable. However what should I do with the element in the onDrop
function of the Droppable to stop it from going back into the
Sortable? How do I remove it altogether from the page?
thanks and regards,
Jeroen
2007 Jun 28
2
img element inside div not accessible with $$() or getElementsBySelector
I can''t access an img inside a div using the $$() syntax. Using
getElementsBySelector doesn''t work either. Both return empty arrays. I
can access it with getElementById, however.
<div id="foo">
<img id="image" src="blah.jpg">
<div id="bar"
</div>
- Using $$(''#foo img'') returns an empty array
- Using
2008 Jan 04
7
1.6 cheatsheet
Hey has anyone seen a 1.6 cheatsheet around?
Johnathan Snook did a nice 1.5 one but I''ve been working with 1.6 for a
while and while I can use prototypejs.org, cheatsheets are handy for jogging
memories..
I checked his blog, nothing there for 1.6.
Gareth
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2005 Sep 27
8
prototype.js
Hi *,
We don''t know if you guys are the right audience, but we got a problem
with prototype.js we need to solve.
Essentially, it is a compatibility bug with the IE.
We wrote a component so it updates itself periodically using AJAX. we used the
prototype.js to accomplish this (using the periodicalUpdater object).
now the component works fine using firefox or opera, but NOT with IE.
the
2006 Apr 27
14
cleanWhitespace and parentNode
Hey cats,
I seem to have ran into a problem in IE trying to use parentNode with
the cleanWhitespace method.
doing something like:
var div = $(''mydiv'');
Element.cleanWhitespace(div);
works really great, but try doing:
var div = $(''mydiv'');
Element.cleanWhitespace(div.parentNode);
or
var div = $(''mydiv'');
div = div.parentNode;
2008 Jun 01
1
Page loading popup
Ran into a strange problem with my app. Had branched off our development
tree and made some significant modeling changes and some view changes here
developing locally not through facebook. When I try to test the code through
facebook now I''m getting a Facebook popup dialog on anypage I try to hit of
our app that just says Loading.
The JS error console shows
Error: this.obj.parentNode
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 13
1
Element.remove parent div
Hi all,
Currently I am using Element.remove like so:
<div class="blurb" id="drag_1">
<a onclick="Element.remove(''drag_1'');" class="remove"></a>
</div>
However I would like to just create a function since I''ll be removing
multiple DIVs and updating the sortable order. I just can''t get some version
2006 May 24
6
enumerables problem?
I was wondering whether anybody could please tell me why this is causing an
error in IE (works in Firefox):
$A(container.getElementsByTagName(''*'')).each( function(el) {
Element.cleanWhitespace(el);
}.bind(this));
What would be an alternative of achieving the same?
Thank you
Marco M. Jaeger | Url: http://mmjaeger.com <http://mmjaeger.com/> | E-mail: