Discussion Forums  >  WebViews and HTML for Mobile

Replies: 10    Views: 422

dudave
Android Fan
Profile
Posts: 111
Reg: Mar 23, 2011
Israel, Netanya
1,110
03/08/13 11:58 AM (11 years ago)

Custom calculator

Hi there, trying to find a way to create a custom calculator for my app. the calculation should be basically like in this calculator: http://www.medical-calculator.nl/calculator/PD/ any idea how to do it or were to look? i'v googled myself to death today but no success so far... Thanks David
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
03/08/13 12:01 PM (11 years ago)
Which app android or ios ? I can create for android ..what do you wanna calculate
 
dudave
Android Fan
Profile
Posts: 111
Reg: Mar 23, 2011
Israel, Netanya
1,110
like
03/08/13 12:21 PM (11 years ago)
forgot to mention its for android need weight (kg/lb) multiplying by dose/kg or lb devided by formulation (mg/ml or mg/pill)
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
03/08/13 12:35 PM (11 years ago)
Hi @dudave, I've been trying to build a custom calculator since I joined..lol. I need one that does L x W = A...one button for each. LA
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
03/08/13 03:21 PM (11 years ago)
Do-able using javascript and embedding into an html page I suspect. Sadly, I am not grat at javascript, but I found an example of what I mean here - http://www.dynamicdrive.com/forums/showthread.php?60336-instant-price-quote-calculator This shows the principle, if you can get your head around the script, you might be able to adapt it and pretty it up Good luck, Alan
 
dudave
Android Fan
Profile
Posts: 111
Reg: Mar 23, 2011
Israel, Netanya
1,110
like
03/09/13 02:37 AM (11 years ago)
Damn it looks so simple but still can't understand how to make the changes i need...
 
dudave
Android Fan
Profile
Posts: 111
Reg: Mar 23, 2011
Israel, Netanya
1,110
like
03/11/13 01:18 AM (11 years ago)
Ok, finally managed to make it work thanks to the creator of this tool who made a new page with improved instructions: http://www.josephsunny.com/pub/calculator.php just follow the instructions carefully and you'l get yourself a custom calculator for your needs!
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
03/11/13 06:53 AM (11 years ago)
Hi @dudave, It looks good! Maybe you can pretty it up a bit? LA
 
dudave
Android Fan
Profile
Posts: 111
Reg: Mar 23, 2011
Israel, Netanya
1,110
like
03/11/13 07:12 AM (11 years ago)
Hi @LA i know it looks very "basic", and i'm sure it's possible to make it look better, problem is every little thing you change after getting the code to work might mess up the all thing and make the script not work again. i'm gonna try and play with it a little to see if i'm able to make some cosmetical changes..
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
03/11/13 07:21 AM (11 years ago)
@dudave, I had to have help with mine also.. LA
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
03/11/13 08:44 AM (11 years ago)
Thanks for that link,@dudave, that tool looks interesting. I suspect you can use basic CSS with the code that is created. Make copies as you go, just in case! Alan
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.