Hi
I'm having some trouble with a form that I have styled in my CSS but
when it's loaded from an Ajax call it's not picking up the CSS styles

view.ctp:
used for viewing entries in my DB, I have "edit" links that link to
specific actions in my contoller that allows users to update/edit DB
entries.

>From view.ctp:
<div class="entryhead">
        <h3>Genre</h3>
        <div class="entryheadtxt">

        /*This div contains an "edit" link. Users can click edit and the
edit_genre action will be called and displays the edit_genre.ctp in
the "genreform" div listed below.*/

        <?php echo $ajax->link('Edit Genre', 'edit_genre/'.$movie['Movie']
['id'], array('update' => 'genreform'));?>
        </div>
</div>
<p>
//this section lists out the current "genre" entries in the DB for a
particular movie.
<?php
        $i = 0;
        $ct = count ($movie['Genre']);
        foreach ($movie['Genre'] as $genre):
                $i++;
                echo $genre['name'];
                if ($i < $ct) {
                echo ", ";
        }
        endforeach;
?>
<div id="genreform">
/* Problem Area....
code from edit_genre.ctp will go here when user clicks "Edit Genre"
CSS Styling does not appear when user clicks edit and code is pulled
from edit_genre.ctp. However if I manually place form code here the
styling is picked up. */
</div>

--------------------------------
from edit_genre.ctp: This code is inserted into view.ctp "genreform"
div when user clicks "Edit Genre"

<?php echo $form->create('Movie');?>
        <fieldset>
                <legend><?php __('ADD/EDIT GENRE');?></legend>
        <?php
                echo $form->input('id');
                echo $form->input('Genre', array( 'type' => 'select', 
'multiple' =>
'checkbox' ));
?>
        </fieldset>
<?php echo $form->end('Submit');?>


Thanks in advance for any advice.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to