Jump to content



Photo

Implementing Chapter 3 Using Bootstrap Style Application

ajax php

  • Please log in to reply
1 reply to this topic

#1 joestark15

joestark15

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 2 March 2014 - 10:55 AM

Hello all,

 

I am enjoying this book, and have had all success deploying the chapter 3 department select menu scripts on my local environment.

 

When i try to implement the same when using a bootstrap style website, where the pages are outputted through the index.php file: https://mysite.com/i...dept_form&did=1

 

I run into problems. In your book on chapter 3 your dept.js file has the code pulling from (get, dept_results_ajax.php?did=' + encode...). Because of the bootstrap style site I am using will this be different?

 

Also, does it matter if using https opposed to http?

 

Any help would be great.

 

Thanks


  • 0

#2 Larry

Larry

    Administrator/Writer

  • Administrators
  • 4766 posts
  • LocationState College, PA (USA)

Posted 3 March 2014 - 3:30 PM

The http vs https wouldn't make any difference, but you'd need to change your Ajax resource URLs to go through the bootstrap, too. For example: index.php?page=dept_results_ajax&did=....

 

Thanks for the nice words!


  • 0