How to split a html page without frames and display random questions

1) In my online examination application i need to display timer at the top of the page. even if the user
scrolls down the timer should be visible. is there any way to do this without frames.
2) questions are displayed randomly for each user. iam using rand() function to retrieve the questions from mysql database. now the problem is if the user refresh the page another set of questions are displayed. how to avoid this.
thanks

Hi Thanuja,
Can you try it with the one below..... and checkout whether tht works or not
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  </head>
<script language="javascript">
var i=0
function showDate()
i=i+1
document.getElementById("staticcontent").innerHTML= "<center><b>Time :  " + i +" secs</b></center>"
setTimeout("showDate()",1000)
</script>
<body onload="showDate()"> 
<div id="staticcontent" style="position:absolute; border:1px solid black; background-color: lightyellow; width: 135px;">
</div>
<script type="text/javascript">
//define universal reference to "staticcontent"
var crossobj=document.all? document.all.staticcontent : document.getElementById("staticcontent")
//define reference to the body object in IE
var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body
function positionit(){
//define universal dsoc left point
var dsocleft=document.all? iebody.scrollLeft : pageXOffset
//define universal dsoc top point
var dsoctop=document.all? iebody.scrollTop : pageYOffset
//if the user is using IE 4+ or Firefox/ NS6+
if (document.all||document.getElementById){
crossobj.style.left=parseInt(dsocleft)+5+"px"
crossobj.style.top=dsoctop+5+"px"
setInterval("positionit()",100)
</script>
<%
/* JSP LOGIC*/
%>
<!-- Customized HTML content -->
</body>
</html>REGARDS,
RaHuL

Similar Messages

  • How to redirect to a page (without branching and without pl/sql)

    Hi,
    Have a requirement where when a user log into the application, the APP_USER must be checked against the list of users maintained in a database table, if APP_USER name exist in the table, the user must be redirected to the home page else user must be redirected to the Registration page.
    Tried the branching concept:
    Branch Point: On Load: Before Header
    Condition: NOT Exists (SQL Query returns no rows)
    Expression1 : select * from users_tab where name = v('APP_USER')
    When this condition is given, though the user name does not exist in the users_tab, the page is redirected to page 1 instead of the Registration page.
    Where is the problem here?
    How can it be resolved?
    Is there an alternative way to implement this?
    Edited by: 935799 on Jun 7, 2012 6:51 AM

    935799 wrote:
    Hi,
    Have a requirement where when a user log into the application, the APP_USER must be checked against the list of users maintained in a database table, if APP_USER name exist in the table, the user must be redirected to the home page else user must be redirected to the Registration page.
    Tried the branching concept:
    Branch Point: On Load: Before Header
    Condition: NOT Exists (SQL Query returns no rows)
    Expression1 : select * from users_tab where name = v('APP_USER')
    When this condition is given, though the user name does not exist in the users_tab, the page is redirected to page 1 instead of the Registration page.
    Where is the problem here?
    How can it be resolved?
    Is there an alternative way to implement this?
    Edited by: 935799 on Jun 7, 2012 6:51 AMThe above should work, try this
    select * from users_tab where upper(name) = nvl(:APP_USER,'X')

  • How to chage Workspace Start Page without installing Reporting and Analysis

    Hi:
    any one know how to chage Workspace Start Page without installing Reporting and Analysis?
    thanks

    Not totally sure what you are asking but if you want to change the start page for users/groups have a read of - http://download.oracle.com/docs/cd/E17236_01/epm.1112/bpmui_admin/frameset.htm?assigning_default_preferences.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How  to chage Workspace Start Page without installing Reporting and Analys?

    Hi:
    any one know how to chage Workspace Start Page without installing Reporting and Analysis?
    thanks

    Not totally sure what you are asking but if you want to change the start page for users/groups have a read of - http://download.oracle.com/docs/cd/E17236_01/epm.1112/bpmui_admin/frameset.htm?assigning_default_preferences.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to create a html page

    Hello,i am very new to dreamweaver 8,and i have searched
    everwhere possible on how to create a html page.My website has a
    navegation bar.And on the navegation bar it has links,like
    forums,your accounts,and etc,but thats already integrated with the
    website.Now i have an option in the admin area,wher i can create a
    new category so that it would show up in the navegation bar,and i
    have a drop down menu where i cans select what to put in that
    category.But also i have an option to put a external url,so that
    when they click on it,it will take them to where that link is
    directed.The point is that i asnt to make a category in the
    navigation menu that says Lirics.So that i can put lirics of songs
    and etc,and that when users click on that link it will take them to
    the lirics page..Do you guys understand?Sorry for the bad english,i
    am now quite good with it..

    The most eloquent description will do nothing for us. To get
    a solution to
    your problem, we must see your code. Can you upload the file
    and post a
    link to it, please?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "don_playboy" <[email protected]> wrote in
    message
    news:eaadi9$kjf$[email protected]..
    > well what i am trying to say is that i created a Folder
    named
    > Liricas(which is
    > lirics in spanish),on my ftp.Now since i created that
    folder in my ftp,it
    > will
    > show on my navegation menu control panel.But it will be
    blank since it has
    > nothing on it.Now what i want to do is,sicne i created
    that folder,and i
    > go to
    > my nav meny control panel and select it as a category it
    will show on my
    > navegation menu(the Liricas that is),but when u click it
    it has
    > nothing,since
    > it has no html or anything in the category.Now i want to
    create a html
    > page so
    > that i can put albums names,and under those albums name
    i want to create a
    > link
    > or category thats for lirics.So all this will be stored
    on the ftp.and
    > when
    > users click on the Liricas category on my navigation
    menu,it will take
    > them to
    > the liricas index page,which will show all the lirics...
    >
    >
    >
    >

  • How to create a HTML page like iView, thanks in advance!

    How to create a HTML page like iView, thanks in advance!
    I'm a newcomer, would you please tell me how to create a HTML page in WebDynpro ? In fact, i want create one welcome page which use html format and include some javascript.
    thanks again.

    jakinapallykrishna , thank you very much for you reply.
    The pdf file is a simple application, but i want know how create a view in HTML format (<HTML>... </HTML>), maybe use HTMLB control, i don't sure it.
    In fact, I need create a view in portal, some pictures in it, once mouse over one picture, it need change another picture replace old one. I don't know how to do it, just know it can be handled in HTML page. So, i need help.
    Thanks.

  • How to show an html page using JEditorPane in applet.

    I have never use jeditorpane with applet so i dont know how to show a html page.if you have some code or any example then please posted that.Thanks

    public class MyApplet extends JApplet{
        private JTextPane textPane = null;
        public void init(){
        HTMLEditorKit editorKit = new HTMLEditorKit();
        HTMLDocument  htmlDoc   = (HTMLDocument)editorKit.createDefaultDocument();
        textPane  = new JTextPane();
        textPane.setEditable(false);
        textPane.setEditorKit(editorKit);
        textPane.setContentType("text/html");
        textPane.setDocument(htmlDoc);
        Container c = getContentPane();
        c.add(new JScrollPane(textPane),    BorderLayout.CENTER);
        c.add(buttonPanel,                  BorderLayout.SOUTH);
        c.add(Box.createVerticalStrut(5),   BorderLayout.NORTH);     
        c.add(Box.createHorizontalStrut(5), BorderLayout.EAST);     
        c.add(Box.createHorizontalStrut(5), BorderLayout.WEST);
        public void setHtml(String html){
            // you should check the textpane's document to detrmine if there
            // is already text in there..if so, then clear the textpane text and then
            // set the new html...Note: JTextPane only show basic Html ..
            // not like a full blown browser
            textPane.setTextt(html);
            textPane.setCaretPosition(0);
    }

  • How do you add a page without messing up all the images below.?

    How do you add a page without messing up all the images below? 
    I try the pages ->add a page beak but it messing up with all the images below. Examples : I want to insert a page between page 1 and 2. My images doesn't follow my text. All the images stay in place and all the text bump 1 page.  Pretty frustrating!

    What version of Pages?
    Peter

  • How to send inline HTML page in mail(not as attachment)

    Hi,
    I am using JavaMail to send details to users using text mail. Its working successfully. But now i have to send the details on mails that will contain HTML page (not as attachment but as inline HTML page containing text) and details in it. Plz help me. Its urgent.
    Thanks in advance,
    Devom

    Set the contentType to "text/html" and send away.
    (If you need both text and html you will need to make a multi-part message), this is covered in the FAQ.
    http://java.sun.com/products/javamail/FAQ.html
    travis (at) overwrittenstack.com

  • Opening new HTML window without toolbars and set size.

    Hi, I am researching the possibilities for opening a new HTML
    window without toolbars and at a certain size. I have found a bunch
    of tutorials and even this guide here at adobe:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14192
    BUT
    I work in Flash 8 and I use Dreamweaver 8.2 (with all the
    latest updates). As you know Dreamweaver uses Java Script to
    implement Flash into a HTML page. By generating a folder called
    Scripts and the file AC_RunActiveContent.js
    So I tri the methods described in the above technote. I even
    found a guide at kirupa...and at flashkit. I even downloaded an
    example file from Flashkit. But any implementation of any of the
    methods above in a Flash 8 file implemented with DW does NOT work.
    I am not a hardcore programmer. I am more the kind of guy who
    finds code that works and moulds it to my purpose. Copy and paste
    programming if you may. So its not so easy for me to see why it
    wont work and where the problem is. But I do have a suspicion
    towards the javascript flash implementation that Dreamweaver does.
    So if anyone have guide or tips to how I can use Flash 8 and
    DW 8.2 and get flash to open a new HTML window with a certain size
    and without scroll or toolbars..that would be GREAT!!
    Thanks in advance!
    AKIRA

    AKIRA,
    The TechNotes are from the Cold Fusion site at Adobe. I am
    not certain, but I think that you need to be using Cold Fusion on
    your websites server to be able to use the functions to which you
    refer. Again, I am not certain that I am right here, but it could
    be a place to start research into the problem.
    -john

  • How to upload an html file using jsp and jdbc

    Hi,
    im trying to upload an html page using JSP and jdbc. but of no success.
    my aim is to keep some important html pages in the database.the file size can vary.the file has to be selected from a local machine (through the browser) and uploaded to a remote machine(where the databse resides).
    any help/sample code or pointer to any helpful link is appreciated.
    thanks in advance
    javajar2003

    When uploading a file, I use a byte array as a temporary buffer..
    So, you should then be able to store the byte array in the
    database as binary data.
    example>
    //Temporary Buffer To Store File
    byte[] tmpbuffer = new byte[860];
    //Some Code To Upload File...
    //File Should Now Be In Byte Array
    //Get DB Connection and execute Prepared Statement
    Connection con=//GET DB CONNECTION;
    String sql=insert into TABLE(page) values(?);
    PreparedStatement ps=con.prepareStatement(sql);
    ps.setBytes(1,tempbuffer);
    ps.executeUpdate();
    //Close PS and Free DB Connection
    ..... and this method looks like you dont even have
    to store the file in a byte array, you can just give
    it the input stream.
    ps.setBinaryStream(int, inputStream, int);
    You may have to make several attempts at this. I have
    uploaded a file and temporarily stored it in a byte array,
    but have never from there stored it in the DB as binary
    data.. but this looks like it'll work.
    Good Luck!

  • I recebtly bought an app (FIFA 12) now every time i play a match after the match it does not save an just goes to the home page without warning and i have to start all over again and no i did not press the home button. plz help

    i recebtly bought an app (FIFA 12) now every time i play a match after the match it does not save an just goes to the home page without warning and i have to start all over again and no i did not press the home button. plz help

    You can't gift it, gifting can only be done from within the store, not from within your library.
    Puchases are considered final but you can try the 'report a problem' link to contact iTunes Support and see if they will refund or credit you : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I want to bulk purchase single tracks, how do i go about this without buying and paying each time

    I want to bulk purchase single tracks for my ipod, how do i go about this without buying and paying each time, can i not amass a number of tracks and then go to checkout. It seems to want to charge me each time. Help!

    Put them in your wishlist

  • Two days before my iphone 5 battery was expand and display screen came out and now there has some gap between frame and display.so how it will happen and i already got before months.now i need to backup all the data to icloud before through out.

    two days before my iphone 5 battery was expand and display screen came out and now there has some gap between frame and display.so how it will happen and i already got before months.now i need to backup all the data to icloud before through out.
    https://www.dropbox.com/home/iphone
    https://www.dropbox.com/home/iphonehttps://www.dropbox.com/home/iphone

    Make an appointment at the genius bar of your local Apple Store. The phone has a 1 year warranty. If it's no longer under warranty, a replacement is $269.

  • How do I set up pages for mac and ipad to share a document and keep them synced.

    How do I set up pages for mac and ipad to share a document and keep them synced.

    You can upload them from Mac to iCloud and then download on the iPad. They only directly sync between iOS devices. The Mac version of Pages has more options that are not available on iOS. If you use a font that is not available on iOS it will change the font. Some layout options aren't available either.

Maybe you are looking for

  • Tecra S1 video out does not work

    Hi, I tried to connect my TS1 via cinch to a beamer. Unfortunately because of other reasons I can not use VGA. However I do not get any signal at all. I tried nearly everything. I installed Windows XP with Toshiba Recovery CDs again, but it does not

  • How do I transfer an address book from one computer to another?

    I'm trying to transfer an address book from my G4 to my Imac G5 and can't seem to figure out how to do it. I've tried exporting out of one, but the other doesn't read it. These computers are not connected so I'm transferring via cd. Thanks, Dick Skov

  • I cant open itunes or quicktime... i need help

    i just downloaded itunes and quicktime and whenever i want to use itunes or quicktime it wont open, what should i do hp   Windows XP  

  • Using the function WRITE_FORM in a SAPScript window

    hi everyone. I need to print the texts of the SO10 transaction, in a SAPSCRIPT page, but i've not able to do so. i have a SapScript with 2 pages: FIRST and SECOND,  in the window "POINT2" of the page "FIRST",  I put a  "NEW-PAGE" , between an if cond

  • Creation of GUI

    Hello puce I am an engineering student and I need to submit a project in my final semister.My project is creation of browse files and the platform is java.For this I also need to create a GUI.I think swings is the best choice bbut I am unable to hit