Ajax doesn't show at the right place

Hi,

I use link_to_remote to create a link to trigger an
ajax, things work fine, a new rhtml is created,
however, the newly created rhtml doesn’t replace my
old zone, it shows instead on top of my old
zone…Does someone know why???

my code is like

Reset All
titi tata

Thanks you very much

Saiho


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

You have to replace a whole block… not a tr or a td… the whole table.

pmt

Saiho sayoyo wrote:

Reset All
titi tata

Saiho–

Actually you can simply replace a row if you like in your table:

~d

In Firefox 1.+ and IE 6.+ the below code works quite nicely.
Other browsers, I am not sure as they are not a requirement of the
current
project I have it implemented for.

Thanks,
~d

Actually, I don’t think

is valid inside a tag… only
or . You’d
want to replace the . Not sure how well all the browsers deal with
that though…

b

“work” != “valid”

b

Ben–

Can you please define what you mean by valid?
In Firefox using the HTMLValidation plugin, the page is valid.
I don’t know what else I need to do to make this “valid”.

Thanks,
~d

Thanks you very much for the information:)!!!

— Damon H. [email protected] wrote:

http://lists.rubyonrails.org/mailman/listinfo/rails

The mind is its own place, and in itself.
Can make a Heaven of Hell, a Hell of Heaven.


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

Damon H. wrote:

Ben–

Can you please define what you mean by valid?
In Firefox using the HTMLValidation plugin, the page is valid.
I don’t know what else I need to do to make this “valid”.

Really? Well maybe I have some bad info then… What I found online was
that the only
valid children of are and . Did you try running the page
through the w3c
validator? (http://validator.w3.org/) Maybe there are some settings in
the plugin that’s
allowing this to pass?

I just tried taking a valid xhtml 1.0 transitional page and adding

some
stuff
” to it and the validator complains that

is not in a valid location, nor is the text inside it valid.

b

Ben–

I am not sure why it isn’t complaining about the it could be
that
the plugin is indeed “fixing” the problem.
Beats me.
What happens in my case is the

<tdbody></tdbody>

is replaced by a lot of

data when the ajax action is completed.
maybe the resulting page is valid??

thanks,
~damon