Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

SetContent of HTML Controll

$
0
0

Hey,

 

I try to use the function setContent() of the HTML Controll, but still nothing happen.

 

The HTML Controll in the view.xml

<core:HTML id = "nr1" content="Platzhalter">  </core:HTML>

The javascript function

Ausgabe: function(Wert,Fehler) 
{       if (Wert===1)            {                 /* eslint-disable no-alert*/                 alert("Ihre Eingabe enthielt Fehler");                 alert(Fehler);                 /* eslint-enable no-alert*/                 this.getView().byId("nr1").setContent(Fehler);            }       else            {                 /* eslint-disable no-alert*/                 alert("Ihre Eingabe war fehlerfrei");                 /* eslint-enable no-alert*/       }  }

 

Does somebody can help? (the parameter "Wert" and "Fehler" are not empty, i have checked!!!)

 

Thanks in advance!


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>