I have an RJS template that does the following
page.insert_html :bottom, “some_id”, ‘
This works just find in safari and firefox. In IE and Opera it doesn’t
work so great. Any ideas? Am I doing something wrong here?
I have an RJS template that does the following
page.insert_html :bottom, “some_id”, ‘
This works just find in safari and firefox. In IE and Opera it doesn’t
work so great. Any ideas? Am I doing something wrong here?
Ben J. wrote:
I have an RJS template that does the following
page.insert_html :bottom, “some_id”, ‘
’ This works just find in safari and firefox. In IE and Opera it doesn’t
work so great. Any ideas? Am I doing something wrong here?
That might be because IE can only insert tr elements in a
, andSander L. wrote:
Ben J. wrote:
I have an RJS template that does the following
page.insert_html :bottom, “some_id”, ‘
’ This works just find in safari and firefox. In IE and Opera it doesn’t
work so great. Any ideas? Am I doing something wrong here?That might be because IE can only insert tr elements in a
, and
not in a.
Try adding a tag.Thanks for the help.
It seems as though firefox can’t insert into tbody tags. I guess it’s a
lose lose situation unless someone has another suggestion.
It seems as though firefox can’t insert into tbody tags. I guess it’s a
lose lose situation unless someone has another suggestion.
we just avoid using tables for layout and use
Brez! !! wrote:
It seems as though firefox can’t insert into tbody tags. I guess it’s a
lose lose situation unless someone has another suggestion.we just avoid using tables for layout and use
exclusively…
another option you might be able to use though is a?
The reason I’m using a table is because the data is tabular data. We
need to be able to have everything organized in columns etc. Oh well, no
big deal.
Sander L. wrote:
Ben J. wrote:
Ben J. wrote:
It seems as though firefox can’t insert into tbody tags. I guess it’s a
lose lose situation unless someone has another suggestion.This:
works for me in both IE and firefox.
Are you sure the tbody is the only element with some_id ?
Yes, I just viewed the source and did a find for the id and it only
found one instance of the id. It might have something to do with my
layout. I’m not sure.
Ben,
Had this problem and it took me hours.
It uses the prototype insert method, and it doesn’t work when trying to
insert into tables.
To get it to work you have to use a tbody tag instead of a table.
page.insert_html :bottom, “tbody_id”, ‘
Ben J. wrote:
Ben J. wrote:
It seems as though firefox can’t insert into tbody tags. I guess it’s a
lose lose situation unless someone has another suggestion.
This:
works for me in both IE and firefox.
Are you sure the tbody is the only element with some_id ?
On 8/1/06, Ben J. [email protected] wrote:
I have an RJS template that does the following
page.insert_html :bottom, “some_id”, ‘’
‘some_id’ probably shouldn’t be the target of your insertion and
also the id of the inserted element. You need the id of the
page.insert_html :bottom, ‘table_id’, ‘
’This works just find in safari and firefox. In IE and Opera it doesn’t
work so great. Any ideas? Am I doing something wrong here?
Manually adding
tags seems to help.On Aug 2, 2006, at 2:38 AM, Ben J. wrote:
Ben-
Try it like this, it works for IE, firefox and safarti:
With your table, ensure that you have the proper
tag around
|
|||
|
And you should be able to use RJS like so…
page.insert_html :bottom, params[:row], render(:partial =>
‘rowHelpInfo’)
Cheers-
-Ezra
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs