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?

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to