Welcome Guest Search | Active Topics | Sign In | Register

EvalScript not parsing javascript command correctly? Options
Tom Wynne
Posted: Wednesday, November 23, 2022 7:17:46 PM
Rank: Member
Groups: Member

Joined: 1/29/2015
Posts: 26
I try to execute this code and I get this error:
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.
Posted: Monday, November 28, 2022 9:27:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,541

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.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.