15 is True calculator - keeping text within the box - Knowledge Exchange
Knowledge
Exchange
Search Threads |
    Welcome Guest!   Login / Register
    Knowledge Exchange
    Join The Community Today!
    or

    Close
    Knowledge Exchange
    Join The Community Today!

    Close
  • Questions are asked by our members, and answered by our members.
    Join today, and help answer someones question.
  • Top Members
  • Knowledge Exchange (carrzkiss)
  • carrzkiss
    Answered Threads: 1
    Total Points: 50
Thread: [ID# 15] [Date:September 14, 2013 at 09:23:33 AM] [Views: 2150] (Last Post Date: September 26, 2013 at 22:53:13 PM)
  • calculator - keeping text within the box
  • Author:
  • Hello, I'm making a calculator in Edge Animate, and I was following http://www.developerdrive.com/2012/06/creating-a-web-page-calculator-using-the-html5-output-element/ to create one, and also watched http://www.youtube.com/watch?v=LY4vOwOU2Uc - so that when a button is pressed it displays a character on screen. The question I had was in regards to the video - in the video when each button was clicked it would change the text - what I would like to do with my calculator is keep the text that is in there but also allow for other text (or operation symbols) so that they can be calculated and displayed in the text box when pressing the equals sign. How do can I get the input screen to display as many characters as buttons pressed? Thank you!
  • Posted On:
  • Time Zone: (GMT -3:30) Newfoundland
  • Topic Zone: Adobe Edge Animate,
  • cruasn has asked 1 Question
Splitter
# 1
Author Comment
  • Posted By: - [Date Posted: September 14, 2013 at 09:54:59 AM]  []
  • This is an example of the calculator in HTML5 + CSS3 - my question relates to how to get the numbers to stay on the text box without changing - for example in the demo, when pressing 1 + 2 - each number will appear after each other, not together on the screen - how do I code so that everything appears on the screen and then when the user presses equals sign - then it changes to whatever the answer should be

# 2
Author Comment
# 3
Knowledge Comment
  • Posted By: - [Date Posted: September 16, 2013 at 12:34:49 PM]  []
  • I am trying to understand your question. Are you stating, that you are wanting this to appear. 1+1=2 You want everything written out as I have done there? What have you gotten so far? I am thinking that you would need to have (Using the 1+1=2 example) 5 text labels, once for each of the characters. This sounds like a really interesting project, one that I would like to assist you on. However, if you have a starting point, (code) we can start from there. Also. Are you making a calculator like in the link your provided? Just changing the output to display all characters instead of a single character. Also, does that calculator come with source code? Have a good one. Carrzkiss

# 4
Author Comment
  • Posted By: - [Date Posted: September 18, 2013 at 10:49:39 AM]  []
  • Hi there, Yes, I wanted it to "append" the numbers so that the user could have 1+1 on the input text and then when the user wanted to get the answer would press the '=' button and then in a different area of the screen would show the output (calculation). My goal is to make a tutorial on how to use a scientific calculator for and was just starting with the basics - how to input a fraction - the file I have is here: https://dl.dropboxusercontent.com/u/89536697/sci%;20-%20calculator.zip I implemented the code that was in the video above - but then realized that I need an input area where one can put the numbers in and an output area where the calculation would take place. I'm completely new to html5/css3 so trying to understand how to implement these features. Sorry about the confusion with my question - I think the file I created will help in understanding what I'm trying to achieve. Thanks again!

# 5
Knowledge Comment
  • Posted By: - [Date Posted: September 18, 2013 at 13:09:18 PM]  []
  • The link to the file is a dead one. When you send a file to the dropbox, try to make sure that it does not have any spaces in the name. Once I am able to download it, I will have a look at it. I cannot promise anything, But I will try.

# 6
Author Comment
# 7
Knowledge Comment
  • Posted By: - [Date Posted: September 18, 2013 at 21:39:15 PM]  []
  • The link is dead again. Rename the file to the following: calculator.zip Then upload it, and provide the link.

# 8
Knowledge Comment
  • Posted By: - [Date Posted: September 26, 2013 at 13:02:59 PM]  []
  • I renamed the file in the URL, and was finally able to download it. Advice in the future, Do not have spaces in the file name. Will get back with you, once I have a chance to go through the file.

# 9
Author Comment
  • Posted By: - [Date Posted: September 26, 2013 at 13:09:51 PM]  []
  • Hi carrzkiss, I was able to get it to work, many thanks for tyring to help - I do apologise for not getting back to you sooner!

# 10
Knowledge Comment
  • Posted By: - [Date Posted: September 26, 2013 at 13:09:52 PM]  []
  • OK,you have not done anything to it yet I see. Hum, I will have to think on this one my friend. I have a few other questions that I am getting ready to work on in front of this one. Once I get them done, I will look in on your project.

# 11
Author Comment
  • Posted By: - [Date Posted: September 26, 2013 at 13:10:07 PM]  []
  • Hi carrzkiss, I was able to get it to work, many thanks for tyring to help - I do apologise for not getting back to you sooner!

# 12
Knowledge Comment
  • Posted By: - [Date Posted: September 26, 2013 at 13:38:04 PM]  []
  • Sweet, do you have a page up with it? would love to see progress of your project.

# 13
Knowledge Comment
  • Posted By: - [Date Posted: March 05, 2016 at 22:53:13 PM]  []
  • Hello cruasn I just wanted to check in and see if you could come in, and close this question out. We were having some issues with the mail system when you came on here back then, and I guess you never got the last message that I sent out. Either way, if you could close this one out, that would be awesome. And since it was so long ago, just choose yourself as answer. Carrzkiss

Thank you for Visiting Knowledge Exchange.
However, you must be a member in order to comment on a Question.
If you are not a member, please use the [Register] link at the top of the page.
And as always, Knowledge Exchange is
100% FREE!    Thank You!

or