Copy link to clipboard
Copied
variable einsetzen funktioniert nicht
land_1_seite_1_bt_1
x = 1;//land
y = 1;//seite
this.land_1_seite_1_bt_1.on("click", anzeige_web_1_2);
this.["land_" + x +"_seite_" + x + "_bt_" + x].on("click", anzeige_web_1_1);
Copy link to clipboard
Copied
use:
this["your string"].on("click",etcF);
NOT
this.["your string"].on("click",etcF);
Copy link to clipboard
Copied
danke es funktioniert
ich habe noch eine bitte.
("click", anzeige_web_1_1) klappt nicht.
danke vorab
//-------------------------------------------
//funktioniert
x = 1;//land
y = 1;//seite
this[["land_"+x]+["_seite_"+y]+"_bt_1"].on("click", anzeige_web_1_1);
function anzeige_web_1_1(evt) {
pop = window.open(...........................);
pop.focus();
}
//----------------------------------------------------------------------------------------
//funktioniert nicht
x = 1;//land
y = 1;//seite
this[["land_"+x]+["_seite_"+y]+"_bt_1"].on("click" , [anzeige_web_+[y]+_1]);
function [anzeige_web_+[y]+_1](evt) {
pop = window.open(...........................);
pop.focus();
}
Copy link to clipboard
Copied
use:
this["land_"+x+"_seite_"+y+"_bt_1"].on("click", anzeige_web_1_1)