Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 07-11-2009
Member
 
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.
Reply With Quote
  #2  
Old 07-11-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
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.
Reply With Quote
  #3  
Old 07-11-2009
Member
 
Join Date: May 2008
Posts: 2,293
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.
Reply With Quote
  #4  
Old 07-11-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 10:45 PM.