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.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    New Coder
    Join Date
    Jun 2003
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    please wait while the page loads

    I have a huge java script that even takes up to 15 seconds to load on a high speed connection is there a way I can sneak a please wait for the page to load or may take several second for page load in there while the page is loading?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ... I'm very curious to see that javascript...
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #3
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Without seeing the code, you might try this. Just call it at the begining of your script. I use a little animated stopwatch gif to show that it is proccessing.

    function statusWin()
    {
    msg=window.open("","msg","height=15 width=175,left=420,top=300");
    msg.document.write("<html><title>Processing. . .</title>");
    msg.document.write("<body bgcolor='white'>");
    msg.document.write("<center><b><font color=red><div id='a'>Retrieving Data Please Wait. . .</div><img src='stopwatch1.gif'></font></center>");
    msg.document.write("</body></html><p>");
    }

    then at the end of you script put this.

    msg.close();

  • #4
    New Coder
    Join Date
    Jun 2003
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I only have my script refrenced so now how would I have this setup?


    <table border="0" cellspacing="0" cellpadding="0" style="font-family: Lucida Console,Verdana, Tahoma, Arial; font-size: 9">
    <tr align="center">
    <td nowrap height="11">
    &nbsp;&nbsp;&nbsp;
    <script src="java/filterddm.js"></script>
    </td>
    </tr>
    </table>

  • #5
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Put the function inside the js file you can just paste it into the very top of the document outside of any existing functions. Then at the start of your existing script call the function:

    statusWin();

    after the last portion of your script runs put:

    msg.close() \\ to close the window

    If you upload the file I can put it in there 4 u if you are still not clear.

  • #6
    New Coder
    Join Date
    Jun 2003
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have tried this several way so Im gonna upload my text file thanks for your help Basscyst i cant attach because the file is to big so I uploaded it to my site heres the link:

    HERE

  • #7
    New Coder
    Join Date
    Jun 2003
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    or HERE since the one above seems to be down at the moment

  • #8
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    OK - I will look at it later on I can't access it from where I'm at now. (Fire Wall)

  • #9
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Oh Ok writing that just as you posted the second link it works.

  • #10
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Wow man thats HUGE. I would suggest parsing up the array into different js files and only searching and loading the applicable array. I'd be intrested to see this script in action, do you have it on a site I \ we all could look at? It really looks like you are in need of a database and some server side scripting in lieu of the javascript.

  • #11
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you optimize your data organization, you can easily reduce the size of this file by an order of magnitude and more:
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #12
    New Coder
    Join Date
    Jun 2003
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I also found something I think will works plus here is the script at work.... HERE click the product search button

  • #13
    New Coder
    Join Date
    Jun 2003
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Vladdy
    If you optimize your data organization, you can easily reduce the size of this file by an order of magnitude and more:
    how would I do this?

  • #14
    New Coder
    Join Date
    Jun 2003
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Basscyst
    Wow man thats HUGE. I would suggest parsing up the array into different js files and only searching and loading the applicable array. I'd be intrested to see this script in action, do you have it on a site I \ we all could look at? It really looks like you are in need of a database and some server side scripting in lieu of the javascript.
    Or how would I parse up the array? any suggestion to make this smaller and "quicker qould be greatly appreciated

  • #15
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by cyrus
    how would I do this?
    use objects to store your data. Then you can get rid all all
    ComboBox[a][b][c] = new Option (
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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