Rank: Member Groups: Member
Joined: 1/29/2015 Posts: 26
|
I try to execute this code and I get this error: WebView1.EvalScript("document.getElementById('cdk-step-content-2-0').style.visibility") Command "WebView1.EvalScript("document.getElementById('cdk" is not valid.
Is the EvalScript detecting the '-' symbol and breaking the code? The javascript works correctly in F12 within Chrome.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
What language do you use and when do you get this error (compile time or runtime)? This is not an error from EvalScript. If it is an error from EvalScript, it would complain ONLY about the JavaScript code, not about "WebView1.EvalScript("document.getElementById('cdk". In another word, the message would not include "WebView1.EvalScript" part.
Thanks!
|