Results 1 to 4 of 4

Thread: Update a page content without reload

  1. #1
    Join Date
    Feb 2009
    Posts
    48

    Update a page content without reload

    Hi,
    I am trying to enable a script in my site by which when a users opens my site and in the meanwhile the page has some new updates then the page should get updated without getting reload. This will help out my page to get displayed more fast and easier for the user to get new updates. I am trying to implement the same but here the page needs to get refreshes. Mine script is not working and the same consumes too much time. Does anyone has a better conclusion on it. Thanks in advance.

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Update a page content without reload

    The biggest contributors to information in Web pages usually swallows the design. Elaborate table constructs for Page, style sheets, graphics, navigation, multimedia objects, and javascripts. All of this is often static content, which never changes. But in order to fetch new data from the server, you must reload the entire rule, this accessory will be. The only way to get around this is to use frames or iframes are loaded into the HTML documents. When any one wishes to give, however, offers further opportunities javascript what I'm here I'd like to introduce one. The principle is quite simple: Instead of choosing one sending complete HTML document to the browser, you can just send a javascript statements submitted will be manipulated by what the current document. A "reload" is thus not actually bypassed, but it is in the background, without the need to build the current page completely.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Update a page content without reload

    There is the question of how to get the new data in the current window without reloads the document. The following possibilities exist. Changing the src attribute in an included javascript send the address of a PHP script, which delivers the necessary Javascript code (to my knowledge, this method works only in Internet Explorer). <script> Mount a new node in the document (also with the appropriate PHP script as a target, a thread, which is found so engaged, their interest in the Javascript-Board). Sending a server request via XMLHttpRequest and processing the response (currently in Internet Explorer Version 5 and current versions of Mozilla, Opera, Konqueror and Safari possible). Loading a Javascript code containing the HTML document in a hidden frame or iframe.

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Update a page content without reload

    In order for the cause, must meet the HTML document 2 Requirements. There must be a (I) frame containing what is loaded into the file, which is to manipulate the document. This loading is written by write () into the document.
    PHP Code:
    if (document.getElementsByTagName 
           
    & & Document.getElementsByTagName 'body') [0]. InnerHTML
         ( 
             
    document.write '<iframe name="loader"src="about:blank"style="display:none"> </ iframe>'); 
         ) 
    And I begin by investigating whether the browser is DOM compliant. I also starting to ask whether he knows the property "innerHTML". This is not part of DOM-language set, but is interpreted by the above test browsers. Reason that I draw upon this method is the rather cumbersome procedure to insert / replace nodes in the DOM method. This would make one of the desired effect - reducing traffic - dashed.

Similar Threads

  1. How to setup automatic timed page reload Webpages in Firefox?
    By Corry in forum Technology & Internet
    Replies: 5
    Last Post: 03-02-2010, 01:34 PM
  2. Facebook page reload error
    By PinkShell123 in forum Technology & Internet
    Replies: 3
    Last Post: 03-11-2009, 10:19 PM
  3. How to write script to page reload in ASP
    By RockON!! in forum Software Development
    Replies: 3
    Last Post: 31-07-2009, 02:52 PM
  4. How to force a complete reload of a page in asp.net
    By Integer in forum Software Development
    Replies: 3
    Last Post: 17-03-2009, 11:55 PM
  5. Reload web page without clearing cache in firefox
    By PsYcHo 1 in forum Tips & Tweaks
    Replies: 1
    Last Post: 27-11-2008, 05:13 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,418,587.10610 seconds with 16 queries