Re: js helper not working for Internet explore
I stopped using the helper and moved the jquery to the top of the
page.
now it works .
Does anyone know a work around for this so i can use the jshelper???
It seems to me that the change event is not being loaded or triggered
<script type="text/javascript">
$(document).ready(function ()
{$("#states").bind("change", function (event) {$.ajax(
{async:true, cache:false, data:$
("#states").closest("form").serialize(), dataType:"html",
success:function (data, textStatus)
{$("#cites").html(data);}, type:"post", url:"\/direct\/cites\/
update_city_select"});
return false;});});
//]]>
</script>
On Aug 3, 3:56 pm, arron <w...@wwisinc.com> wrote:
> I am using cake 1.3
> I have a simple select box when someone selects a state
> the next select box populates the cites for that state
>
> This works fine in firefox as well as chrome, but it does not update
> my city select box for ie 7 or ie 8.
>
> I think its not triggering the event in ie
>
> <?php echo $this->Form->select('state_id',array($states),null,array('id'=>'states'),false);
>
> ?><br /><br /><?echo $this->Form-
>
> >select('city_id',array(),null,array('id'=>'cites'),false);
>
> $this->Js->get('#states')->event('change', $this->Js->request(
> array('controller' => 'bonds', 'action' => 'update_city_select'),
> array(
> 'update' => '#cites',
> 'async' => true,
> 'dataExpression' => true,
> 'method' => 'post',
> 'data' => $js->serializeForm(array('isForm' => false, 'inline' =>
> true))
> ) ) );
>
> ?>
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home