guyfromfl Posted August 10, 2009 Share Posted August 10, 2009 I am working on this calculator for the company I work for. It graphs the variable speed table you can program into the engine. The gray line is the factory default settings and the blue is the user defined speed table. Right now both the default and user defined are hard coded into an array so to change the blue line you have to change the php code... What I want to do is be able to enter a new value into one of the CV textboxes and alter the gd png without reloading the entire page. there would be alot of variables being passed and I know there has to be a better way. Any suggestions?? http://bli.servehttp.com/bli/knowledgebase/calculator.php#cv67 Thanks Quote Link to comment Share on other sites More sharing options...
oni-kun Posted August 10, 2009 Share Posted August 10, 2009 There is no way to do this without Flash or AJAX. Note AJAX works well with PHP, and for example if you use JS to hand the .. onChange on those value boxes, it'll call the GD library and update the page without refreshing it. It shouldn't be too hard to implement, more work than difficult for this step. Quote Link to comment Share on other sites More sharing options...
guyfromfl Posted August 11, 2009 Author Share Posted August 11, 2009 thanks ive been wanting an excuse to start ajaxing so i guess this is it! Quote Link to comment Share on other sites More sharing options...
guyfromfl Posted August 11, 2009 Author Share Posted August 11, 2009 Thanks oni! Ajax did it! if you guys want my code and you think it will help, I will post it. Right now it might not be the best way but its working! Quote Link to comment Share on other sites More sharing options...
oni-kun Posted August 11, 2009 Share Posted August 11, 2009 No problem! Remember you can always go to http://www.phpfreaks.com/forums/index.php/board,51.0.html The AJAX section to get more help on this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.