COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: EarthDog on 24 Sep 2013 05:58:47 AM

Title: How to use jQuery in custom login screen?
Post by: EarthDog on 24 Sep 2013 05:58:47 AM
I need to use jquery in a custom login form that i am creating but i cant find a way to do it.

I have tried including the script tag but nothing happens:

<script src="/cognos/ps/login/jquery-2.0.3.min.js"></script>

I can successfully include custom css in the login xhtml page but javascript of any kind.

Standard javascript works though.
Title: Re: How to use jQuery in custom login screen?
Post by: EarthDog on 24 Sep 2013 08:18:02 AM
I also tried this:

<script>
    document.body.appendChild(document.createElement("script")).setAttribute("src","http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js")
</script>


but no effect.

Does anyone know how the login html is being build?

If i do a view page source there are a lot of things that i dont have in my xhtml..
Title: Re: How to use jQuery in custom login screen?
Post by: Grim on 24 Sep 2013 09:07:09 AM
If you want to customize the login page there are Proven Practice articles for that.

See here:
http://www.ibm.com/developerworks/data/library/cognos/security/cognos_bi_platform/page546.html

Title: Re: How to use jQuery in custom login screen?
Post by: EarthDog on 24 Sep 2013 09:37:08 AM
Yeap i have been reading all these, BUT i will have to use standard Javascript in order to do anything i want.

Currently i am using standard javascript but i want to use jQuery for more complex situation , and i dont want to write pages of std js...

If someone knows how the login page is "generated" would be of great help...