+ Reply to Thread
Results 1 to 2 of 2

Thread: problem with zendx_jquery setJQueryParam

  1. #1
    nickyflava is offline Junior Member
    Join Date
    Jul 2008
    Posts
    4

    Default problem with zendx_jquery setJQueryParam

    When i use zendx_jquery and set a parameter like this
    Code:
    $date= new ZendX_JQuery_Form_Element_DatePicker(
                    "datePicker1", array("label" => "Birthdate:")
                );	
    		$date->setJQueryParams(array('buttonImage' => '/img/icons/calendar.gif', 
    									'dateFormat' => 'dd.mm.yy',
    									'defaultDate' => '2007/10/10'));
    it adds a trailing slash in the html
    Code:
    <script type="text/javascript">
    //<![CDATA[
    $(document).ready(function() {
        $("#datePicker1").datepicker({"buttonImage":"img\/icons\/calendar.gif","dateFormat":"dd.mm.yy","defaultDate":"2007\/10\/10"});
    });
    //]]>
    is this a bug in the code or am I missing something here? thanks in advance.

  2. #2
    nickyflava is offline Junior Member
    Join Date
    Jul 2008
    Posts
    4

    Default

    sorry my stupidity, I should add "showOn" => 'both' to enable the button image lol

+ Reply to Thread

Similar Threads

  1. ZendX_jQuery/JSON issue.
    By fumanchu182 in forum General Q&A on Zend Framework
    Replies: 0
    Last Post: 07-16-2010, 01:07 PM
  2. [ASK] about zendx_jquery
    By zipcoi in forum Model-View-Controller (MVC)
    Replies: 0
    Last Post: 02-07-2010, 02:37 PM
  3. ZendX_Jquery data return format
    By ericp in forum Model-View-Controller (MVC)
    Replies: 0
    Last Post: 09-25-2009, 10:01 PM
  4. Replies: 4
    Last Post: 05-06-2009, 01:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts