Again i have question. Its very hard for me to figure out a few things because i have zero knowledge about javascript coding so things get very difficult for me. Im very under time pressure so i hope you can help me out. And the thing is i dont want your help for free. The first one who gives me an working solution/code for my problem i will send a donation about 100$ via Paypal. I hope its allowed and if you send an answer dont forgive to put your email in it. Hope its a fair reward.
So, im working on a app phonegap cordova. I need javascript code for two things.
1. On first app start my app will check if the app has been launched before, if not it creates an unique username and saves it to the the local storage as variable with the name username
and uploads it via ajax to my mysql db.Working fine with help from users of stackoverflow.
Table in DB is called user with rows
"id" "username" "vip status" "callstatus"
The last two rows are set to 0.
Im working with a payment provider. It means there is a payment button in my app.If you click on it the in-app browser opens the payment url. After successfull payment you will be directed in the in app browser to a "success.html". "Success.html" is my file. I can code in it what i want. I want that for the generated user the rows in db "vipstatus" and "call status" set to 1 and the payment button disappears and show another button.
Maybe for your help my provider allows to send data with the url like:
http://ift.tt/1Jqh2Ah **?o=%MYDATA**
Maybe use this for "username?"
. In the provider documentation they say its Varchar(255).
2. I need a function which checks on the index.html everytime from the db the "vipstatus" and "calluser" row for the user and then do something.
So if callstatus=1 show button 1. If Callstatus = 0 show button2. Best way is without refreshing.
So it would be nice if you can help me out! if you dont understand anything or have questions please comment. I will stay online from now on 3 hours and will have an i on this thread.
Regards.
Aucun commentaire:
Enregistrer un commentaire