473,378 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Id Card Editing

40
I am doing an id card project using php/mysql and also i have many id card templates.If i click on any template,that particular id card should become editable and one should be able to change the personal details over the template.i must have text boxes specifying different fields on a side and if one enters the data in the text boxes that should be affected in the template id card..How is it possible.??Is there any tool to do this?or is it enough to do with javascript or ajax or flash actionscript?
Refer:www.photo-badge.com
Apr 18 '09 #1
3 7676
Atli
5,058 Expert 4TB
Hi.

Both JavaScript and Flash are capable of doing that.
Personally, I would go with JavaScript, because it doesn't require a 3'rd party plugin (the Flash player).

To do this with JavaScript, all you would have to do is set up your template in HTML, put input boxes somewhere (for the user to fill out), and have JavaScript mirror the changes to the input box on the template.

For example:
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2. function updateTemplate(pTarget, pNewValue) {
  3.     var targetElem = document.getElementById(pTarget);
  4.     if(targetElem == null) { return false; }        
  5.     targetElem.innerHTML = pNewValue;
  6. }
  7. </script>
  8. <div id="Template">
  9.   <span id="tpl_Name">John Doe</span><br />
  10.   <span id="tpl_Title">Janitor</span>
  11. </div>
  12. <div id="UserInput">
  13.   Name: <input type="text" onkeyup="updateTemplate('tpl_Name', this.value);" /><br />
  14.   Title: <input type="text" onkeyup="updateTemplate('tpl_Title', this.value);" /><br />
  15. </div>
  16.  
See what I mean?
Apr 18 '09 #2
LetHimCook
1 Bit
Any updates on your project? I'm doing a project in the same niche. Maybe we can collaborate?
May 11 '23 #3
Thanks for sharing your project. I'm new here and just stumbled upon your post. As for your question, it's definitely possible to create an editable ID card template using PHP/MySQL and some client-side scripting languages like JavaScript or AJAX. You can create text boxes for different fields and use JavaScript to update the corresponding fields on the template in real time.
May 11 '23 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

23
by: JC | last post by:
I am very new to programming and learning on my own. Why do I keep getting duplicate values using this code? I want to shuffle a deck of 52 cards. The logic seems right to me. Randomize For...
10
by: dries | last post by:
A friend of mine has a problem with his credit card validation routine and it is probably a simple thing to solve but I cannot find it. It has to do with the expiry dates. What happens is that as...
18
by: DaveLessnau | last post by:
I'm trying to learn C on my own and, apparently, my brain went on vacation somewhere. I just can't figure out how to parse the following function call: "void fillDeck( Card * const wDeck, const...
0
by: Limpor | last post by:
Hello, I am new to learning java, and i am trying to build the class for a calculation card game, unfortunately i can't get the public Card top() and Card takeTop() method in the Stock class. Can...
5
by: Raman | last post by:
Hello friends, I want to print an ID card. I have one Windows Form that contains front and back side. The printer is printing both front and back side at a time. I am trying to send both sides...
6
by: JNeko | last post by:
Hello all, awesome site! I guess I am technically not a beginner in JAVA, but from my code you would not realize it! I don’t expect anyone to help me with this, but I figure I might as well as try...
1
by: Olmar | last post by:
Hi, I am trying to write a version of the Hears card game. I can't figue out what is the best way to detect clicks on the cards. Using the cards.dll interface as described in tutorials like...
1
by: securedcardss | last post by:
http://card.2youtop.info secured credit card card credit instant secured card cash credit secured card
2
by: rubyhuang | last post by:
the problem is A standard pack of cards can be represented as an array of 52 integers with each number representing a standard card. Thus: 0 1 2 3 4 5 6 7 8 9 10 11 12.....39 40 41 42 43 44 45 46...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.