Home Analyst Portal

Modify home page with javascript/jquery

Morten_MeislerMorten_Meisler Premier Partner Advanced IT Monkey ✭✭✭
If I want to modify elements on the Home page today, I am using a rather ugly method of creating a small delay on the code I want to execute. Otherwise the effect is not seen.

Example:

$(document).ready(function () {

 function hideHomeTitle()
 {
	$(".page_bar .page_title:contains('Home')").hide(); 

 }
 /*Execute the hide home title after 1 second */
 setTimeout(hideHomeTitle, 1000);
});

So even though the DOM is fully loaded, I still need to throw in a delay for the element to be modified. Is there any other method to use here or something in the pipeline? Like an app.custom.formTasks.add('HomePage' .. or similar?

Thanks :) 

Best Answer

Answers

Sign In or Register to comment.