<form onsubmit="return false"> <input id="livesearch"
name="livesearch" type="text" value="" />
<p style="display: none" id="loading"><?php //echo $html-
>image("spinner.gif") ?></p>
</form>
<?php
$options = array(
'update' => 'view',
'url' => '/download/search/',
'frequency' => 1,
'loading' => "Element.hide('view');Element.show('loading')",
'complete' => "Element.hide('loading');Element.show('view')"
);
//Element.show('view')"
echo $ajax->observeField('livesearch', $options);
?>
<div id="view"><?php /* Results will load here */ ?></div> <<<<-- THIS
LINE
look, this is my example, look above, you are obligated to use DIV
instead of any other html-tag and it will work, i promise
On 19 sep, 18:38, Arash <[EMAIL PROTECTED]> wrote:
> I have the same problem and the solution provided in the comments of
> tutorial didn't work for me, any one can help?!
>
> On Sep 13, 9:17 pm, majna <[EMAIL PROTECTED]> wrote:
>
>
>
> >http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-usi...
>
> > On Sep 13, 4:19 pm, xevian <[EMAIL PROTECTED]> wrote:
>
> > > I'm trying to get 2 relatedselect/ combo boxes to work together.
> > > What I want to achieve is when a user picks a city from a dropdown
> > >selectboxthe city areasboxis populated (similar to if you choose a
> > > stae another dropdown lists the cities that are in the state). I have
> > > looked at using the devmoz tutorial and cannot get it to work in IE,
> > > it works fine in firefox.
>
> > > Tutorial that I
> > > used:http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-usi...
>
> > > I'm using cake 1.1.16.5421 with wamp.
>
> > > Any help with getting this working with IE would be greatly
> > > appreciated.- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---