Open a url rotator in the same browser window

Hi
I am trying to get a URL rotator to use in house on a multi-monitor display. I would like when accessing this page from a browser window the content opens in the same window. What I would like is to set the page as the home page in a browser and have the rotator open in the same window here is the code I have please help.
<head><title>Control page</title>
<SCRIPT language="JAVASCRIPT">
var Win;
var page_index=0;
var page = new Array();
page[0] = "http://www.ocala.com/";
page[1] = "http://www.ocala.com/apps/pbcs.dll/section?Category=news";
page[2] = "http://www.ocala.com/apps/pbcs.dll/section?Category=sports";
page[3] = "http://www.ocala.com/apps/pbcs.dll/section?Category=yourlife";
page[4] = "http://www.ocala.com/apps/pbcs.dll/section?Category=money";
page[5] = "http://www.ocala.com/apps/pbcs.dll/section?Category=health";
page[6] = "http://www.ocala.com/apps/pbcs.dll/section?Category=entertainment";
page[7] = "http://www.ocala.com/apps/pbcs.dll/section?category=community";
page[5] = "http://www.ocala.com/apps/pbcs.dll/section?Category=entertainment";
page[5] = "http://www.ocala.com/apps/pbcs.dll/section?Category=entertainment";
function next_page()
page_index++;
if (page_index == 8)
page_index = 0;
Win.location.replace(page[page_index]);
</SCRIPT>
</head>
<body>
<SCRIPT language="JAVASCRIPT">
Win=window.open(page[0], 'Win','resize=yes,toolbar=no,status=yes,scrollbars=no,screenX=0,screenY=0')
setInterval("next_page();",90000);
</SCRIPT>
</body>

<SCRIPT language="JAVASCRIPT">But this is a Java forum, not a Javascript forum.

Similar Messages

  • Opening hyperlinks in the same browser window

    Hey Gang!
    How does one create a hyperlink such that it opens in the
    same browser window and doesn't keep opening a new window each
    time?
    Cheers!
    Gregory

    Do you meant that you want to "open the hyperlinks of your flash file in the same browser window"
    You flash file will be put on the internet and I think you have to configure your brower to achieve this goal.
    We all know that IE can be configured to open the hyperlinks in the same window.
    Thus if you want your flash file achieve this feature you need to write a code to control your brower.
    This code can be a simple JS code. You can just google this to find out the answer.
    good luck
    I love using flash quiz generator

  • I used to be able to move tabs right or left by drag and drop in the same browser window. Now, after updating to 35-Mac, i can't do that. How can I do that now?

    using FF 35 on MacBook Pro

    Thank you for your response -- It seems the "classic theme restorer" add-on is the problem. With that enabled I cannot move tabs. With it disabled I can. I've used that add-on for years without issue on Mac and PC. The PC is still fine, just the Mac is problematic since the FF update about a week ago.
    So I guess that's the answer unless anyone knows of some other trick or setting to change so FF is able to have tabs below the address bar AND be able to move tabs left to right within the same browser window!

  • Is it possible for multiple/different hyperlinks to open up in the SAME browser window?

    I am able to put hyperlinks to various web pages in a PDF document.  When I click on the first one, it opens up in a new browser window.   The problem is that I want each subsequent link to reuse that same browser window.  This seems to work when I open up the PDF document from my desktop, but if the document is first loaded into a web page, each link opens up a *new* browser window.

    Hi Pat,
    Thanks for the quick response.
    I used Adobe Acrobat Professional 8 to create the document.  I added a link and then in the "Actions" property for the link, I specified
    "Run a javascript":  app.launchURL("http://www.cnnfn.com", true) .
    I had to use the app.launchURL method because the "Open a Web Link" action causes a warning message to appear when the PDF is contained in web page.  You have to first click "Open in a new window" before the url is opened up in a new browser window.  The behavior that we want is that each time you click on a hyperlink on the PDF, you are automatically taken to a specific browser window (without warning and reusing the window that has already been opened).
    -Elsie

  • Open a URL link in the same window as SWF file in indesign CS5

    Hello,
    I am trying to create a SWF file using indesign CS5.  I have created buttons and placed in URL links but they always open another window.  I would like to know if there is a way to have the URL open in the same window that the SWF file has been created.  I tried, putting "_self" to target it in the URL bar, but nothing works.
    Thanks in advance
    TK

    Okay, I found the code but I can't get it to work locally.  If you have a web server maybe you can upload the files (swf and html) after you Publish them:
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    var myURL:URLRequest = new URLRequest ("http://www.google.com");
    testlink.addEventListener(MouseEvent.CLICK, clickText);
    function clickText(myevent:MouseEvent):void {
    navigateToURL(myURL, "_self");
    you have to have on the stage a link element called "testlink" (see the code above) which would be a Movie Clip with the label testlink.  It can be anything from InDesign:  a button, a rectangle, a circle, a graphic, you get the idea.  Just select that object in Flash and label it testlink or anything you choose but if you change the name from testlink also change the name in the code snippet where the line "addEventListener" is.

  • How to open the PDF form in the same browser window

    Hi All,
       I have created a webdynpro application to display a PDF form.The form is displayed in the new window.I want it to be displayed in the same window.
    How to make the PDF form to be displayed in the same window
    Thanks
    Ponnusamy P

    Hi Ponnusamy
    Earlier there was <b>_self</b>  as the target property for LinkToURLUIElement, but it is not available anymore,instead we need to use exit plugs
    there is one way to do
    1) Create a viewset of type Grid in your window
    2) Create a new view with iFrame added to it
    3) Specify number of columns/rows as per your requirement
    to the viewset  Suppose 1 Column and 2 Rows
    4) In the second row embed  your view which has iframe
    Using Plugs[Inbound and Outbound] you can view your PDF in the same window.
    This is not solution but this is one of the way to achieve your need
    Best Regards
    Chaitanya.A

  • FILE UPLOAD PROBLEM SHOWING THE CONTENTS IN THE SAME BROWSER WINDOW

    Hi,
    This is amit Joshi
    I have uploaded content using input tag of type file and posted to jsp as multipart/form-data type
    in that jsp i am using following code to display the content in browser but only first content is displayed How can i modify it to show all content in the file ..
    <html>
    <head>
    <title>File Upload Display</title>
    </head>
    <body>
    <%
    //ServletOutputStream sout=response.getOutputStream();
    StringBuilder strBuilder = new StringBuilder();
    int count=0;
    String f;
    f=request.getParameter("filedb");
    DBManager dbm = new DBManager();
    //dbm.createTable("mms3");
    //log.info("In JSP : "+ f);
    //dbm.insert_data(f,"mms3");
    %>
    <%
    if (ServletFileUpload.isMultipartContent(request)){
    ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());
    List fileItemsList = servletFileUpload.parseRequest(request);
    strBuilder.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>").append('\r').append('\n').append("<xpage version=\"1.0\">").append('\r').append('\n');
    String optionalFileName = "";
    FileItem fileItem = null;
    Iterator it = fileItemsList.iterator();
    ServletOutputStream outputStream=null;
    while (it.hasNext()){
    FileItem fileItemTemp = (FileItem)it.next();
    if (fileItemTemp.isFormField()){
    %>
    <b>Name-value Pair Info:</b>
    Field name: <%= fileItemTemp.getFieldName() %>
    Field value: <%= fileItemTemp.getString() %>
    <%
    if (fileItemTemp.getFieldName().equals("filename"))
    optionalFileName = fileItemTemp.getString();
    else
    fileItem = fileItemTemp;
    if (fileItem!=null){
    String fileName = fileItem.getName();
    %>
    <b>Uploaded File Info:</b>
    Content type: <%= fileItem.getContentType() %>
    Field name: <%= fileItem.getFieldName() %>
    File name: <%= fileName %>
    <%
    if(fileItem.getContentType().equals("image/jpeg")) { %>
    File : <p><%
         //response.setContentType("image/gif");
         byte[] bArray=fileItem.get();
         response.setContentType("image/jpeg");
         outputStream=null;
         outputStream= response.getOutputStream();
         outputStream.write(bArray);
         outputStream.flush();
         outputStream.close();
    else if(fileItem.getContentType().equals("text/plain"))
         %> File : <%= fileItem.getString() %>
    <%
    byte[] bArray=fileItem.get();
    response.setContentType("text/plain");
         outputStream = response.getOutputStream();
         out.println();
         outputStream.write(bArray);
         outputStream.flush();
         outputStream.close();
    %> </p> <%
    %>
    </body>
    </html>
    Edited by: Amit_Joshi on Nov 13, 2007 10:58 PM

    Well Well Well..
    That would not work...
    What you have to do is save the uploaded file content on to a location and then pass the fileName as a request parameter to a deidicated which displays the contents of that file.
    Just as an example
    <html>
    <head>
    <title>File Upload Display</title>
    </head>
    <body>
    <%
    //ServletOutputStream sout=response.getOutputStream();
    StringBuilder strBuilder = new StringBuilder();
    int count=0;
    String f;
    f=request.getParameter("filedb");
    DBManager dbm = new DBManager();
    //dbm.createTable("mms3");
    //log.info("In JSP : "+ f);
    //dbm.insert_data(f,"mms3");
    %>
    <%
    if (ServletFileUpload.isMultipartContent(request)){
    ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());
    List fileItemsList = servletFileUpload.parseRequest(request);
    strBuilder.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>").append('\r').append('\n').append("<xpage version=\"1.0\">").append('\r').append('\n');
    String optionalFileName = "";
    FileItem fileItem = null;
    Iterator it = fileItemsList.iterator();
    ServletOutputStream outputStream=null;
    while (it.hasNext()){
       FileItem fileItemTemp = (FileItem)it.next();
    %>
    Name-value Pair Info:
    Field name: <%= fileItemTemp.getFieldName() %><br/>
    Field value: <%= fileItemTemp.getString() %><br/>
    <%
    if (fileItemTemp.getFieldName().equals("filename"))
        optionalFileName = fileItemTemp.getString();
    if(!fileTempItem.isFormFiled()){
       String fileName = fileItem.getName();
       fileItem.write(optionalFileName);
    %>
    Uploaded File Info:
    Content type: <%= fileItem.getContentType() %><br/>
    Field name: <%= fileItem.getFieldName() %><br/>
    File name: <%= fileName %><br/>
    <%
    if(fileItem.getContentType().equals("image/jpeg") || fileItem.getContentType().equals("image/pjeg")) {
    %>
      <img src="FileServlet?fileName=<%=optionalFileName%>"   
    <%
    %>
    </body>
    </html>a sample code snippet for FileServlet.
    String fileName =  request.getParameter(fileName);
      File file = new File(fileName);
       if(!file.exists())
         return;
      // If JSP
      String mimeType = application.getMimeType("fileName");
           If you are using servlet
           String mimeType = this.getServletContext().getMimeType(fileName);
         response.setContentType(mimeType);  
         response.setHeader("Content-Disposition","inline;filename=\\"+fileName+"\\");
      BufferedOutputStream out1 = null;
      InputStream in = null;
      if(mimeType == null)
         mimeType = "application/octet-stream";
      try{
         in = new FileInputStream(f);
         response.setContentLength(in.available());
         BufferedOutputStream out1 = new BufferedOutputStream(response.getOutputStream(),1024);
         int size = 0;
         byte[] b = new byte[1024];
         while ((size = in.read(b, 0, 1024)) > 0)
            out1.write(b, 0, size);
      }catch(Exception exp){
      }finally{
          if(out1 != null){
             try{
                out1.flush();               
                out1.close();
             }catch(Exception e){}
          if(in != null){
            try{in.close();}catch(Exception e){}
      } Hope that might answer your question :)
    However,this is not the recommended way of doing this make use of MVC pattern.Would be a better approach.
    you might think of googling on this and can findout what is the best practise followed for problems of this sort
    REGARDS,
    RaHuL

  • Launch an URL within same browser window

    Hi ABAP WebDynproExperts,
    Here is a short scenario description what I want to achieve.
    I have a ABAP WebDynpro Component which has "Input-Parameters" (Parameters of the Inbound-Plug - Default). Within the handledefault Method I want to call one of my own Function module which generates another URL.
    Now I want to launch this URL directly in the same browser window directly without putting the URL on an button. So the ABAP WebDynpro Component/Window/View has no UI elements itself - it should just be used to parse the "importing paramaters" via the url parameters to the backend and executing the URL without user interaction.
    Unfortunately I was not able to find a WD specific method how to call a URL in the same browser window? Do you have any ideas?
    Thank you & kind regards,
    Daniel

    Hi again,
    thanks for that. But that was not what I am looking for. Maybe it is unclear what I need.
    I try to reduce my point:
    Simplified I have the following coding in the implementation of Method "handledefault":
    METHOD handledefault .
       DATA: l_url type string.
       l_url = 'http://www.sap.com'.
    ENDMETHOD.
    I am looking for an ABAP WD command with which I can start this URL in the same browser window?
    Thank & kind regards,
    Daniel

  • Open HTML pages in the same Browser

    HI All,
    I have a GUI with Help buttons which are required to open Help files in the default browser.
    Now i am able to acheive this using Runtime.getRuntime().exec("cmd /c start iexplore url")
    But the problem here is everytime the user clicks on the help buttons on various screens of the UI it opens a new browser instance where as i want all the help files to open in the same browser window.
    How do i acieve this?
    Also i tried using rundll32 url.dll, FileProtocolHandler url... the problem with this command is it doesnt recognize the querystring part of the url.
    For ex : http://forum.java.sun.com/post.jsp?forum=31&skldfsdkfj
    here the cmd only recognizes until http://forum.java.sun.com/post.jsp and the rest of the url is truncated when the browser opens. Do i need to escape "?" in my java application itself
    I escape & with ^& and this works..But how abt for "?"
    Anyone has any idea abt this....Pls help
    ADN

    all browsers ask you when you install them if you want that one to be the default one.
    So yes, start or run32dll.exe can be used to launch the default browser.
    No, you can't control which window to show it in, with the possible exception of Mozilla (or a derivitive (sp?)) might have some command-line options to do that. But you can't know that it's a Mozilla browser that will run with start or run32dll.exe.
    Your other choice would be: search the file system for browser, or just ask the user for the path to the browser's exe in a preferences dialog or something.

  • Open in same browser window

    I made a flash element for my dreamweaver website. I have an
    invisible button on the top so when you click it, it opens a new
    page. i'm trying to make it so when you open it, it opens in the
    same browser window. I tried making the target self and it didnt
    work. Any ideas??

    on (release) {
    getURL("
    http://www.frsind.com/specials.html",
    _self);

  • How to have web page open in same browser window after redirect in Flash video placed in Dreamweaver?

    Hello,
    Would be grateful if anyone can help me.
    website: www.Paris-Pet.com
    Currently, a flash video plays on the index page. The following action is placed in the last frame of the video in Flash:
    navigateToURL(new URLRequest("http://www.paris-pet.com/home.html"));
    This is working as intended with one exception: Instead of directing to the home page from the index page when the video is completed, it opens up the home page in a second browser window, leaving the empty browser window of the flash movie. This is not the seamless design I was hoping for, and I've also been told on some computers, blocking pop up windows is preventing them from smoothly transitioning to the rest of the web site.
    I would like the redirect to open the home page in the same browser window as the movie in the index page played.
    Please help. Print designer in over her head.
    JM

    Brilliant, Jon. Thank you so much. For those of you who stumble on this, I did have a tiny bit of trouble when I edited the actionscript; the video didn't play as expected. After trial and error, this is the code that worked both in playing the video and opening up in the same browser window:
    navigateToURL(new URLRequest("http://www.paris-pet.com/home.html"),"_self");
    The difference seems to be this:  ")     before the comma prior to "_self");
    Again, Jon -- thanks!
    Jack

  • Opening an external url in the same browser

    Hi all,
    I need to open an external URL (for instance,www.google.com) from my WDA application by 'linktoaction' or 'button' event and this should be happen in the same parent window and not as a external window.
    Please suggest me steps with example codes to perform this.
    Regards,
    Dinesh

    Why use a linktoaction?  Just use a linkToURL.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/49/e8884118aa1709e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/49/e8884118aa1709e10000000a155106/frameset.htm]
    You can use the target property to control how the link opens. 
    If you must use a button or linkToAction, the you will have to use an Exit Plug:
    [http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm]

  • When i click on one particular bookmark it opens in a window in the same browser page that is open but on the left side so that I have two dirfferent urls open

    I will have page open in the browser and when I click on one particular bookmark it always opens in the same browser but as a second page on the left side of the page. How do I stop this from happening--it is apage that I need to visit often for business and it is very restricting.

    Awesome, really, it was so annoying. It's the small things in life that make such a difference. Problem solved 100% spot on easy as toast. [email protected]

  • Oracle Reports: Opening within the same browser all the time

    Hi there,
    I am running Oracle Report 10g using Oracle AS 10.3.
    The report output is PDF to a browser.
    Each time I run the report, it opens within the same browser.
    Is there an option to open the report in a new browser all the time.
    http://server_name:port_number/reports/rwservlet?server=report_server_name&recursive_load=NO&paramform=NO&destype=CACHE&desformat=pdf&report=report_name.rep&orientation=portrait&paramter1=1
    Thanks for any help.
    Jim

    I guess you run the report from a form using WEB.SHOW_DOCUMENT? If so, use '_blank' as second parameter, this will open the given url in a new window.
    btw.. if you use forms to start a report you may consider to use RUN_REPORT_OBJECT to start the report instead of using the url-syntax.

  • When i try and open a tab that is the same as the page im currently on i closes it self. not when i type the full address, but when i use the arrow keys to select the url and press enter

    when I try and open a tab that is the same as the page I'm currently on it closes it self. Not when I type the full address, but when I use the arrow keys to select the url and press enter. I just don't like typing in the same address 5 times, when the older Firefox worked.

    Hi
    AutoPunch enabled? Command click in the bottom half of the Bar Ruler to turn it off
    CCT

Maybe you are looking for

  • Firmware upgrade - Router van no longer be accessed

    Thanks to an automatic firmware upgrade my E4200 can no longer be accessed. Cisco is aware of this but have no solution yet. Great testing again Cisco before releasing.

  • InitiateTask using API

    Hi all, I need start my process using BPEL API. I found initiateTask method of ITaskService interface but I don't understand how use it. Can you help me please? My process name is "Test". Input parameters are 2 string: param1 and param2. If I use BPE

  • How can I put asterisk in the beginning and end of a search parameter..?

    Hi!      I'm developing a program for a user where he wants a search parameter for the description about some purchase orders.... The problem is if the user want to make a search for any word he need to put asterisk in the beginning and end of the wo

  • Adobe 9.5.5 cannot print in windows 7

    I can open the PDF attachments in Windows 7 but I cannot print them. The error message says no documents sent.  I can print anything else with no problem so the printer is connected to the computer just fine.

  • Correct MYSQL settings for the local akonadi server

    Hello! I am on KDE 4.11 and it runs quite good after some polish. But I am still hitting some problems with akonadi ... My configuration is set to use my running mysql server on localhost. So the akonadiserver is set to NOT use akonadi internal mysql