473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

fetching the cfm file

48
hi i am trying something like this but is not working..

Expand|Select|Wrap|Line Numbers
  1. <cfif document.recordcount IS NOT 0>
  2. <cfhttp method="get" url="http://abc.com/news" resolveurl="yes" timeout="60" throwonerror="yes" 
  3. path="http://www.xyz.co.in/news" file="key.cfm"></cfhttp>
  4. <cfsavecontent variable="getdata">
  5. <cfoutput>#cfhttp.FileContent#</cfoutput>
  6. </cfsavecontent>
  7.    <cfif getData is false>
  8.       <cflocation url="abc.cfm" addtoken="No">
  9.    </cfif>
  10. <cfelse>
  11.    <cflocation url="view.cfm?news_id=#url.key#" addtoken="No">
  12. </cfif>
  13.  
what i am doing is fetching the cfm file from the other website based on the url value. the files are stored in the news folder, i encounter several errors during this:

one error was that i was looking for exception/erro.cfm file which is included in the abc.com website's application file as an include, can anyone guide me how can i do this:
Jun 12 '08 #1
3 2859
acoder
16,027 Expert Mod 8TB
When using "GET", you can specify the file name in the "path" attribute.

What errors are you getting?
Jun 12 '08 #2
CF FAN
48
Realy sorry..next time onwards i will surely take care of it
Jun 13 '08 #3
acoder
16,027 Expert Mod 8TB
No problem, thanks. Did you manage to solve the problem?
Jun 13 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Shujun Huang | last post by:
Hi, I am working on converting Informix database to Postgre. I have one question for fetching records using PostgreSQL. The record I am fetching is a variable size text string. Before fetching...
5
by: randomtalk | last post by:
hi, i want to automate some tasks of gathering photos from web, i tried urllib/urllib2, both ended up without much success (saved gifs with only a border, nothing else).. the code i used was: ...
1
by: asenthil | last post by:
Hai, i had tried to write a string which is fetched from a database into a file.... Here are my codings to write that fetched string into a text file... HANDLE hFile; DWORD wmWritten;...
1
by: ProjectGoldfish | last post by:
Currently im taking this old piece of code $fileName = $_GET; $full = $_GET; $ext = substr(strrchr($fileName, "."), 1); $path = "../../../include/images/mini/"; if($full) $path =...
5
by: Bhavesh | last post by:
Hello genious people, I m trying to insert a LARGE text from Multiline Textbox into my table of sqlserver2000. I m using vs-2005. Please note that I dont want to store blob data From FILE...
1
by: Bhavesh | last post by:
Hi Bruce, Thanks For Reply. U were right, Needed to pass string , but also need to pass size of Data( instead of 16, passed actual length of data). So that worked for me & didn't get any...
2
by: SunshineInTheRain | last post by:
I'm trying to modify a long long code within a button click by make the insert/update/delete/select using the same transaction. Purpose is to make sure every operation can be rollback instead of some...
1
by: Ivan Ven Osdel | last post by:
>----- Original Message ----- Here's a function I wrote for checking remote or local file existence. It works for me but admittedly I haven't tested many cases with it. Also its currently...
4
by: tokcy | last post by:
HI every one, i am using tooltip on click of link and i want like when that tooltip open then background window would be blure(). can anyone help me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.