Ajax scaffolding respones are received, but not rendered in


#1

Hi i installed the latest ajaxscaffolding gem and generated a scaffold.
List works fine. Delete deletes, but the update doesn’t show and the
busy
icon spins indefinitely. Pressing new or edit also causes the busy icon
to
spin, but again the ui doesn’t update.

my development.log indicates the request was handled and (using firebug)
I’m
seeing this response:

new Insertion.Top(“message-tbody”, "\n<tr
id=“message-create-1146611248468-row” style=“display:none;”>\n

\n \n \n \n \n \n

Create Message

\n\n \n
\n \n \n \n\t
\n\t\t\n\n Referenced object\n \n
\n\n
\n Referenced object table\n \n
\n\n
\n Title\n \n
\n\n
\n Message text\n \n
\n\n
\n Deleted\n True\nFalse\n
\n\n\n Updated\n \n2001\n2002\n2003\n2004\n2005\n2006\n2007\n2008\n2009\n2010\n2011\n\n\nJanuary\nFebruary\nMarch\nApril\nMay\nJune\nJuly\nAugust\nSeptember\nOctober\nNovember\nDecember\n\n\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n\n — \n00\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n\n : \n00\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53\n54\n55\n56\n57\n58\n59\n\n\n\n\n\n Updated by\n \n\n\n
\n Lock version\n \n
\n\n\n\n\t\n\n \n

\n \t\n \t\n \tCancel \t \n \t\"loading
indicator\"\n \t

\n \n \n\n"); Element.show("message-create-1146611248468-row"); Form.focusFirstElement('message-create-1146611248468-form'); new Effect.Highlight("message-create-1146611248468-cell",{}); Element.update("message-create-1146611248468-messages", "\n \n\n \n\n \n\n\n\n\n"); Element.hide("message-new-loading-indicator", "message-empty-message");

I think this ok as well (but not entirely sure).
There are no javascript errors reported in the javascript console or in
firebug.

I pasted my ddl below, if that might help. I’m wondering if there’s
something about the data that could be causing an issue.

I’m using Rails 1.1.2 withFirefox 1.5.0.2 on Windows.
I tried IE 6 as well with the same result.

Any help would be much appreciated.

CREATE TABLE message
(
id serial NOT NULL,
referenced_object int8 NOT NULL,
referenced_object_table char(20) NOT NULL,
title varchar(255) NOT NULL,
message_text text,
deleted bool NOT NULL DEFAULT false,
updated timestamptz NOT NULL DEFAULT now(),
updated_by int8 NOT NULL,
lock_version int4 DEFAULT 0,
CONSTRAINT message_pkey PRIMARY KEY (id)
)


#2

On 5/2/06, Larry W. removed_email_address@domain.invalid wrote:

Hi i installed the latest ajaxscaffolding gem and generated a scaffold.
List works fine. Delete deletes, but the update doesn’t show and the busy
icon spins indefinitely. . .

I had similar (but perhaps not the same) troubles on Windows boxes.
The generated .rhtml files had invalid (unix-style, perhaps?) tabs at
the beginning and sometimes at the end of the lines.

Converting the tabs to spaces (TextPad can do this automatically)
solved the problems.

It might not be your problem, though, because I was able to see errors
in my development log, but the symptoms were exactly the same.

-eric


#3

thank you, i’ll try that.


#4

I have the same problem, did anyone solve this problem.

Regards

Per

On 5/2/06, Eric W. <eric at ericwagoner.com
http://lists.rubyonrails.org/mailman/listinfo/rails> wrote:

/
/>/ On 5/2/06, Larry W. <ljw1001 at gmail.com
http://lists.rubyonrails.org/mailman/listinfo/rails> wrote:
/>/ > Hi i installed the latest ajaxscaffolding gem and generated a
scaffold.
/>/ > List works fine. Delete deletes, but the update doesn’t show and
the
/>/ busy
/>/ > icon spins indefinitely. . .
/>/
/>/ I had similar (but perhaps not the same) troubles on Windows boxes.
/>/ The generated .rhtml files had invalid (unix-style, perhaps?) tabs
at
/>/ the beginning and sometimes at the end of the lines.
/>/
/>/ Converting the tabs to spaces (TextPad can do this automatically)
/>/ solved the problems.
/>/
/>/ It might not be your problem, though, because I was able to see
errors
/>/ in my development log, but the symptoms were exactly the same./