Forum Discussion
AdamKeever1
6 years agoQrew Commander
The second one works, but not the first one:
------------------------------
Adam Keever
------------------------------
------------------------------
Adam Keever
------------------------------
EverettPatterso
6 years agoQrew Captain
Ok so use this on your code page
------------------------------
Everett Patterson
------------------------------
(function(){ var querystring=document.location.search; if(/a=q/i.test(querystring)) { var description = $("#descriptionInFacets").text().replace(/script/g, "span"); $("#introText").html(description); var mytoday = new Date().toLocaleString(); $(".mytoday").html(mytoday); } if(/a=td/i.test(querystring)) { var description = $("#descriptionInFacets").text().replace(/script/g, "span"); $("#descriptionInFacets").html(description); var mytoday = new Date().toLocaleString(); $(".mytoday").html(mytoday); } if(/dlta=mog/i.test(querystring)) { var description = $("#descriptionInFacets").text().replace(/script/g, "span"); $("#descriptionInFacets").html(description); var mytoday = new Date().toLocaleString(); $(".mytoday").html(mytoday); } })();
------------------------------
Everett Patterson
------------------------------
- AdamKeever15 years agoQrew CommanderUpdated to correct an element for use with table including dynamic filters (use the above code for tables without dynamic filters):
(function(){
var querystring=document.location.search;
if(/a=q/i.test(querystring)) {
var description = $("#descriptionInFacets").text().replace(/script/g, "span");
$("#descriptionInFacets").html(description);
var mytoday = new Date().toLocaleString();
$(".mytoday").html(mytoday);
}
if(/a=td/i.test(querystring)) {
var description = $("#descriptionInFacets").text().replace(/script/g, "span");
$("#descriptionInFacets").html(description);
var mytoday = new Date().toLocaleString();
$(".mytoday").html(mytoday);
}
if(/dlta=mog/i.test(querystring)) {
var description = $("#descriptionInFacets").text().replace(/script/g, "span");
$("#descriptionInFacets").html(description);
var mytoday = new Date().toLocaleString();
$(".mytoday").html(mytoday);
}
})();
This works in the code page.
This also allows you to add buttons to the top of the report:
------------------------------
Adam Keever
------------------------------ - AswathyPadikkal5 years agoQrew MemberHi Adam ,
I've been trying to use the script posted by Everret but seems like it's not working for me .
Attached screenshot for reference.
------------------------------
Aswathy Padikkal
------------------------------ - AswathyPadikkal5 years agoQrew MemberHi ,
In reference to my above question , where should i place the html code ? I know i'm placing it incorrectly in the above snapshot.
Thanks all for your help
------------------------------
Aswathy Padikkal
------------------------------