Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: load function error retrieving URL......
Pages: [1] Print
Author Topic: load function error retrieving URL......  (Read 499 times)
jfdutcher
Jr. Member
**
Offline Offline

Posts: 95


View Profile
load function error retrieving URL......
« on: October 04, 2007, 07:49:44 PM »

I have a script that contains the following line:

NGWebsite: load/all http://lava.nationalgeographic.com/cgi-bin/pod/enlarge.cgi

Upon execution using either 'load' or 'load/all'  one gets this same error below. How does the 'content' of the web page (<title>South Africa, ...) come to interfere with the load execution ??

** Syntax Error: Invalid word -- Africa,
** Near: (line 35) <title>South Africa, Lioness at Borehole, 1996, Photo of the Day,
Logged
henrikmk
Newbie
*
Offline Offline

Posts: 49


View Profile
Re: load function error retrieving URL......
« Reply #1 on: October 05, 2007, 02:51:12 AM »

Because "Africa," contains a comma and commas in words are not allowed.
Logged
Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Re: load function error retrieving URL......
« Reply #2 on: October 05, 2007, 05:09:20 AM »

I guess you want READ, not LOAD.
Logged
btiffin
Jr. Member
**
Offline Offline

Posts: 58


View Profile
Re: load function error retrieving URL......
« Reply #3 on: October 08, 2007, 09:16:14 AM »

Along with read, you maight also try  load/markup.  It quotes the information between tags, but requires different access tactics as the structure is a little deeper.  Do a few google searches, I think there are REBOL scripts that purport easier tag splitting, but usually from the XML perspective.  Then again Henrik is right, you'll never get Africa, ... as a pure REBOL data item.  It's just not a loadable value.  Usually fine as a string though. 

Cheers,
Brian
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: load function error retrieving URL......
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 12, 2008, 12:46:35 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2251 Posts in 589 Topics by 2420 Members
Latest Member: pharmacytovvv

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc