Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

rebol browser

 [1/3] from: inetw3:mindspring at: 1-Sep-2003 14:39


Hello ML, I've put together a browser in Rebol/view but I'm finding my ability to code is limiting me in moving ahead. problem: I have a function being called by a button which resets (or shows) a new HTML page in a box panel ; inside-the-function [ *document: layout/offset/size xmlview 0x0 500x350 page/pane: document show page* ] but the *page: box ends up becoming a type? string when I click some HTML page links: page: {Connection: Keep-Alive Date: Fri, 29 Aug 2003 22:21:07 GMT Set-Cookie: PREF=ID=7be8eed63a024f27:TM=10621 95667:LM=1062 etc...} Any ideas why this happens? After some pages are built, they don't reset (show), rebol says they are *Out of range or past end. what does this mean? By the way, this happens with some web pages and not others (www.rebol.com pages works perfectly in browser). The browser works perfectly for local pages and pages built in the editor's browser.

 [2/3] from: andrew:martin:colenso:school at: 2-Sep-2003 8:20


iNetW3 wrote:
> Any ideas why this happens?
I've got no idea at the moment; the problem doesn't seem to be within lines of script you show. Can you show us more of the script please? Andrew J Martin Attendance Officer & Information Systems Trouble Shooter Colenso High School Arnold Street, Napier. Tel: 64-6-8310180 ext 826 Fax: 64-6-8336759 http://colenso.net/scripts/Wiki.r?AJM http://www.colenso.school.nz/

 [3/3] from: brett::codeconscious::com at: 2-Sep-2003 8:31


*Out of range or past end I would guess means your program has gone past the tail of a series
> but the *page: box ends up becoming a type? string > when I click some HTML page links: > > page: {Connection: Keep-Alive > Date: Fri, 29 Aug 2003 22:21:07 GMT
... At the beginning of this example of page, there are page headers before the file data begins. These headers are part of the HTTP protocol and are added by the webserver before it transmits the file (page) your program requests.
> Any ideas why this happens?
Perhaps the code you are using to interpret the webpage assumes that you are giving it only html/xhtml and not page headers. Brett.