Jump to content

Common client side and server side code


kickstart

Recommended Posts

Hi

 

I have an app which is very heavily dependent on javascript and ASP. One part written in javascript calculates some figures (based on formulas stored in a database), based on the data on screen. This works fine.

 

However similar figures are now required as part of an extracted report, generated on the client side.

 

Short of duplicating the javascript code in php, any suggestions? While duplicating the code is possible it just means double the maintenance (and a good chance that at some point they will produce different results).

 

All the best

 

Keith

Link to comment
https://forums.phpfreaks.com/topic/194917-common-client-side-and-server-side-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.