Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7693837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:10:54+00:00 2026-05-31T21:10:54+00:00

I am facing issue while i load a form on ajax request. i followed

  • 0

I am facing issue while i load a form on ajax request. i followed the steps :

  1. Enable jqueryUi in layout.
  2. creates a form element like :

    $dob = new ZendX_JQuery_Form_Element_DatePicker('patient_dob');
    $dob->setLabel('')
           ->addFilter('StripTags')
           ->addFilter('StringTrim')
           //->addValidator('Date')
           ->setAttrib('readonly', 'true')
           ->setJQueryParam('dateFormat', 'yy-mm-d')
           ->setDecorators(array(
    'Description', 'Errors', 'UiWidgetElement',
    array(array('data' => 'HtmlTag'), array('tag' => 'Div', 'class'=>'calender_input'))
                 ));
    

    and just called the element into form. It is working when page load normally but not with ajax request. What is the reason? any suggestions? i googled a lot about it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:10:56+00:00Added an answer on May 31, 2026 at 9:10 pm

    The problem is that the javascript code that activates the date picker is rendered by the ZendX_Jquery extension to happen when the document is ready:

    <script type="text/javascript">
    //<!--
    $(document).ready(function() {
        $("#patient_dob").datepicker({});
    });
    //-->
    
    </script>
    

    which makes sense with non-ajax requests, but never is executed in an ajax request because the document.ready has already happened in the parent’s page. You can add your own in your view directly:

    <script type="text/javascript">
        $("#patient_dob").datepicker({});
    </script>
    

    I haven’t yet found a solution for this from the Zend Jquery extension, but if you do please let me know!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm facing the same issue, while trying for cross-domain request. Situation is strange, my
I am using Appweb server (mini http server) and facing an issue while opening
I am facing an issue while streaming PDF file on a Java EE web
I am facing an issue regarding EF code first version while mapping one entity
I am facing a class resolution issue while trying to make my architecture flexible.
I'm facing an issue with RestTemplate in Spring 3.0. When I'm trying to request
I am facing an issue while executing queries.I use the same resultSet and statement
i am facing an issue while using sikuli through java, if there are 2
I am facing an issue Empty id attribute is not allowed in JSF while
I am facing a strange issue where-in my webpage does not load fully after

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.