I need a little help with an HTML/XML/JS reward system, The system does not update the data.xml file |
I need a little help with an HTML/XML/JS reward system, The system does not update the data.xml file |
ArakelTheDragon |
Aug 4 2024, 07:33 AM
Post
#1
|
Group: Members Posts: 3 Joined: 4-August 24 Member No.: 29,216 |
Hi guys! I am using html and JS to store users in data.xml and update data.xml when a user claims a new reward code, but unfortunately, the file does not get update.
All files are in rewardsystem.zip. Please help guys! This post has been edited by ArakelTheDragon: Aug 4 2024, 07:33 AM Attached File(s) rewardsystem.zip ( 4.34k ) Number of downloads: 132 |
Brian Chandler |
Aug 4 2024, 12:30 PM
Post
#2
|
Jocular coder Group: Members Posts: 2,480 Joined: 31-August 06 Member No.: 43 |
Hi guys! I am using html and JS to store users in data.xml and update data.xml when a user claims a new reward code, but unfortunately, the file does not get update. All files are in rewardsystem.zip. Please help guys! Did you write it yourself? Where is the data.xml file, exactly? When you have a program which does not work you have to do what is called "debugging" - I actually remember when someone explained this to me (in about 1968). But if this is a library package or similar you got from someone else, and you do not understand it at, you have to go and complain to them. |
ArakelTheDragon |
Aug 4 2024, 02:38 PM
Post
#3
|
Group: Members Posts: 3 Joined: 4-August 24 Member No.: 29,216 |
Of course I used help like google. But yes I know what debugging is, I just can't seem to find the issue.
All files are in the rewardsystem.zip in the first post. |
Brian Chandler |
Aug 5 2024, 12:40 AM
Post
#4
|
Jocular coder Group: Members Posts: 2,480 Joined: 31-August 06 Member No.: 43 |
Sorry, but it is not reasonable to come along and say "Please do my debugging for me". You didn't answer either of my questions... for example, if "the system" is not writing to the file, try adding a bit of code to write something else, anything else to the file, and see if that happens.
|
ArakelTheDragon |
Aug 5 2024, 05:23 AM
Post
#5
|
Group: Members Posts: 3 Joined: 4-August 24 Member No.: 29,216 |
Sorry for that. I did the debugging as much as I could, evertything in the script seems to be working, but I tried it on 2 servers and the data.xml file does not get update. I will try your suggestion.
|
Lo-Fi Version | Time is now: 9th December 2024 - 03:26 PM |