Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 9th Jun 2009, 02:36 PM   #1
Warrior Member
 
Join Date: 2009
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default
An app built in PHP and Javascript NOT working in Wordpress...
Share on: 
fb share twitter share gplus share more share

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?
elrhino is offline  
Unread 9th Jun 2009, 03:02 PM   #2
phpLD master
War Room Member
 
dvduval's Avatar
 
Join Date: 2006
Location: Laguna Beach
Posts: 4,015
Thanks: 80
Thanked 542 Times in 421 Posts
Blog Entries: 3
Default
Re: An app built in PHP and Javascript NOT working in Wordpress...
Share on: 
fb share twitter share gplus share more share

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

It is okay to contact me! I have been developing software since 1999, creating many popular products like phpLD.
dvduval is offline  
Unread 17th Jun 2009, 12:11 PM   #3
HyperActive Warrior
War Room Member
 
rtrotter's Avatar
 
Join Date: 2009
Location: Lubbock, Texas
Posts: 103
Thanks: 18
Thanked 32 Times in 28 Posts
Default
Re: An app built in PHP and Javascript NOT working in Wordpress...
Share on: 
fb share twitter share gplus share more share

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

Ping All Your Feed On Auto-Pilot
www.kping.com
rtrotter is offline  
Closed Thread


Bookmarks

Tags
app, built, javascript, php, wordpress, working


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:20 PM.