Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Getting 2 Javascripts on Same Page Dynamically

    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.

    Example:

    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.

    -Kyle

  • #2
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    anyone have any input on this?

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,982
    Thanks
    203
    Thanked 2,536 Times in 2,514 Posts
    You will need to redirect Person2 to a different page which does not have Script2.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •