HTML  URL

Hi,
I have a Html page ( has 2 jsps as frames) which is refered as follows: http://hostname/appname/index.html
now when ever there is change in host name, it is a big overhead to redirect and some times not possible to redirect.
I would like to know if there is any way we refer the same link as
http://SomeHostIndependentName/index.html in the intranet.
running on tomcat 3.x web server

The following is the piece of info that i used to connect to db and pass the base url to all the jsp pages in my applicaiton.
Below are the contents of the web.xml that is being used in the Jbuilder/Tomcat4.0.1 environment.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<context-param>
<param-name>baseurl</param-name>
<param-value>http://sat:8080</param-value>
</context-param>
<context-param>
<param-name>dbpassword</param-name>
<param-value>sat123</param-value>
</context-param>
<context-param>
<param-name>dburl</param-name>
<param-value>jdbc:oracle:thin:@192.168.0.213:1521:satora</param-value>
</context-param>
<context-param>
<param-name>dbuser</param-name>
<param-value>sat</param-value>
</context-param>
</web-app>
You have to use the following command in the JSP to get the required parameters read from the web.xml file.
String strBaseUrl = getServletContext().getInitParameter("baseurl");
Hope this will meet your need.
Good luck
sat

Similar Messages

  • Convert ITF-Url to HTML-Url

    Hi,
    Is it possible to convert an ITF-Url (BITMAP 'ENJOY' OBJECT GRAPHICS ID BMAP TYPE BCOL) to a HTML-Url by using the FUBA "CONVERT_ITF_TO_HTML"?
    Thanks!
    Christof

    When I read the comment for this function, it says: "convert internal SAP script format to HTML". It does not talk about URLs, but about HTML content. You can even see that there are exporting parameter for the HTML text (or a table for same HTML text). I can not see anything about an bitmap.
    You can also press that "documentation" button to see a little about the parameters, what they do, and a reference onto an example program.

  • How to open a jasper report (html URL)

    Hello,
    currently we are testing the jasper report engine. We are already able to open such a report from forms by a forms personalization.
    Now we want to run a concurrent report where the output should be a link to a jasper report.
    For example:
    I start the request "open jasper report" with parameter "001". After successful finishing the request should give me a link like "http://jasper/myreport&parameter=001" which will be opened in a new browser tab.
    Well, is it possible to open a URL by using a concurrent request?
    Regards,
    Josef

    Hi Josef;
    Please check
    How to open an URL with PLSQL FUNCTION?
    http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/fnd_utilitiesopen_url-in-forms-personalization-2256431
    http://easyapps.blogspot.com/2008/03/image-file-attachment-in-oracle-apps.html
    http://www.scribd.com/doc/47603/Form-Personalization-for-R12
    Hope it helps
    Regard
    Helios

  • Get current HTML URL into flash with LoadVars and ColdFusion

    I need to get the current page url and pass it into flash.
    I'm also using ColdFusion. Is there an easy solution?

    I gave up on bringing in the URL and parse it into a string,
    there is too much I don't understand. I put in two commands in the
    HTML where the Flash movie is sitting:
    1. <param name="FlashVars" value="airport=sbn"/>
    2. and in <embed src I put in, Flashvars="airport=sbn"
    "airport" is the variable in Flash (it is called as
    "_level0.airport" in the Flash file) and "sbn" is the variable
    definition for 12 of the files. I will just find "sbn" and replace
    it with the new airport name in the next set. It's not very slick,
    but it's better than having to create a new navigation for every
    airport. Thanks for the help.

  • HTML/URL to PDF

    Hello everybody,
    I'm trying to get a module working which should transform HTML code into pdf.
    Unfortunately this is not working. I tried different versions like:
    - iText
    - flyingsourcer (https://xhtmlrenderer.dev.java.net/
    - FOP
    - http://www.allcolor.org/YaHPConverter/
    - http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html?page=3
    Mostly I get an error while parsing the HTML-Code (given by a stream from w URL e.g. http://www.google.com). There is no HTML code that 100% correct in the www.
    Has anyone made such a project? Can anyone pass me a hint how I can get that working?
    I would be pleased for hints that anone has already tested because there are a lot of libs that promise that it should work but it doesn't.
    Best regards,
    nobody

    Hello,
    I've now tested a lot with the concept of http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html?page=1 which typically working like a lot of other things.
    Unfortunately normal pages like http://www.google.com cause errors:
    Tidy (vers 4th August 2000) Parsing "InputStream"
    line 1 column 106 - Warning: <style> lacks "type" attribute
    line 1 column 1.404 - Warning: <script> lacks "type" attribute
    line 3 column 1.100 - Warning: <nobr> is not approved by W3C
    line 3 column 1.171 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.264 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.356 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.447 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.544 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.717 - Warning: missing </nobr> before <div>
    line 3 column 1.729 - Warning: inserting implicit <nobr>
    line 3 column 1.729 - Warning: discarding unexpected <a>
    line 3 column 1.732 - Warning: discarding unexpected </a>
    line 3 column 1.775 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.870 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 1.965 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.060 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.112 - Warning: missing </nobr> before <div>
    line 3 column 2.126 - Warning: inserting implicit <nobr>
    line 3 column 2.126 - Warning: missing </nobr> before <div>
    line 3 column 2.126 - Warning: trimming empty <nobr>
    line 3 column 2.141 - Warning: inserting implicit <nobr>
    line 3 column 2.141 - Warning: trimming empty <nobr>
    line 3 column 2.141 - Warning: trimming empty <div>
    line 3 column 2.147 - Warning: trimming empty <div>
    line 3 column 2.153 - Warning: inserting implicit <nobr>
    line 3 column 2.153 - Warning: discarding unexpected <a>
    line 3 column 2.156 - Warning: discarding unexpected </a>
    line 3 column 2.198 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.303 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.381 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.470 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.561 - Warning: unescaped & or unknown entity "&tab"
    line 3 column 2.592 - Warning: missing </nobr> before <div>
    line 3 column 2.606 - Warning: inserting implicit <nobr>
    line 3 column 2.606 - Warning: missing </nobr> before <div>
    line 3 column 2.606 - Warning: trimming empty <nobr>
    line 3 column 2.621 - Warning: inserting implicit <nobr>
    line 3 column 2.621 - Warning: trimming empty <nobr>
    line 3 column 2.621 - Warning: trimming empty <div>
    line 3 column 2.627 - Warning: trimming empty <div>
    line 3 column 2.633 - Warning: inserting implicit <nobr>
    line 3 column 2.633 - Warning: discarding unexpected <a>
    line 3 column 2.636 - Warning: discarding unexpected </a>
    line 3 column 2.731 - Warning: discarding unexpected </nobr>
    line 3 column 2.772 - Warning: trimming empty <div>
    line 3 column 2.807 - Warning: trimming empty <div>
    line 3 column 2.888 - Warning: <nobr> is not approved by W3C
    line 3 column 2.912 - Warning: unescaped & or unknown entity "&pref"
    line 3 column 2.920 - Warning: unescaped & or unknown entity "&pval"
    line 3 column 2.927 - Warning: unescaped & or unknown entity "&q"
    line 3 column 2.979 - Warning: unescaped & or unknown entity "&usg"
    line 3 column 3.111 - Warning: unescaped & or unknown entity "&hl"
    line 3 column 3.285 - Warning: <table> lacks "summary" attribute
    InputStream: Document content looks like HTML proprietary
    53 warnings/errors were found!
    [WARNING] Screen logger not set - Using ConsoleLogger.
    [INFO] setting up fonts
    [ERROR] Unknown enumerated value for property 'text-align-last': relative
    [ERROR] Error in text-align-last property value 'relative': org.apache.fop.fo.expr.PropertyException: No conversion defined
    [ERROR] defaulted font to any,normal,normal
    [ERROR] unknown font sans-serif,normal,bolder so defaulted font to any
    [ERROR] Error while creating area : Error with image URL: \intl\de_de\images\logo.gif (Das System kann den angegebenen Pfad nicht finden) and no base URL is specified
    In that case its not that big problem. Only pictures are not shown in the output pdf.
    Pictures are big problems because there no chance to chance he native into a direct path. So I get errors when I try to convert www.sun.com:
    [ERROR] Error while creating area : Error with image URL: \im\a.gif (Das System kann den angegebenen Pfad nicht finden) and no base URL is specified
    Exception in thread "main" java.lang.NullPointerException
    at java.io.FileOutputStream.write(FileOutputStream.java:247)
    at html2pdf.Html2Pdf.main(Html2Pdf.java:91)
    A big problem also appears when I try to open XHTML URLs like http://en.wikipedia.org/wiki/XHTML.
    As you can read there are a lot of problems. I don't know if the concept of javaworld to convert html to pdf is up to date. Now its not the problem of the syntax of the HTML files. Unfortunately its not a problem that can solved with JTidy or a grphical module which is used in this thread (url from above): http://forums.sun.com/thread.jspa?forumID=31&threadID=5284184 Whith this I don't get any XHTML converted.
    Is there another chance to convert html2pdf ?
    nobody85

  • HTML/URL in JTable

    This might be a newbie question .
    I am trying to create JTable with URLs/links as cells .
    Is it possible to do it with JLabel or JEditorPane or both of them?
    Can i have JLabel or JEditorPane as the cell contents??
    if yes then how it is done .Is there any code sample available to do it .
    thanks

    You can put anything you like in a JTable cell, but it takes a bit of doing. You might as well learn how JTable operates in general. Check out the Java Tutorial.

  • Open portal page via HTML URL out of the "Dynamic Navigation"

    Hi everybody,
    In our portal environment we have a page (page1) in which user can enter date. On another page (page2) in a different navigation node there is a report that shows the data. We want to provide a possibility to navigate directly from page1 to page2.
    Our idea was to have a KM-document iView  in the "dynamic navigation" of page1 with a link to page2.
    that works fine. but page2 is not opened in the whole window but in the dynamic-navigation-frame.
    the link looks the following:
    <A HREF="http://xxxxxxxx.xxx:1235/irj/portal/index.htm?navigationtarget=roles://portal_content/folder/role/workset/page/">
    Its obvious that the link is opened in the same frame because no target property is added to the href.
    I thought about adding a the "target" property to the  href, but I don't know how the Frame is named.
    I have tried this:
    <A HREF="http://xxxxxxxx.xxx:1235/irj/portal/index.htm?navigationtarget=roles://portal_content/folder/role/workset/page/" target="MainFrame">
    but it didn't work.
    Does anybody know how the MainFrame in the portal is named or has any other solution to my problem.
    Regards, Alex
    Edited by: Alexander Paulus on Nov 20, 2008 4:09 PM

    kind of simple
    user target="_top" to have the page displayed in the whole window.
    Regards, Alex

  • Block / Filter html in email, specifically URLs

    Exchange 2010 in a Windows 2008 R2 domain.
    I'm trying to find a way to block any html url from being link enabled in email. For instance, if I type www.bing.com in an email it link enables it by default and makes it clickable by the recipient.
    I need to either filter the entire url or change it to plain text so it's not link enabled and clickable.
    The endstate here is we're trying to reduce the possibility of a user clicking on a link in a rogue phishing email. At the very least we want the user to have to copy and paste the plain text url into a browser in the hopes that will reduce the phishing
    success.
    Any ideas?

    Hi,
    Based on my knowledge, I'm afraid that we can't block the messages with link from server side. But we can use Outlook to do that. Suspicious message detection is always turned on in Microsoft Outlook.
    For more information, here is an article for your reference.
    Enable or disable links and functionality in phishing email messages
    http://office.microsoft.com/en-us/outlook-help/enable-or-disable-links-and-functionality-in-phishing-e-mail-messages-HA010355585.aspx
    Hope it helps.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Static urls (***.html) for Servlets

    How to make static urls for requesting a Servlet. For example: "http://domain/encoded_parametes.html". Without using frames and redirect.

    In your web descriptor file (web.xml) create the mapping to the name you want. For example:
    <servlet>
         <servlet-name>MyHomePage</servlet-name>
         <servlet-class>org.mine.home.HomePage</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>MyHomePage</servlet-name>
         <url-mapping>encoded_parametes.html</url-mapping>
    </servlet-mapping>If your context path is "/application" then if you access:
    http://[server]:[port]/application/encoded_parametes.html
    Then the web container will intercept the request and you will be directed to the servlet instead of a *.html file.
    Anthony

  • While creating pdf from html, the alignment is not proper

    Hi,
    In my application, I am creating a pdf report from html using (using Generate pdf 1.1 - HTML URL To PDF activity) which contains certain images and descriptions.
    But, while generating pdf the alignment is not proper. In the HTML there is no paging, but in the output pdf the image div is getting broken when new pages are generated.
    Some blank areas are coming the report.
    Actually I need an exact replica of the HTML as a pdf, with paging.
    Thank you in advance.

    What is the LiveCycle version?
    Is it possible for you to share an example(somewhere on public file sharing sites)?

  • URL.openStream() works in Windows but not in Linux

    I am having a problem with this line:
    BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
    in the code sample further below.
    A simple program using this line works when compiled in my Windows XP:
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
    but not when compiled on my RedHat FC 4 server:
    java version "1.4.2"
    gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8)
    The program (making using of a previous froum example and pared down to minimize tangent topics):
    The code works for all 3 URLs in Windows. In Linux it only works for the 1st one (bbc.co site)
    Error is listed below the code:
    import java.net.*;
    import java.io.*;
    public class BBC {
    public static void main(String[] args) throws Exception
    //    URL url = new URL("http://news.bbc.co.uk/sport1/hi/football/eng_prem/6205747.stm");
    //    URL url = new URL("http://www.weatherunderground.com/global/stations/71265.html");
        URL url = new URL("http://www.weatherunderground.com");
        BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
        int nLineCnt = 0;
        String inputLine;
        while ((inputLine = in.readLine()) != null)
            nLineCnt++;
        System.out.println("nLineCnt=" + nLineCnt);
    //--------------------------------------------------------------------------------------------------------------------------------------------Exception in thread "main" java.lang.StringIndexOutOfBoundsException
    at java.lang.String.substring(int, int) (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.Request.readResponse(gnu.java.net.LineInputStream) (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.Request.dispatch() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.HTTPURLConnection.connect() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.HTTPURLConnection.getInputStream() (/usr/lib/libgcj.so.6.0.0)
    at java.net.URL.openStream() (/usr/lib/libgcj.so.6.0.0)
    at BBC.main(java.lang.String[]) (Unknown Source)
    at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
    Can anyone please suggest what I can do to be able to process the weatherunderground URL?
    Claude

    To me it would suggest a bug in the VM that you are using.
    Solutions
    1. Use a different VM
    2. Write your own code to process the http code. Depending on licensing for the VM in use and the VM itself. you might be
    able to find the bug in that code, fix it yourself, and then use your fix (start up command line options for VM.) Otherwise
    you have to duplicate the functionality. You might look to jakarta commons, there might be code there that does that.

  • Creating a Javascript Preloader for my HTML sites... wont work..

    Hey all,
    I am creating a Javascript Preloader for my html site (www.rockspire.com), I have scripted all actions and have come away with a bar that does not load. Can someone please direct me as to where the error may be.
    Thanks in advance!
    Site: www.rockspire.com
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Index</title>
    <script type="text/javascript">
    <!-- begin hiding
    // You may modify the following:
    var locationAfterPreload = "index2.html" // URL of the page after preload finishes
    var lengthOfPreloadBar = 450 // Length of preload bar (in pixels)
    var heightOfPreloadBar = 10 // Height of preload bar (in pixels)
    // Put the URLs of images that you want to preload below (as many as you want)
    var yourImages = new Array(
    "images/lparch1.jpg",
    "images/lparch2.jpg",
    "images/lparch3.jpg",
    "images/lparch4.jpg",
    "images/lparch5.jpg",
    "images/lparch6.jpg",
    "images/lparch7.jpg",
    "images/lparch8.jpg",
    "images/lparch9.jpg",
    "images/lpart1.jpg",
    "images/lpart2.jpg",
    "images/lpart3.jpg",
    "images/lpart4.jpg",
    "images/lpart5.jpg",
    "images/lpart6.jpg",
    "images/lpart7.jpg",
    "images/lpbetty1.jpg",
    "images/lpbetty2.jpg",
    "images/lpbetty3.jpg",
    "images/lpbetty4.jpg",
    "images/lpbetty5.jpg",
    "images/lpnature1.jpg",
    "images/lpnature2.jpg",
    "images/lpnature3.jpg",
    "images/lpnature4.jpg",
    "images/lpnature5.jpg",
    "images/lpnature6.jpg",
    "images/lpnature7.jpg",
    "images/lpnature8.jpg",
    "images/lpnature9.jpg",
    "images/lpnature10.jpg",
    "images/lpnature11.jpg",
    "images/thumbnail_arch1.jpg",
    "images/thumbnail_arch1bw.jpg",
    "images/thumbnail_arch10.jpg",
    "images/thumbnail_arch10bw.jpg",
    "images/thumbnail_arch11.jpg",
    "images/thumbnail_arch11bw.jpg",
    "images/thumbnail_arch2.jpg",
    "images/thumbnail_arch2bw.jpg",
    "images/thumbnail_arch3.jpg",
    "images/thumbnail_arch3bw.jpg",
    "images/thumbnail_arch4.jpg",
    "images/thumbnail_arch4bw.jpg",
    "images/thumbnail_arch5.jpg",
    "images/thumbnail_arch5bw.jpg",
    "images/thumbnail_arch6.jpg",
    "images/thumbnail_arch6bw.jpg",
    "images/thumbnail_arch7.jpg",
    "images/thumbnail_arch7bw.jpg",
    "images/thumbnail_arch8.jpg",
    "images/thumbnail_arch8bw.jpg",
    "images/thumbnail_arch9.jpg",
    "images/thumbnail_arch9bw.jpg",
    "images/thumbnail_art1.jpg",
    "images/thumbnail_art1bw.jpg",
    "images/thumbnail_art2.jpg",
    "images/thumbnail_art2bw.jpg",
    "images/thumbnail_art3.jpg",
    "images/thumbnail_art3bw.jpg",
    "images/thumbnail_art4.jpg",
    "images/thumbnail_art4bw.jpg",
    "images/thumbnail_art5.jpg",
    "images/thumbnail_art5bw.jpg",
    "images/thumbnail_art6.jpg",
    "images/thumbnail_art6bw.jpg",
    "images/thumbnail_art7.jpg",
    "images/thumbnail_art7bw.jpg",
    "images/thumbnail_b1.jpg",
    "images/thumbnail_b1bw.jpg",
    "images/thumbnail_b2.jpg",
    "images/thumbnail_b2bw.jpg",
    "images/thumbnail_b3.jpg",
    "images/thumbnail_b3bw.jpg",
    "images/thumbnail_b4.jpg",
    "images/thumbnail_b4bw.jpg",
    "images/thumbnail_b5.jpg",
    "images/thumbnail_b5bw.jpg",
    "images/thumbnail_nat1.jpg",
    "images/thumbnail_nat1bw.jpg",
    "images/thumbnail_nat2.jpg",
    "images/thumbnail_nat2bw.jpg",
    "images/thumbnail_nat3.jpg",
    "images/thumbnail_nat3bw.jpg",
    "images/thumbnail_nat4.jpg",
    "images/thumbnail_nat4bw.jpg",
    "images/thumbnail_nat5.jpg",
    "images/thumbnail_nat5bw.jpg",
    "images/thumbnail_nat6.jpg",
    "images/thumbnail_nat6bw.jpg",
    "images/thumbnail_nat7.jpg",
    "images/thumbnail_nat7bw.jpg",
    "images/thumbnail_nat8.jpg",
    "images/thumbnail_nat8bw.jpg",
    "images/thumbnail_nat9.jpg",
    "images/thumbnail_nat9bw.jpg",
    "images/thumbnail_nat10.jpg",
    "images/thumbnail_nat10bw.jpg",
    "images/thumbnail_nat11.jpg",
    "images/thumbnail_nat11bw.jpg",
    "images/index_01.jpg",
    "images/index_02.jpg",
    "images/index_04.jpg",
    "images/index_05.jpg",
    "images/index_06.jpg",
    "images/index_13.jpg",
    "images/index_14.jpg",
    "images/overview.pdf",
    "images/Rockspire_Site_Map.pdf",
    "images/Rockspire_slideshow.flv",
    "images/main_concept_image.jpg",
    "images/main_contact_image.jpg",
    "images/main_events_image.jpg",
    "images/main_inspiration_image.jpg",
    "images/main_manifesto_image.jpg",
    "images/main_photos_image.jpg",
    "images/main_resources_image.jpg"
    // Do not modify anything beyond this point!
    if (document.images) {
    var dots = new Array()
    dots[0] = new Image(1,1)
    dots[0].src = "images/black.gif" // default preloadbar color (note: You can substitute it with your image, but it has to be 1x1 size)
    dots[1] = new Image(1,1)
    dots[1].src = "images/red.gif" // color of bar as preloading progresses (same note as above)
    var preImages = new Array(),coverage = Math.floor(lengthOfPreloadBar/yourImages.length),currCount = 0
    var loaded = new Array(),i,covered,timerID
    var leftOverWidth = lengthOfPreloadBar%coverage
    function loadImages() {
    for (i = 0; i < yourImages.length; i++) {
    preImages = new Image()
    preImages.src = yourImages
    for (i = 0; i < preImages.length; i++) {
    loaded = false
    checkLoad()
    function checkLoad() {
    if (currCount == preImages.length) {
    location.replace(locationAfterPreload)
    return
    for (i = 0; i <= preImages.length; i++) {
    if (loaded == false && preImages.complete) {
    loaded = true
    eval("document.img" + currCount + ".src=dots[1].src")
    currCount++
    timerID = setTimeout("checkLoad()",10)
    // end hiding -->
    </script>
    <style type="text/css">
    <!--
    body p {
        color: #333;
    -->
    </style>
    </head>
    <body>
    <div align="center">
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p>
    <script type="text/javascript">
    <!-- begin hiding
    if (document.images) {
    var preloadBar = ''
    for (i = 0; i < yourImages.length-1; i++) {
    preloadBar += '<img src="' + dots[0].src + '" width="' + coverage + '" height="' + heightOfPreloadBar + '" name="img' + i + '" align="absmiddle">'
    preloadBar += '<img src="' + dots[0].src + '" width="' + (leftOverWidth+coverage) + '" height="' + heightOfPreloadBar + '" name="img' + (yourImages.length-1) + '" align="absmiddle">'
    document.write(preloadBar)
    loadImages()
    // end hiding -->
    </script>
    </p>
    <p><font size="2" face="Helvetica Neue">Welcome to Rockspire...</font></p>
    </div>
    </body>
    </html>
    Cheers!

    I see an pdf and flv file in the image list, remove them.
    Rewrite the code of your loading bar into one solid procedure which can be called from image loaded so you end up with three functions:
    loadImage
    imageLoaded
    displayProgressBar
    Maybe it's simpler not to display a progressbar but to display a text like XX loaded from XX images.
    I can't possibly write all the code for you but to adjust the loading bar use the image object instead of html code....
    preloadingImg = new Image();
    preloadingImg.src = "img/dot.jpg"   //whatever your preloader img is
    //To place your loading bar somewhere in the document:
    parentElement.addChildNode(preloadingImg);   //where parentElement is the container of the preloader image ( a DIV tag or whatever)
    //to adjust the width and height
    preloadingImg.height = someHeight + 'px';
    preloadingImg.width = someWidth + 'px'
    Another alternative is indeed use jQuery.

  • Displaying html page in JEditorPane

    yeh, yeh, i know the editorPane.setPage(url) function. the problem is that the file i need to display (help.html) is on local drive, in the same dir as the class with the editorPane. so what url do i make [i don't know in which dir the class will be]. i tried to make it relative: URL url = new URL("help.html"), but it didn't work. this:
    s = "file:\\"
    + System.getProperty("user.dir")
    + System.getProperty("file.separator")
    + "Help.html";
    URL helpURL = new URL(s);
    doesn't work either.
    i work on win 95, jdk 1.3.
    HELP ME!
    LionAlx.

    yeh, yeh, i know the editorPane.setPage(url) function.
    the problem is that the file i need to display
    (help.html) is on local drive, in the same dir as the
    class with the editorPane. so what url do i make [i
    don't know in which dir the class will be]. i tried to
    make it relative: URL url = new URL("help.html"), but
    it didn't work. this:
    s = "file:\\"Try "file:\\\"

  • Hide value from url

    This forum has been a greate help, I learned a lot by asking questions here.
    Have a customized query that generated a link icon to another page. The url pass the primary key along with some item values to the linked page. It works.
    My question is if I compared my url link (by hovering the mouse to the link icon) to a link that was generated by APEX using same primary key and items, I see my homemade url exposes all the item values that I have passed to. However, apex generated page only exposed the primary key value, the rest seems a combination of hex charactier. How can I make it behave like the apex generated link icon ? thanks.
    example of the generated url by hovering the mouse on the link icon
    from APEX:( just the item part in the url), it seems apex always prefix 2c for each susequent item value after primary key)
    PID,ITEM1,ITEM2:496%2C128%2C128
    my own
    PID,ITEM1,ITEM2:496,128M,ercury%20Beauty%20/%20Bun%20Test
    Wan

    Wan,
    I am not sure if there is any direct way to do that, however %2c is the standard HTML url encoding character which represents a comma(",") and %20 is for space.
    http://www.w3schools.com/TAGS/ref_urlencode.asp
    If you are interested in hiding values in the url you can encrypt the item values before page branch and decrypt using the same algorithm once you reach to the target page. But this will slow down the page branching and also it require extra efforts to develop page branching algorithm of each url navigation. Thanks.
    Regards,
    Manish

  • HTML Complier Erroe

    Hi,
    I have been trying to import our help project from RoboHelp
    Classic 9.2 to RoboHelp HTML (version 9.2) everything seems to go
    smoothly all the correct topics etc are converted over to HTML, the
    problem is when I compile I get the following error,
    The Microsoft HTML Help Complier did not complete properly.
    Please check the error messages, fix the problems then compile
    again.
    The compilation then terminates, I can't find anywhere that
    states what the actual error is (no .CHM is produced).
    After some investigation I can get the project to compile if
    I leave the context -sensitive help files (.h file) out - it will
    compile fine, but again as soon as I import this I get the same
    problem and the project will no longer compile.
    We have even created a new project, again this works until
    the .h file is imported in. I have checked to ensure the .h file is
    in the correct format (our developers provide these to us) and
    everything look fine to me.
    If anyone could please shed some light on what the problem
    could be - that would be great.
    Thanks
    Jane

    HI Murtuza,
    you can do this way
    place button on the form
    and set its system action = hyperlink
    in the url give your html url
    try this
    Regards
    Srinivas

Maybe you are looking for

  • IHC internal payment order error

    Hello, Need you help. When i am trying post IHC internal payment order, its not getting posted. when i see the log,its says only : payment order XXXXXX not posted. Error message is IHC298. Request you to please help to solve this Issue. Thanks in adv

  • PO with payment terms as Advance only

    Dear Freinds, Can we create a po which talks about payment terms as below. 1) <u><b>50% advance pymnt.</b></u> 2) Bal 50% after delivery of material.                                    <u><b>OR</b></u> Can we create a po which talks about payment ter

  • Handbuch Adobe photoshop elements 8

    Wer kann helfen, bin Anfänger. Wo finde ich ein Hanbuch zur Version 8?

  • Using begins with in CFIF

    I need to validate some form elements based upon "begins with" elements, like <CFIF form.password BEGINS WITH "xxx"> or <CFIF form.password LIKE %xxx> Can that be done in CF format ? I've only seen it with <CFQUERY> -MK

  • Undelete music files from external drive?

    Quick version: External drive got reformatted, but music files maybe still there. Know a good, and reasonably priced, software with best chance for recovery? Cannot affort to send drive to pros to recover. Thx! Longer version: I have an external/USB