Just put the 2 div's in the update parameters of your call, into the
view you render just choose the one you render ...I do that quite often
and no much problem...

such view as :

<?php if($div == 1) :
   ajax->div('div1); ?>
...
..
<?php ajax->divEnd('div1');
  endif; ?>

<?if( $div == 2)
  ajax->div('div2) : ?>

..

..
$ajax->divEnd('div2');
endif; ?>

well of course you have to call it by mentionning the 2 div's in your
call (ie : 'update' => array('div1', 'div2') ) ..but you can either
update 1, 2 , both or none...



On Dec 3, 8:36 am, "Grant Davies" <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I have 2 boxes, one is keys, one is values, the results of the values is
> a filtered table updated by an ajax call.
>
> e.g
>
> Keys:
>
> Select All
> Name
> Age
>
> Values
> Choose a Field
> Grant
> 34
>
> So if I click Name and grant is will give me all records that match.
>
> However, I have a problem, if I select the key "Select All" I want to
> update a different div as "select all" is not a real key, its just a
> filter bypass.  Is there a way to change the div you are going to
> update?  Right now i tried doing a page redirect to clear and refresh
> the page but it ends up writing the entire page to the div I'd selected
> for the ajax call so I end up with duplicated html on the page.
>
> Cheers,
> Grant
>
> ...........................................> b l u e t u b e i n t e r a c t 
> i v e..: grant davies
> .: 404.428.6839 (c)
> .: 708-983-1577 (F)
>
> > [EMAIL PROTECTED]
> >http://www.bluetube.com/bti<http://www.bluetube.com/bti>
> > A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/>
> 
>  small.jpg
> 2KViewDownload


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to