![]() |
combine results from sql query and javascript to calculate a field
I am very new to JavaScript, Have a problem regarding arrays within javascript. Straight to the point: I have HTML code:
Code:
<input type="text" name="conPrice" id="conPrice" size="16" maxlength="128"/>SQL is based on a condition that there is four fields: Code:
| ID | MIN | MAX | PRICE |I have this SQL: PHP Code:
Code:
<script> |
You should only have one $(document).ready() statement. This may or may not correct your problem, but this is how to combine your jquery stuff. If still not working we can go from there:
Code:
<script type='text/javascript' src='javascript/jquery.js'></script> // where mine is located.. Yours is probably in different location |
Hi again, taking off
Code:
$(document).ready |
Putting in whole code of the test page so far. slider does slide, the slider value is being processed to conPrice, but calculation does not work...
Code:
<script src="jquery.js" type="text/javascript" charset="utf-8"></script>Code:
p_id | p_min | p_max | p_price |
Code:
<script src="jquery.js" type="text/javascript" charset="utf-8"></script> |
even though I cut out most of them, it still appears not working...more suggestions?
Code:
<script src="jquery.js" type="text/javascript" charset="utf-8"></script> |
| All times are GMT +1. The time now is 05:54 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.