View Full Version : Getting 2 Javascripts on Same Page Dynamically

01-23-2009, 12:36 AM
Hello all,

I am having an issue, I am trying to get 2 javascripts to display on the same page...now i have read about doing the <body onload="XXXX()"> and whatnot but that is not the problem, the problem is that some users will see both javascripts and some wont and i need them to run independant of each other and also with each other.


I have 2 javascripts: A and B
I have 2 Portlets: O1 and O2

Person 1 has access to oracle portlets O1 (javascript A) and O2 (javascript B) and they see both javascripts working at the same time no problem.

Person 2 just has access O1 but not O2 and needs to see Script A working even though Script B is not present.

I just need to be able to have the scripts run with each other or independant of each other at the same time.

This is currently frustrating me and I cannot seem to get this to work.

If anyone can please assist me on what i need to do that would be great. :thumbsup:


01-26-2009, 06:26 PM
anyone have any input on this?

Philip M
01-26-2009, 06:41 PM
You will need to redirect Person2 to a different page which does not have Script2.