Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   An app built in PHP and Javascript NOT working in Wordpress... (https://www.warriorforum.com/programming/91839-app-built-php-javascript-not-working-wordpress.html)

elrhino 9th June 2009 02:36 PM

An app built in PHP and Javascript NOT working in Wordpress...
 
My developer is trying to install a mapping "where to buy" application onto my wordpress website. The application uses PHP and Javascript and we're having a difficult time getting it to work in Wordpress. (it works fine in standalone php files)

We've downloaded and installed 2 Wordpress plugins that supposedly make the post/page content boxes accept PHP and Javascript.

It seems we have the PHP part working, but the Javascript isn't.

Here's what my developer is telling me:

"Javascript is trying to pass the search paramaters in a GET statement and Wordpress is replacing the ampersand (&) with "&#038" which breaks the Javascript."

Any ideas on how to fix that?

dvduval 9th June 2009 03:02 PM

Re: An app built in PHP and Javascript NOT working in Wordpress...
 
Seems to be related to escaping the ampersand. Here is one thing I found that may help you
WordPress 2.7 RSS Comments link error | Clive's Internet Marketing blog

rtrotter 17th June 2009 12:11 PM

Re: An app built in PHP and Javascript NOT working in Wordpress...
 
If escaping did not correct the problem then read this page:
Using Javascript WordPress Codex

It explains how to use javascript in templates and post.

Rodney


All times are GMT -6. The time now is 10:17 AM.