Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Html/JSP Problem

  • 25-11-2003 06:46PM
    #1
    Closed Accounts Posts: 177 ✭✭


    Im working on a website project for college which incorporates JSP pages and I have run into a problem. Basically when a user logs in, the jsp script will have a diff menu based on the users ranking in the database. The problem in when someone logs in I need a seperate frame to instantly refresh, instead of having to click a link. I was thinking along the lines of <META HTTP-EQUIV="refresh" content="1;url=menu2.htm; target=leftFrame" > but that doesnt work. Anyone any suggestions?

    Joe.


Comments

  • Registered Users, Registered Users 2 Posts: 7,742 ✭✭✭mneylon


    It might help if you posted a URL to look at what you've done


  • Closed Accounts Posts: 177 ✭✭dragon_ninja82


    I would if i could but its not online as im running all the jsp off a local server here on this computer. I found a kinda solution using javascript:

    <script>
    setTimeout("top.leftFrame.location = 'menu2.htm'", 1000);
    </script>

    But for some reason the images dont load with it :(


  • Moderators, Politics Moderators, Paid Member Posts: 44,019 Mod ✭✭✭✭Seth Brundle


    You need to preload the images
    try this in the head
    <script language="JavaScript">
    <!--
    function loadImage(){
    img1 = new Image(200,200)
    img1.src = "mypic.gif"
    }
    -->
    </script>
    and this as the body tag
    <BODY onLoad="loadImage()">


  • Closed Accounts Posts: 177 ✭✭dragon_ninja82


    Thanks man, worked like a charm!


  • Moderators, Politics Moderators, Paid Member Posts: 44,019 Mod ✭✭✭✭Seth Brundle


    glad to hear it.:cool:


  • Advertisement
Advertisement