Sunday, 27 August 2017
php - JavaScript disabled on Firefox meaning my buttons don't work, is there a way to write the buttons such that they will work?
Answer
So I have written a basic page which has buttons:
with the script:
function minus() {
if ( > 1){
var num = - 1;
var number=num;
window.location.href = "page2.php?w1=" + number;}
};
So this just subtracts 1 off of a PHP variable and it works perfectly well in Chrome, IE and Safari, but in Firefox it doesn't work at all. Is this a security thing is this code particularly insecure?.
Is there any way in which I can write a button to change this PHP variable without using JavaScript as to make it work on Chrome, IE, Safari + Firefox?
Many thanks
Subscribe to:
Post Comments (Atom)
casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV
In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...
-
The whole error output being: LNK2019 unresolved external symbol wWinMain referenced in function "int __cdecl __scrt_common_main_seh(vo...
-
I have come across CORS issues multiple times and can usually fix it but I want to really understand by seeing this from a MEAN stack paradi...
-
I recently used canvas to conert images to webp, using : const dataUrl = canvas.toDataURL('image/webp'); But this takes a lots of ti...
No comments:
Post a Comment