Re: sometimes browser just recieves half the page
| From: | Gary | Date: | Mon, 25 Feb 2002 20:34:38 +0000 |
| Subject: | Re: sometimes browser just recieves half the page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86147@lists.php.net to get a copy of this message | ||
john@john.pp.se wrote:
Gary wrote:http://developer.netscape.com/evangelism/docs/api/xbTreeWidgetStatic/ GaryJohn Ericson wrote:Im programming a page where I have a java-tree-menu that gets generated from a db. The code works perfectly but sometimes when a browser reads the page I just get half of the page. I have noticed this behaivour on many different browsers such as mozilla, netscape, galeon, explorer and even wget sometimes. The page is here so you can try it yourself (Its a frameset page actually, the page with the problem is to the left): http://www.rskhq.2y.net/~nacka/ The actual php page that has the problem is: http://www.rskhq.2y.net/~nacka/vr_navbar.phpThe javascript showing up in the left frame is not showing the same as your link to it. The page showing up in the frame is broken. The javascript tags are closed before the script <script language="JavaScript"></script>The thing is that it is the same file. I checked through my code for what you described. Does it look like this for you?: <script language="JavaScript"></script> <!-- function generateTree() { ...... I get that in my mozilla but I belive that mozilla tries to fix the code since it doesnt get the complete script. The code from the file (vr_navbar.php) looks like this: <html> <head> <title>Nackademin</title> <script language="JavaScript"> <!-- <?php/* generateBranch(id, caption, level, open) id: uniqe value. caption: text. level: 0 is root. open: 1 its open. 0 its closed. generateNode(href, caption, level, flag) href: URL or href. caption: text. level: 0 is root. flag: Dont know. Set it to always be 0. */?> function generateTree() { ...... If you have a utility such as wget you could try fetching the vr_navbar.php file with that. With that you can check out the code with any editor. Try an experiment. Take all the JS off the page and link it back, except what is need to print. If you have the same problem try Netcapes tree widget and see if that works. If it doesn't then you know to look else where.