On Fri, Mar 20, 2009 at 3:15 PM, xhe <hexuf...@gmail.com> wrote: > > This is how I used it: > > step: create a form by this configue > > public function configure(){ > > $this->setWidgets( > array( > 'reportedMember' => new sfWidgetFormInput(), > 'reportingMember' => new sfWidgetFormInput(), > 'reportDtFrom'=>new sfWidgetFormJQueryDate(), > 'reportDtTo'=>new sfWidgetFormJQueryDate() > ) > ); > > $curopt=isset($this->options['currentData']) ? $this->options > ['currentData'] : null; > if(isset($curopt)){ > $this->widgetSchema["reportedMember"]->setDefault($curopt > ["reportedMember"]); > $this->widgetSchema["reportingMember"]->setDefault($curopt > ["reportedMember"]); > $this->widgetSchema["reportDtFrom"]->setDefault($curopt > ["reportDtFrom"]); > $this->widgetSchema["reportDtTo"]->setDefault($curopt > ["reportDtTo"]); > } > > > $this->widgetSchema->setLabels( > array( > "reportedMember"=>"Member being reported", > "reportingMember"=>"Member submitting reports", > "reportDtFrom"=>"Starting Date of Report", > "reportDtTo"=>"Ending Date of Report" > ) > ); > > $this->widgetSchema->setNameFormat('reports[%s]'); > } > > and then in action: > $this->form=new ReportsQueryForm($reports); > > finally in template: > > <th><?php echo $form["reportDtFrom"]->renderLabel()?></th> > <td><?php echo $form["reportDtFrom"];?></td> > <th><?php echo $form["reportDtTo"]->renderLabel()?></th> > <td><?php echo $form["reportDtTo"];?></td> > > Result is in FF, it works fantastically, but in IE, it just give an > error: IE can not open the webstie page blabal, operation aborted. > then got "Internet Can not display website page error". > > I have already included this two jquery UI: > <?php use_javascript("jquery_ui/js/jquery-ui-1.7.custom.min.js");?> > <?php use_stylesheet("/js/jquery_ui/css/smoothness/jquery- > ui-1.7.custom.css");?> > > So, can anyone help to figure out reason whey it doesn't work in IE? > Or is this kind of bug for this plugin? >
Which version you are using of Jquery.ui ? Try the "legacy" version (last stable) and you will not see errors anymore. -- Paolo Mainardi Vice Presidente Assoc.ILDN (http://www.ildn.net) Blog: http://www.paolomainardi.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---