Title: Getting AAPL to work with Javascript location.href?
Last modified: August 21, 2016

---

# Getting AAPL to work with Javascript location.href?

 *  [jgadsby](https://wordpress.org/support/users/jgadsby/)
 * (@jgadsby)
 * [13 years ago](https://wordpress.org/support/topic/getting-aapl-to-work-with-javascript-locationhref/)
 * Hi there,
 * Just wondering if there’s a way to ‘AJAXify’ the following code, so that rather
   than just refreshing the page, it uses AAPL?
 *  <form onsubmit=”location.href=’[http://www.mysite.com/site/members/&#8217](http://www.mysite.com/site/members/&#8217);
   + document.getElementById(‘myInput’).value; return false;”>
    <input type=”text”
   id=”myInput” /> <input type=”submit” /> </form>
 * Thanks for any ideas!
 * [http://wordpress.org/extend/plugins/advanced-ajax-page-loader/](http://wordpress.org/extend/plugins/advanced-ajax-page-loader/)

Viewing 1 replies (of 1 total)

 *  [Valentin](https://wordpress.org/support/users/valentinalisch/)
 * (@valentinalisch)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/getting-aapl-to-work-with-javascript-locationhref/#post-3761802)
 * Solution to this is posted in here:
 * [http://wordpress.org/support/topic/javascript-onclick-works-but-no-ajax-behaviour?replies=3#post-4344165](http://wordpress.org/support/topic/javascript-onclick-works-but-no-ajax-behaviour?replies=3#post-4344165)

Viewing 1 replies (of 1 total)

The topic ‘Getting AAPL to work with Javascript location.href?’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-ajax-page-loader_bcd4a4.
   svg)
 * [Advanced AJAX Page Loader](https://wordpress.org/plugins/advanced-ajax-page-loader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ajax-page-loader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ajax-page-loader/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ajax-page-loader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ajax-page-loader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ajax-page-loader/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Valentin](https://wordpress.org/support/users/valentinalisch/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/getting-aapl-to-work-with-javascript-locationhref/#post-3761802)
 * Status: not resolved