Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@pecata umm... the thing is that I also want to expand my knowledge. Otherwise I would have used a finished software already, but thanks anyways
-
olback109817yI'd love to help but it's 2:30 in the morning and I'm supposed to sleep. Is the code on github or anywhere I can take a look?
-
Here's some stuff to try:
-Console logging the jsonResponse object to see if the values change.
-Use "textContent" instead of "innerHTML".
-The element ids exist.
Nice <damn> tag btw ;) -
Dacexi120367yAlso, `please use this new thing called ${templates} instead of doing "" + var + ""`
-
Oh... I just rechecked it and it is working now. I did nothing. Lmao
Seems like I just needed some sleep haha.
Sorry all :)
And thanks for the answers. Will keep them noted down. -
@Dacexi the template strings from js are breaking the php echo'd javascript
-
Php is using $name, $name['example'] and $_NAME for its variables.
And since template strings in js are also using the dollar sign, php is punishing Javascript not to use them for template strings.
Related Rants
Since I am running a home server and want to be updated on what the stats are, I did create a webpage where I can get the "renewed" information via ajax (not with jQuery) in every 5 seconds. The thing is that I don't get the "new" information. It's still the old information that keeps reshown in the div.
I checked the server.php file. It keeps getting regenerated. Since, that is the case, it isn't the server to blame. But more likely the client.php is the one that is causing problems. May someone know how to deal with that?
undefined
js
php