Load forms in ajax

Posted · Add Comment

Scheduler Forums BirchPress Scheduler Load forms in ajax

Tagged: ,

This topic contains 1 reply, has 1 voice, and was last updated by  Jordan Rodriguez 10 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5243

    Jordan Rodriguez
    Participant

    I’m wondering if there is a way to load a form over ajax and then initialize all the necessary javascript to make the form work.

    I want to change the way choosing a location looks. We would use photos and click selections in order to change that.

    I can then do an ajax call that does a shortcode with the location ID. But when i load the form over ajax it won’t work because javascript needs to re-initialize.

    #5244

    Jordan Rodriguez
    Participant

    nevermind, i was able to fix this.

    I made a function that collects the location id from an element then sends it to this function.

    <pre lang=”javascript”>
    $(‘#birs_appointment_location’).val(locationID);
    birchschedule.view.bookingform.changeServiceOptions();
    >/pre>

    where “locationID” = the location id of your specific location.

    I’m posting for anyone trying to do what i did.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘BirchPress Scheduler’ is closed to new topics and replies.

Comments are closed.