Cfcontent shows the image but the text, and all other input box on
the page disappears.
Of course, what you must do is call the image with a CF template in the
SRC, ie:
IMG SRC=displayImage.cfm?id=nnn
Then the template returns the image only. The rest of thje HTML is
provided by the calling
If it is THAT urgent, the fastest method is RTFM ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
cfset thisTerm = Replace(thisTerm, ##38;, , all)
You have a space before in the first string, and not in the second.
Is it on purpose? Could it be the source of your problem.
--
___
REUSE CODE! Use custom tags;
See
It screws up the looping, without making this change..
Ok, which looping?
Can you show a bit more of the code?
~|
Create Web Applications With ColdFusion MX7 Flex 2.
Build powerful, scalable RIAs. Free Trial
A little late to this thread.
I even started a new one on the same issue ;-)
Let's look at it this way, there are many ways to submit.
Of course there are, but whatever way is used, if the form has its
attribute METHOD=POST,
the only way it could be submitted as GET would be to change it by
- free
As far as CF STudio has been paid years ago, it is as free for me as any
other free tool.
- still being actively developed (new features/functionality/plugins)
with new things that I do not need anyway...
- plethora of plugins (xml, css, javascript, etc)
which I do not
Maybe you aren't aware of the CFEclipse scribble template? It will
let you
test out code and run it at the press of a button (I use F8).
And MSIE will do it just in one click.
--
___
REUSE CODE! Use custom tags;
See
A big amen to that.
I'll second also, and I would add that the trouble with many of those
open source projects
is that they aim at getting as independent as possible from Windows.
Well, this may be fine for Linux fans, but many of basic
functionalities, look and feel,
even terminology we are
Now that HomeSite is defunct
Its still running fine for me.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
Sure you can open a file anywhere on your machine, and edit it in
Dreamweaver, but how will you test the file?
But who needs to test a file directly from the editor ?
I develop from my work station on which I have CF (3 different versions)
and IIS installed.
For testing I just use MSIE and
Hi,
For those who are also getting this error, here are some results of what
I've been doing
in an effort to isolate the exact circumstances of the problem.
Every time a form is submitted in my application, the following JS code
is executed:
if (form.action.indexOf(method) == -1)
Would it be possible that the
default 'post' is being displayed and that 'get' is coming from someone
writing their own form and submitting to your action template?
Technically, it would be possible, but this application is used by
customers to edit the content of their own site,
they wouldn't
Apparently, the problem is not new:
I found this thread from 2003:
http://www.webmasterworld.com/forum21/6263-1-15.htm
Could it be that because of some transmission problem the server could
not find the file associated with the HTTP request POST
and that it will change it for GET?
What I've
filter=*.jpg|*.gif|*.png
No way.
As the docs says: One filter can be applied.
Only one filter, with ? or * wild characters, A la DOS, or even A la
CP/M should I say...
But with CFX_ListDir, this will work using attribute
EXTENSIONS = *.jpg,*.gif,*.png
--
Which was that you CAN easily run
simple tests or try things out within Eclipse without having to set up new
projectes or files over and over.
But you do not have to set up any new project with CF Studio just to
test a page.
Just save it under some name and call it from Explorer.
You can also
You could try simplifying it with a CFSWTCH/CFCASE statement instead...
Or more simply:
cfset Order_Number = left(00, 8 - len(form.reorder)) form.reorder
or:
cfset Order_Number = repeatString(0, 8 - len(form.reorder)) form.reorder
or:
cfset Order_Number =
This is quite amusing because what you describe is EXACTLY what the
CFEclipse scribble pad is.
Then why would I need CF Eclipse if it does exactly what I've been doing
with CF Studio for years?
This is exactly my point.
--
___
REUSE CODE! Use custom tags;
People who don't want to save their changes until it's right.
Ah? Like people working directly on the production server?
Or people who do not know Ctrl-z? ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
OK, I know everyone is already familiar with the age old argument
stirred up once again by the a
href=http://www.computerworld.com/action/article.do?command=viewArticleBasicamp;articleId=9020942;recent
Computer World article/a
There have always been such articles about extinct technologie,
CF Studio 4.5
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
~|
ColdFusion
Does anyone know of a way I can extend the file filter and get what I
want
in a single read?
Have a look at CFX_ListDir :
http://www.contentbox.com/claude/customtags/ListDir/viewListDir.cfm
You can provide a list of extentions, among many other parameters :
CFX_ListDir
DIRECTORY = full path
Does anyone know if it is possible to include ICONS in a select list
AFAIK no.
All you can do is use different colors for options, but anything that
could potentially change the height of a line is not possible.
You will have to emulate the select with divs and some javascript in the
onsubmit
How do I unsubscribe from cf-talk
Read at least ONE message up to the end ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
I've got a few ideas, but they all basically suck. Any takers?
You can try this free custom tag:
www.contentbox.com/claude/customtags/convertDate/viewConvertDate.cfm
And test it online here:
www.contentbox.com/claude/customtags/convertDate/testConvertDate.cfm
(need no output mask)
--
cfset var1 = 0 - abs(numVar) /
Why make it simple ?
How about this:
CFSET var = Log (1/exp(x)) ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
It is more readable (in my opinion).
May be, but it is less writable ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
You can do a pseudo-animated GIF using javascript, which would allow each
logo to have a unique link.
Exact, and for IE users, you can even have pleasant effects using filters.
--
___
REUSE CODE! Use custom tags;
See
I looked through the archives and found some folks who've had the same
problem
Yeap! Can you dump CGI.REQUEST_METHOD variable and see if it contains
GET or POST?
--
___
REUSE CODE! Use custom tags;
See
Has anyone encountered this?
Yes, from time to time.
Now you say that you are getting this error when the form resubmits itself?
This is a new element in the puzzle.
And also, you confirm that IIS received it as POST, then it looks like
the problem is CF related.
I thought that it was under IE
The form says POST
CGI.REQUEST_METHOD shows GET
Exactly the same problem here :-(
~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade see new features.
In my case, the problem happens under CF5.
The problem might be occuring ever time under some circumstances, but
I've never
been able to reproduce it.
Now I'm eliminating
chunks of code line by line to see if I can identify a particular element
that is causing it.
Very good way to find the
The page I was calling:
/page/memberhome/action/action/campaignid/12
When I changed the form to call:
/index.cfm?page=memberhomeaction=actioncampaignid=12
It worked fine.
Hmmm... Could it be some problem with the cache?
The first address shows no parameter, so it could be interpreted as the
The application uses a function called in application.cfc to deconstruct
friendly urls into ... Well ... Not so friendly urls.
Ok, but how ist the correct template finally called by the function?
--
___
REUSE CODE! Use custom tags;
See
When index.cfm is executed, it calls the appropriate template or function
based on the contents of the page variable
Ok, but how does it call it, how does it recognizes that it was called
with method=POST and how will it call the page using the appropriate method?
--
cfoutput
cfloop collection=#variables# item=i
cfif isquery(variables[i])
#i#: #variables[i].recordcount# recordsbr
/cfif
/cfloop
/cfoutput
That code would assume the queries existed in the variables scope and
had been run
I think this thread was discussed before, and you can't get the
variables
scope in onError or with cferror.
Exact, I was the one to asked the question.
However, I just found that the request scope is available from the
CFERROR template.
For instance, this works:
CFERROR TYPE=EXCEPTION
How are you trapping the errors? Cfcatch, or onerror()?
I use CFCATCH for all errors that could normally happen, ie: CFHTTP on a
site which does not respond.
I use CFERROR for all unexpected errors.
--
___
REUSE CODE! Use custom tags;
See
You don't need to wrap every query with CFTRY/CFCATCH; you're better off
reserving that for specific exceptions where you can present a specific
solution. If you just use CFERROR/onError to capture runtime exceptions, you
can get the same results in a more structured way.
Exact.
In the CFERROR
If you need to do performance analysis this indepth,
This is not what I need, I just need to check if queries currently
defined in the CF application
returned records or not in case of error.
you should definately not be using MS Access! It's a DESKTOP DATABASE!
Please give me a break with
Ok, I'm still a little confused. If the query is still active then the
result set wouldn't be defined yet.
Brad, I'm talking of CF queries objects, not SQL queries in the database
engine itself.
The SQL query may be not active, but there is still a query object
defined in the CF application.
Hi,
Beside declaring them in the session scope, is there any mean to find
all currently active queries in an application?
Both in CFMX and CF 5 ?
~|
CF 8 â Scorpio beta now available,
easily build great internet experiences
Not sure what you mean? Are you trying to get a report of every
currently running template which is querying the database at that point
in time?
Exact, I'd like to list all active queries in my onError template,
together with the number of records found.
This could help for debugging.
--
If the query is still active, you wouldn't know how many records had
been returned because it
wouldn't have returned yet.
I just mean defined in CF
Depending on your database, just run a query like what I had suggested.
I don't think this is possible with Access databases.
--
Hi,
Not really CF related, but...
Is there any equivalent in CSS for NOWRAP like in TD NOWRAP ?
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
Never min, found it: white-space: nowrap
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
It could be that the problem is using the submit() method within JS.
Glad if your problem is solved.
My case is a bit different: I'm using INPUT TYPE=submit VALUE=...
onClick=;return checkInput()
And checkInput alwas returns explicitely true or false.
However I just noticed that I have a
Yep, all the way up. And to get it to ignore it, just add one in your own
folder.
Exactly, but if you just want this application.cfm to just do nothing,
make sure it contains at least one space,
because CF does not like 0 length files.
--
___
REUSE CODE!
lemme know what you guys think
personally, I hate Flash menu so much that it does not make any
difference the way they work ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this
I think you would be better served by using your form's onsubmit event
handler to check input, instead of this.
Not that easy, because I have several submit buttons, and they perform
different checking depending on which one is clicked.
And all buttons and functionalities are in a common
No, but it's a little ambiguous, since your event handler calls the
submit
method if I read the thread accurately.
No, it doesn't. If the onClick event returns false, the click on the
submit button is cancelled,
then ther is no submit, if it returns true, the submit proceeds
normally. I don't
Exactly the same thing indeed.
I'm on Linux/Apache2.0.52/CF7.02.
And I'm under Windows with CF 5, so the problem is unlikely due to the
operating system or CF.
It looks more like an IE 7 glitch.
Can you confirm about this?
I'll try to investigate this in some IE 7 forums.
--
Is the form submitting via a normal submit
Normal submit, after some Javascript validation.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
Where can I get a copy of the custom tag by Pablo Verando called
CFMDIRECTORY?
If it is a proper list of what's in a directory that you need, you may
have a look at CFX_ListDir :
http://www.contentbox.com/claude/customtags/tagstore.cfm
--
___
REUSE CODE!
it does seem that the errors show a user agent of IE7
Yes, it always happen with IE7.
I suspect one of those new stupid gadgets for paranoids like anti popup
or and anti-phishing ar anti whatever.
I have IE7 on my portable, but I'm not able to reproduce the phenomenon.
I also do some JS
Hi,
Although I'm not sure this could be related to CF, but I'm having some
weird errors
caused from time to time in some form action template not able to find
anything in the form scope.
I'm certain the template is called with METHOD=POST, but when the
error occurs,
a CFDUMP on the form scope
What is the referrer saying when it happens?
The referrer shows the correct page that is supposed to send the form.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL
Why would anyone want to do this?
Any developer having several customers using different versions of CF.
Personally I have version 5, 6 and 7 installed and running with no
problem on my development work station,
and I develop all my modules common to all applications compatible as
possible
CF won't let you install 2 installations on the same machine
I'm running versions 5, 6 and 7 on the same machine with no problem, and
I'm planning to give a try to version 8 as well.
--
___
REUSE CODE! Use custom tags;
See
Any limitations in browsers
There is a problem with MSIE 6 which does not support transparency with PNG.
I don't know if the problem was solved withe version 7, but many people
are still using version 6.
AFAIK, there is no problem if you don't use transparency.
--
That IE6 issue can apparently be addressed with some JS if needed.
Good to know. Thanks for sharing.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Date = '#createODBCdate(Now())#'
Tow things here: first a date value needs no quotes in SQL, then use
this instead:
Date = #createODBCdate(Now())#
Secondly, Date is a reserved word in several db systems, it would be a
good idea to use another field name.
--
First, the Now function returns an ODBC timestamp
Are you sure of that?
Now () is supposed to return a date-time object which is a foating point
value, not an ODBC date.
But it is possible that it will be automatically converted to an
ODBCDate by the CFQUERY tag.
And if it does so, then it is
You can easily test this:
cfoutput#Now()#/cfoutput
This only shows that CFOUTPUT formats a date-time object as an ODBC
dateTime stamp by default, not that Now() returns it.
If it was so, then Now() + 1 would cause an error, since one cannot add
a number to a string.
Try
It's often easier to use CFQUERYPARAM, actually - for example, you don't
have to worry about single quotes.
But if you want only a date, with no time, you still need to use
CreateODBCDate () to format the date properly for CFQUERYPARAM,
then it is is not that much easier.
--
CF casts datatypes when necessary in an expression. I don't see how
this is
any different from any other casting in CF.
This is what I meant.
CFOUTPUT cannot output anything else than a string, then the expression
between #...# must be converted to a string before it can be processed.
Since
if anyone out there is still using IE6, please try
clicking a few links to see if it causes an error.
Lots of blah blah, but I see no error.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any
you put in place, somebody comes up with
*something* that mucks up the works and refuses to do it right
The last I saw in this category was somebody who absolutely wanted to
enter several values
in a text field using the Enter key in order to enter several lines...
Of course, this submit the
Google is acting strange these days.
I have a site withe urls like .../article.cfm?id=nnn where nnn is a number.
The hagher number in the database in around 1000.
However, my error log reports the google bot is trying to access pages like
article.cfm?id=912374658345
There is no way it could have
Google wants to find every
single article/blog/post on your site that they can.
I don't think they will try any url which is not found in some other page.
I think they certainly have enough to search and they don't need to
invent new url of their own, just in case...
--
Claude's site includes some functionality that is causing an infinite
number
of these links to be generated.
This was also my conclusion, but there is definitely no such reference
on my site.
Not in the database either: the Id number is an Autocounter field, and
the id Googles transmits
is so
Find out by asking Google
I think finally that Google has nothing to do with it.
It is more likely that some site referenced our article, and messed up
the link.
Then Google finds it and tries to index our page from it.
--
___
REUSE CODE! Use custom tags;
I come from a C#/Java background,
Your background is probably to light, I've worked with tens of languages,
including Fortran, Algol, Pascal, Lisp, Snobol, C, C++, Java, and I
don't remember
any in which scoping was mandatory or even possible for parameters.
--
INSERT INTO mytable ( myNAME )
VALUES ( '#evaluate(form.myNAME#idx#)#' )
The problem is caused by the way the automatic single quote escaping
process works (or does not work) in CF:
It only applies to variables, not to expressions.
The solution is then to evaluate your expression in a
You can try using PreserveSingleQuotes function.
No way: PreserveSingleQuotes does not enforce single quotes escaping,
on the contrary, it disables the automatic escaping done by CF in queries.
--
___
REUSE CODE! Use custom tags;
See
However, I'd like to input an intermediary page between the form and
the action page which would allow the user to confirm what they entered
before it is submitted.
How about having another form in the first action page that lists all
fields and transmit them to the second action template as
If you are under CFMX, you can use the XmlParse() function.
If not, your best choice will be CF_REextract, see:
http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm
--
___
REUSE CODE! Use custom tags;
See
I'm trying to parse a text file into my database
Perfect job for CF_REExtract:
- Go to
http://www.contentbox.com/claude/customtags/REextract/testingREextract.cfm
- enter [0-9]{5,5} *\(base 16\) * in RE1
- enter [0-9]{2,2}-[0-9]{2,2}-[0-9]{2,2} in RE2
- enter a sample of your file in the
I need help with the following search and replace using regular
expressions.
You could use CF_REExtract (see
http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm )
First get all occurences of input tags in a query,
then loop in the query, check the presence of string replace
I am thinking I'll submit my final invoice for the completion of the job
on an as is basis, and give them the CD with the code on it when i
get the cheque.
And I'm thinking you're damn right! ;-)
when i get the cheque.
When you get the cheque CASHED! ;-)
--
Any thoughts on where to get started with this stuff?
Have you an example of how some one could hijack a session under CF?
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address:
it's really unlikely that anyone will succeed.
Ok, but how could he even try?
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
Finally found a function that seems to clean most of the MS Word control
characters and other crap out that was causing me probems. Using two
filters on the body text seems to be taking care of my problems now..
This will clean only about 1% of the crap, may be not even...
Here is a function
with a 5 pixel border between each image in the final image.
You could have even better, much better: hundreds of different frames,
without
having to modify your image.
See CF_PictureFrame:
http://www.contentbox.com/claude/customtags/Frames/testPictureFrame.cfm
--
I want the browser client to resize these BEFORE
they are uploaded. Javascript, Java, Flash, whatever.
If it was possible, it would be a serious breach in security.
Not that resizing an image can be dangerous, but if you can resize an image,
anyone else could do many other things, like
Basically, it should take any
uploaded image and be able to create resized versions
The best I found is CFX_IMAGECR3 cfx_cppedit.cfm?tagname=CFX%5FIMAGECR3.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
Link?
www.google.com
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
~|
FCK has by far the best scrubbing tool I've found for
removing that crap MS dumps into it.
Right, although it can be much improved, which I did in my own inline
editor.
But the most retarded thing in FCK (unless this has been improved) is
that the
cleaning is left to the good will of the user.
the date enters fine but my
select query (which is happening BEFORE the insert and is wrapped in a CFIF
to eliminate entering duplicate data) is returning a record count of 1
anyway.
Could it be that your insert query has the same name as the first select
query ?
--
It did and I renamed it and still the same problem.
A sample of your code would help.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
This cuts down on duplication, meaning that
only one validation routine needs to be maintained.
Fine, but it is means more overhead for the server, thus less efficiency
for the user.
The purpose of an application is to be user friendly, not programmer
friendly.
And Javascript validation
and they ask why the JS and the CF routines had to be written
twice... But if you have rich
customers, no problem.
My customers are not rich, (my taylor is) but they don't even know what
is JS or CF anyway ;-)
--
___
REUSE CODE! Use custom tags;
See
What if the user has javascript turned off?
Furthermore: what if he does not have Internet? Hmmm?
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Hi,
In my CMS I'm using some template defined in a CFERROR tag in the
Application.cfm template
to log every detail I can in a memo field in the database, for further
examination.
I can dump almost everything, especially the session, URL, form scopes.
But I do not have the variables from the
This will contain all the error specific info. Is this what you are
talking about?
Not really, this only contains information about the error, and I
already CFDUMP it.
What I'm talking about is the variables scope of the template that
caused the error.
I mean all variables that were defined in
My guess would be the reason you can't do it, is because the variables
struct is probably only completely populated AFTER the page has been
checked
for errors.
Well, I think the reason is simply that variables scope is proper to
every termplate.
If the error template was included, the
If that were true though, how is the form scope available?
I didn't think of that, but you have a pretty good point.
If it were passing the form struct through to the error template
somehow, it could
also pass the variables struct.
Absolutely, and if it was running as a new template, it also
Whap happens if you try to CFDump out the VARIABLES scope? Does it throw
an error?
Yes, and then the CFERROR template is leaved for the standard error page.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
can you re-engineer
the Application.cfm into an Application.cfc that takes advantage of the
onError event?
According to Josh in the same thread, that will not solve the problem.
Apparently, both functionalities use the same internal code.
--
___
REUSE CODE!
Try putting a CFTRY / CFCATCH around the code that is throwing the error
This is not an option, I want a system that can detect any error
hapening any where.
Try/catch should be used only for isolated situations (and I also use it
in many occasions)
Bottom line Your page should NOT be
if you are getting a very consistent
and duplicatable error, then start debugging the template that causes
the error.
It is the ABC of the debugging. But the most difficult part is generally
to be able to reproduce the error. In this task, the dump of the error
context is quite helpful.
--
801 - 900 of 2701 matches
Mail list logo