Domain Mapping and Javascript APIs
-
I have a wordpress 3.0 install with subdirectories multisite enabled. So I’ve got a setup that looks like main-site.com with subdirectory sites like main-site.com/subsite/. I am also using the mu-domain mapping plugin so that I can map the url subsite.com to main-site.com/subsite/. After a little bit of effort and some help from Andrea I got that working so that main-site.com/subsite/ is now showing up at subsite.com. So far so good.
Here is the problem. main-site.com/subsite/ (and, therefore, subsite.com) is a photo gallery site that uses the simpleviewer-pro flash gallery plugin. I am making use of the javascript API that comes with simpleviewer-pro to create external navigation controls for the photo slideshow (“next” and “previous” buttons) and to print the the photo captions on another part of the page.
Everything, including the external API controls, work flawlessly when the primary domain is set to main-site.com/subsite/. However, when the primary domain is switched to subsite.com the external API controls no longer function. The flash gallery itself is OK, it embeds, and all of the functionality from within the flash object works fine (i.e. you can advance the slideshow by clicking on the photo itself, etc.) The only thing that doesn’t work are all of the sections of the page that are enabled by the javascipt API.
Obviously, there is some problem with the API picking up on the domain mapping. Does anyone have any idea what is happening here and how it might be fixed? Of course, I am posting this message at the simpleviewer support forum as well. I just thought that someone here might have had a similar problem and could help me out. Any assistance would be appreciated.
- The topic ‘Domain Mapping and Javascript APIs’ is closed to new replies.