I never heard anything back on this one.  Did  I do something wrong?




Randy





*From:* Randy Johnson [mailto:[email protected]]
*Sent:* Monday, November 19, 2012 11:34 PM
*To:* [email protected]
*Subject:* cfscript javascript



Hello,



I am running: OpenBD Nightly Build 2.0.3b Ready2Run, just downloaded
tonight.



I am running this code from the blog entry:
http://alan.blog-city.com/cfmail_selection.htm



<cfscript>



doc = html( FileRead("http://www.openbd.org/";) );



 allLinks = doc.select("a[href]");

for ( x = 1; x <= ArrayLen(allLinks); x++ ){



  WriteOutput("<li>" & allLinks[x].attr("href") & "</li>" );



}

</cfscript>







And I receive this error.



*CFML Runtime Error*

Need some help? Visit our manual
http://openbd.org/manual/<http://openbd.org/manual/>

*FileRead cause an error (resource is not readable)*

Request

/text.cfm

File Trace

D:/jetty-openbd/webapps/openbd/text.cfm





Type

Expression

Function

fileread <http://openbd.org/manual/?/function/fileread>

Tag Context

CFSCRIPT <http://openbd.org/manual/?/tag/CFSCRIPT>
(D:/jetty-openbd/webapps/openbd/text.cfm,
Line=2, Column=1)

Source

1:

2: <cfscript>

3: doc = html( FileRead("http://www.openbd.org/";) );

4:

5: allLinks = doc.select("a[href]");

^ Snippet from underlying CFML source



Any ideas?



Randy

-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

Reply via email to