This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » Javascript plugins » update_element_function problem: position parameter does not work
update_element_function problem: position parameter does not work [message #83707] Thu, 13 August 2009 11:36
cutups  is currently offline cutups
Messages: 36
Registered: May 2007
Member
I'm working in symfony 1.2

I'm finding that the update_element_function does not use the position parameter properly. Has anybody else fun into this issue and found a solution.

I'm trying to insert some html at the top of the inside of a div.

So I run this query:

<?php
echo javascript_tag(
update_element_function('container', array (
'position' => 'top',
'content' => '<div id="new-div">content</div>',
'script' => 'true',
))
);
?>

The new content does not appear at the top of the inside of the container, but instead appears at the bottom.

Using firebug, i see that it ends up as:

//<![CDATA[
$('container').insert('<div id=\"new-div\">content</div>','top');

//]]>

Which, looking at the prototype docs, doesn't match the specification for insert...

Previous Topic:sfProtoculousPlugin alternative to sfFlashMessagePlugn
Next Topic:FCKeditor not working after deploying project
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software