Forum Discussion
AdamKeever1
6 years agoQrew Commander
Copy & Paste gives me this syntax error and I can't find a fix:
------------------------------
Adam Keever
------------------------------
------------------------------
Adam Keever
------------------------------
EverettPatterso
6 years agoQrew Captain
Looks like you put that into a formula field, that code goes into a code page.
You would use the IOL technique in a formula field to load the code page.
------------------------------
Everett Patterson
------------------------------
You would use the IOL technique in a formula field to load the code page.
[iol] & "module.js" & [/iol]
Check out this link if you need more info, How Do I Setup the Image Onload Technique (IOL)?
------------------------------
Everett Patterson
------------------------------
- AdamKeever16 years agoQrew CommanderHere is the result I get with IOL:
------------------------------
Adam Keever
------------------------------- EverettPatterso6 years agoQrew CaptainOpen your dev tools F12 and put this code into the console while on the report, does it work then?
var description = $("#introText").text().replace(/script/g, "span"); $("#introText").html(description); var mytoday = new Date().toLocaleString(); $(".mytoday").html(mytoday);
or
var description = $("#descriptionInFacets").text().replace(/script/g, "span"); $("#descriptionInFacets").html(description); var mytoday = new Date().toLocaleString(); $(".mytoday").html(mytoday);
------------------------------
Everett Patterson
------------------------------- AdamKeever16 years agoQrew CommanderThe second one works, but not the first one:
------------------------------
Adam Keever
------------------------------