It seems that
page.insert_html :bottom, ‘current-entry’, ‘
will generate
‘div’
tag.
However, this is not i want. What I want is a unclosing tag. So, Is
there
any way to achieve the goal?
thx.
It seems that
page.insert_html :bottom, ‘current-entry’, ‘
However, this is not i want. What I want is a unclosing tag. So, Is
there
any way to achieve the goal?
thx.
On Jun 28, 2007, at 2:11 PM, Ye Dingding wrote:
It seems that
page.insert_html :bottom, ‘current-entry’, ‘’
will generateautomatically. That is, it auto-close
the ‘div’ tag.However, this is not i want. What I want is a unclosing tag. So, Is
there any way to achieve the goal?thx.
I think that the HTML fragment has to be “complete” so it’s not valid
to do what you ask. Perhaps you could state what your true goal is?
Or explain the other options that you’ve considered and why an
opening
-Rob
On 6/29/07, Rob B. [email protected] wrote:
thx.
I think that the HTML fragment has to be “complete” so it’s not valid to
do what you ask. Perhaps you could state what your true goal is? Or explain
the other options that you’ve considered and why an openingis what
you think you need.
I want the inner_html in the div can be replacable. That’s,
page.replace_html “cc”, :partial => “xxx”
If it’s not valid, i’ll turn to use another way to change the content.
-Rob
On Jun 28, 2007, at 2:58 PM, Ye Dingding wrote:
thx.
I think that the HTML fragment has to be “complete” so it’s not
valid to do what you ask. Perhaps you could state what your true
goal is? Or explain the other options that you’ve considered and
why an openingis what you think you need.I want the inner_html in the div can be replacable. That’s,
page.replace_html “cc”, :partial => “xxx”
If it’s not valid, i’ll turn to use another way to change the content.If that is something that will happen in some future request, then
‘’ should be able to handle the equivalent of:$(‘cc’).innerHTML = “partial xxx”
is the same asTry it and see!
-Rob
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