HTML tag in IRIS
Hi,
After converting from Ensemble 2018 to IRIS 2024 I noticed that HTML tag is not recognized?
.png)
I just copied & pasted this same from Ensemble to IRIS and in Ensemble looks fine!?
.png)
Thanks
Comments
I think it's the indention of the ClassMethod line. If you remove the leading space before it, then the Language Server should be happier about parsing the method
That was my first action by putting the cursor at the beginning of the word Class and backspace but there no space, strange !?
The correct syntax is &html < your content >
I didn't detect the closing > in your screenshot
It generates:
Write " your content "
in the resulting .int code
Just the same as it did in Caché or Ensemblecreated with NPI
see also docs
https://docs.intersystems.com/iris20251/csp/docbook/Doc.View.cls?KEY=GCSP_directives#GCSP_directives_expressionscreated with NPI
Ok I see where is the problem, the issue is that the code before it is raising errors, the DIV tag and && is not an acceptable syntax, any ideas what's wrong with that syntax, I tried double quotes for div and single & for and but still?
.png)
Thanks
In your screenshot, I see
$('<div>') simpledialog2(But W3Schools says:
https://www.w3schools.com/Jquery/jquery_syntax.asp
-
A $ sign to define/access jQuery
-
A (selector) to "query (or find)" HTML elements
-
A jQuery action() to be performed on the element(s)
I didn't write JavaScript for decades, and I'm not an expert.
BUT: I fail to detect the point after the closing bracket
It was just my Studio that marked it as an error.
created with NPI