Kasonde Neddy
asked on
Trouble with online calculator after converting site to wordpress
Hi experts,
Converted a site to wordpress, and had an online calculator that heavily used Javascript/Jquery, once converted to Wordpress, some values are missing from the calculator. Don't know why??? Lost..and baffled. please try to use the calculator at the following link:
http://www.madisonassets.co.zm/education-calculator/
Select country and enter some details and click calculate...notice the missing values? Can you help me resolve this to see and know why the values are missing? but outside wordpress it is working fine.
Converted a site to wordpress, and had an online calculator that heavily used Javascript/Jquery, once converted to Wordpress, some values are missing from the calculator. Don't know why??? Lost..and baffled. please try to use the calculator at the following link:
http://www.madisonassets.co.zm/education-calculator/
Select country and enter some details and click calculate...notice the missing values? Can you help me resolve this to see and know why the values are missing? but outside wordpress it is working fine.
ASKER
Hi media-tips,
I have just activated a link with the working version, below:
http://www.easywebzambia.com/mamco/education_calculator.php
I have just activated a link with the working version, below:
http://www.easywebzambia.com/mamco/education_calculator.php
Checking your scripts I found out that they're not identical.
In the working script you have:
In the non-working script you have:
and also the folowing error when you populate the departments list:
So, I suggest that you first fix the points below, and then we'll investigate further.
In the working script you have:
<form id="ecalc" method="get" action="education_calculator.php">
:
<div class="caption">
:
<form id="ecalc" method="get" action="/mamco/education_calculator.php">
In the non-working script you have:
<form id="ecalc" method="get" action="http://www.madisonassets.co.zm/education-calculator/">
:
<div class="caption">
:
<form id="ecalc" method="get" action="#">
and also the folowing error when you populate the departments list:
<select id="departments" name="departments">
Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/n/e/d/neddynedson/html/easyweb/mamco/education_calculator.php on line 366
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/content/n/e/d/neddynedson/html/easyweb/mamco/education_calculator.php on line 366
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/n/e/d/neddynedson/html/easyweb/mamco/education_calculator.php on line 367
No departments selected!
</select>
So, I suggest that you first fix the points below, and then we'll investigate further.
ASKER
I had changed it because of wordpress URLS..
<form id="ecalc" method="get" action="education_calculat or.php">
I do not have education_calculator,php inside my wordpress page and therefore had to change it, I ll look into the other mysql error.
I had a felling that is were the problem is, the "action", in wordpress my is generates using permalink strucutre which i am sure affects things.
<form id="ecalc" method="get" action="education_calculat
I do not have education_calculator,php inside my wordpress page and therefore had to change it, I ll look into the other mysql error.
I had a felling that is were the problem is, the "action", in wordpress my is generates using permalink strucutre which i am sure affects things.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, sorry for closing late, had a bit of a backlog on other work! Solutions worked fine with a bit of tweaaking!
Could you please provide us with a link to a working version outside Wordpress?