Note that there are some explanatory texts on larger screens.

plurals
  1. POCreating A Faux Currency Chrome Extension
    primarykey
    data
    text
    <p>Concept: So in an effort to learn more about web programming, I am trying to make a google chrome extension for my friends and myself which would display the amount of an imaginary currency we all have and the user would have the ability to give some to another user with the click of a button. There will only be 10 users including myself. There will be a button next to the omnibox which when clicked would open a popup (popup.html) that displays everyone's Name, Amount of Currency, and a '+' button which would subtract 1 unit from the user and add 1 unit to the person whose button was clicked. In order to identify the current user, when they first run the extension, it would prompt them for an ID number which I would provide for my friends personally.</p> <p>Approach: I've found plenty of documentation on how to build basic chrome extensions, so that isn't much of an issue. Storing, manipulating, and displaying the currency is the part I have trouble with. My original idea was to just use WebSQL because chrome supposedly works well with it and I am proficient in Oracle SQL already. However it looks like WebSQL is an abandoned platform. My next approach was to use a MySQL database hosted on a server, and use php/ajax (which I am looking into learning) to pull the the info from the database, display it in the extension, and manipulate the data. However I have read that you can't use php with a chrome extension. But my thought was I could have the buttons <code>onclick</code> link to a php script with the arguments in the URL on the same server as the mysql databse. But I don't know if I could handle displaying the values the same way. Also I would store the User ID with <code>localstorage</code>.</p> <p>Can anyone tell me if this is possible? Or at least point in the right direction? I am not begging to be spoonfed code, I just want to know which approach I need to take to tackle this.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload