+ Reply to Thread
Results 1 to 4 of 4

Thread: Page loading.... Script where to place ?

  1. Join Date
    Apr 2006
    Posts
    5

    Page loading.... Script where to place ?

    Hi there,

    Question, i got the script running perfectly, now i wan't to put a "page loading" message between the searchbox and the resultpage ( after clicking on the searchbutton ), where should i place the code for this ?

    A sample script is found here : http://javascript.internet.com/page-...load-page.html

    I tried to put it into the default header template, but it won't work.

    Anyone ?


  2. Join Date
    Aug 2004
    Posts
    781

    Re: Page loading.... Script where to place ?

    You have to put it in your header.

    You need to remove the header tag code from your default template and then place a new text header, for example <html><head>javascript</head>...

  3. Join Date
    Apr 2006
    Posts
    5

    Re: Page loading.... Script where to place ?

    Tried it but did not work, what steps do i have to take, please all in detail.
    It dit work but not when pressing the submit button, only when i refreshed (F5) te resultspage.

    It has to work when pressing the submit button.

    Regards,

  4. Join Date
    Aug 2004
    Posts
    781

    Re: Page loading.... Script where to place ?

    I didn't really look at the code.

    This isn't going to work because of how the script handles templates. Namely, it does:

    1. Process user input.
    2. Execute Whois script based on (1).
    3. Place output into variable.
    4. Output variable to browser.

    In other words nothing is actually displayed until all execution is finished.

    The only way you could possibly get anything displayed prior to EP-Dev Whois doing searches of whois servers would be to include the EP-Dev Whois script in another file that contains code to display "Loading" before the page is loaded BEFORE the code that includes the EP-Dev Whois script.

    That is alot of work and isn't worth it. If your pages are taking forever to load then you are likely querying too many servers at one time (for extra domains, etc).

    This is the very reason for why the EP-Dev Whois script provides the ability to cache results and requests. By enabling caching, at least you can be assured that the same query will not be processed twice within a given time and therefore the script will speed up after the initial request.

+ Reply to Thread

Posting Permissions

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