Title: javascript failure only on subdomain
Last modified: August 19, 2016

---

# javascript failure only on subdomain

 *  [laggingtom](https://wordpress.org/support/users/laggingtom/)
 * (@laggingtom)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/javascript-failure-only-on-subdomain/)
 * I’ve created my own plugin that calls a jquery ajax function that returns some
   json data, which is then inserted into div.
 * Now, everything works on all of my pages throughout the site, so long as the 
   url is:
 * [http://www.mountmadonnaschool.org/values/](http://www.mountmadonnaschool.org/values/)
 * however, we setup a redirect to the above URL from:
 * [http://values.mountmadonnaschool.org/](http://values.mountmadonnaschool.org/)
 * However, when the plugin tries to initiate the ajax function- nothing appears
   to happen. When trying to execute an ajax function using Firebug in the browser,
   it told me ‘XMLHttpReadystate=1 multipart=false’. And that’s as far as I could
   get with it.
 * To get around this, I’ve just written a piece of javascript to change the browser
   url to the one that works, but that’s not the ideal solution. Can anyone give
   me any clues?

Viewing 1 replies (of 1 total)

 *  Thread Starter [laggingtom](https://wordpress.org/support/users/laggingtom/)
 * (@laggingtom)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/javascript-failure-only-on-subdomain/#post-1343933)
 * bump

Viewing 1 replies (of 1 total)

The topic ‘javascript failure only on subdomain’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [laggingtom](https://wordpress.org/support/users/laggingtom/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/javascript-failure-only-on-subdomain/#post-1343933)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
