152 Posted Topics

Member Avatar for SimonSiew

[QUOTE=SimonSiew;1595910]is there a way to know the progress of the query to display a progress bar... [/QUOTE] No. Queries don't return partial progress. You'll only know when they're complete. [QUOTE=SimonSiew;1595910]or is there a way to cfflush the output so that it will begin populating while its still querying? [/QUOTE] Definitely …

Member Avatar for arrgh
0
271
Member Avatar for swskpper

Did you verify the "selected" values actually exist in the query? Other than that the code looks okay except for the onChange. OnChange accepts javascript/actionscript. But it looks like you are passing in the selected value instead, which probably wouldn't work.

Member Avatar for bregan507
0
288
Member Avatar for SusanHAllen

[quote]I'm not doing actionscript, mind you, that's another headache I don't need.[/quote] Unfortunately once you start using flash forms, you can't avoid it for long. lol Not unless your forms are dead simple .. [quote]Yeah, I was never a fan of flash forms. They seem nice but I'd rather build …

Member Avatar for arrgh
0
92
Member Avatar for teedoff

[QUOTE=teedoff;1429033]Got some good help at adobe forums...lol[/quote] ... among others ;-) Maybe it's lack of caffeine. But I've read the question twice and still don't understand what the data looks like. Could you give a sample of A) the values you're using (FORM.crossRefList, SESSION.crossRefList, productGroup) B) what the output SHOULD …

Member Avatar for kha_tsn
0
137
Member Avatar for fiju

Haven't figured out the magic string yet. But supposedly xpath gets ugly when quotes are involved. [url]http://kushalm.com/the-perils-of-xpath-expressions-specifically-escaping-quotes[/url]

Member Avatar for conork
0
212
Member Avatar for FlyByNight73

Don't know about your code. But Paolo's example shows a java.io.ByteArrayOutputStream as the fileContent. [code] <cfdump var="#response#"> [/code] A possible fix is explicitly convert it to UTF8 first. Then deserialize. [code] ... <!--- response is a java.io.ByteArrayOutputStream for some reason? convert it to UTF8 string ---> <cfset utf8Response = response.fileContent.toString("UTF8")> …

Member Avatar for arrgh
0
625
Member Avatar for teedoff
Member Avatar for teedoff
0
263
Member Avatar for azgold472

The only way I know of is to use CFSAVECONTENT. But IIRC you have to escape CF tags. Otherwise, they're evaluated immediately instead of being treated as a plain string. <cfsavecontent variable="putme"> .. whatever code you want here. ...tags will be evaluated unless they're escaped </cfsavecontent> <!--- see what the …

Member Avatar for arrgh
0
131
Member Avatar for teedoff

[quote]I followed the code exactly[/quote] I hope not ... because that code is wrong :) Two things are messing it up 1) Assuming the \\ is not a typo. Get rid of them. 2) The function is StructInsert ... not StructureInsert But that function isn't used as much as it …

Member Avatar for teedoff
0
276
Member Avatar for sharma.rahul375

[quote]I think the mail could not be sent before the directory is deleted.[/quote] No, not if you're using spooling. With spooling mail is sent via a separate thread and may be sent after you delete the file. If you read the docs on cfmail that's the expected behavior (see below). …

Member Avatar for arrgh
0
201
Member Avatar for dipakatcvrca

You can't hide a query string. That's not how it's designed. You can however - encrypt query strings - use method=post instead of method=get, so variables are not sent through the query string - or store variables in the session scope instead .. But obfuscation isn't a substitute for good …

Member Avatar for @developer
0
332
Member Avatar for Jeanioz

Most of the time, replace() is more efficient. [I]Geez.. this thread's like 3 years old![/I]

Member Avatar for arrgh
0
138
Member Avatar for norul aswin

It's the right idea, but the logic breaks down for large strings like "123456789ABC66HYIGGasdfsdf ewqrdsfsdfsdfsd a111sdf134sa65d4asd4asd";

Member Avatar for arrgh
0
311
Member Avatar for deucalion0
Member Avatar for arrgh
0
648
Member Avatar for Fued10

Your problem is the table design. You shouldn't store lists. That's why the query is so hard. Normalize the table and the query will be a simple join. Unique users and groups should each have a separate table. User Table: UserID (unique user ID) GroupsTable: GroupID (unique group ID) User …

Member Avatar for arrgh
0
111
Member Avatar for grabit

Any time parameter values contains special characters, you have to encode them ie Use UrlencodedFormat

Member Avatar for dipakatcvrca
0
272
Member Avatar for callyvan

[quote] <cfif NOT ISDEFINED("form.Effective_Date")>[/quote] Text fields always exist. So IsDefined will do nothing. [quote]the "AND isDate(form.Effective_Date)" should return a true or false[/quote] It will, but the code's not using IsDate ;-) It's checking if the value is an empty string "". Trim() the field and use IsDate instead.

Member Avatar for arrgh
0
258
Member Avatar for zero_sequence

That's too much for 1 page. Set it up as a scheduled task. Have the task pull 500 records. Process them, then have the task reschedule itself if there's more records to process.

Member Avatar for zero_sequence
0
93
Member Avatar for teedoff

Not sure why it needs to be in an html page. Creating a small .cfm script that can be used from any page is the simplest. The other option is to configure the CF server to process .html pages (ie so any cfm code is executed). But that's a major …

Member Avatar for osekmedia
0
189
Member Avatar for mary123

Personally that's too many popup messages for me ;-) But what you're describing is done with javascript, not CF. [url]http://www.w3schools.com/js/js_popup.asp[/url] You can incorporate the js into your form. You just have to tie it to the right event. Like in your form's OnSubmit() event.

Member Avatar for mary123
0
146
Member Avatar for antoniokp

The error means there's some problem connecting to your database. The cause could be a lot of things. - has something changed with your db recently - which db type are you using? - does the error happen every time or just sporadically?

Member Avatar for arrgh
0
146
Member Avatar for kumarsamy

[quote]Now the problem is whenever the user reregisters again the ids wont match[/quote] Registering is a one time event. It should never happen more than once. [quote]its really problematic because whenever the user forgets the password user is registering again such that there are duplicate entries.[/quote] The application shouldn't allow …

Member Avatar for arrgh
0
87
Member Avatar for azgold472

Your question's a little confusing. What's your real goal in plain english, not code? To identify files by client, or somethin else ...? Also, what is a #Property# in this context?

Member Avatar for arrgh
0
144
Member Avatar for kloupe

It'll only work for components. But something like the code below. See the docs for more details on cfinvoke. [url]http://livedocs.adobe.com/coldfusion/8/Tags_i_10.html[/url] [code] <cfinvoke component="cfcs.objectfactory" method="init" returnVariable="objFactory" argumentCollection="#settings#" > <cfset aplication.factory = objFactory> [/code]

Member Avatar for arrgh
0
258
Member Avatar for melek@2011

[QUOTE]One i use the single path link without database it works, but with database dynamic link, it wont play.[/QUOTE] You mean it works with a hard coded path but not when you use variables? Do a view source and look at the html generated. Compare it to the hard-coded-working version …

Member Avatar for arrgh
0
321
Member Avatar for fiju

[QUOTE=fiju;1424368]Because redirection occurs independent of the Yes/No values of that attribute[/QUOTE] The [URL="http://livedocs.adobe.com/coldfusion/8/Tags_j-l_04.html"]AddToken attribute[/URL] relates to client/session management. It has no affect on redirection. Only what's passed in the url. When addToken="yes", CF appends several client tokens (cfid, cftoken and possibly jsessionid) as URL parameters So this [code] <cflocation url="http://www.yoursite.com/path/to/products.cfm?productid=4" …

Member Avatar for arrgh
0
634
Member Avatar for BaSk
Member Avatar for kumarsamy

Yeah, doesn't your app have a login page already? That's usually the point of having people register ...

Member Avatar for teedoff
0
148
Member Avatar for teedoff

A windows shortcut? Just go to Desktop > right click > New > Shortcut and enter the url.

Member Avatar for arrgh
0
122
Member Avatar for lse123

What's wrong with this answer to your question? [url]http://forums.adobe.com/message/3295899#3295899[/url]

Member Avatar for arrgh
0
72
Member Avatar for leemyers

[quote]<cfquery name="InsertUser" datasource="#request.dsn#"> BEGIN TRANSACTION SET NOCOUNT ON[/quote] Nothing to do with your error, but the TRANSACTION is in the wrong place. In it's current spot, it doesn't do anything because there's only 1 statement in that cfquery. Transactions apply to [b]multiple[/b] statements. I'd bet dollars to donuts, whoever wrote …

Member Avatar for arrgh
0
208
Member Avatar for Cheesecake87

[quote]ORDER BY "ItemOrder" ASC[/quote] Don't use quotes. If you do, your db will treat ItemOrder as a string, not a [I]column name[/I]. It's like saying [code]ORDER BY "IHaveNoIdeaWhyThisIsntWorkingThisIsNotARealColumn";[/code] It may execute ... but it won't sort anything. ;-)

Member Avatar for Cheesecake87
0
160
Member Avatar for mmonclair

Sounds like a good job for a scheduled task. Just create a cfm page that queries your db for the desired records. Then send a cfmail to each one. Once the page is set up, create a scheduled task using the CF Administrator, or cfschedule. Schedule the task to run …

Member Avatar for mmonclair
0
95
Member Avatar for leemyers

The error message is pretty clear. The db can't find the object (ie Table) "Language". Run the query against directly against your db in MS SQL. Does it work?

Member Avatar for leemyers
0
262
Member Avatar for ckkiran

[QUOTE=ckkiran;1376424]Hi Can anyone help me how to point two cold fusion application to the same datasource.[/quote] Datasources are created at the CF server level. Just use the same datasource name in both applications. [QUOTE=ckkiran;1376424]Is it possible to have two differnet applications pointing to the same database?[/quote] Yes [QUOTE=ckkiran;1376424]If so how …

Member Avatar for Spiderant
0
104
Member Avatar for leemyers

[code] Attribute validation error for CFMAIL. The value of the FROM attribute is invalid. The length of the string, 0 character(s), must be greater than or equal to 1 character(s). [/code] It's an error from cfmail. It's just saying the sender address cannot be empty. Where in your code are …

Member Avatar for leemyers
0
145
Member Avatar for cmhampton

From the little I've read there are some compatibility issues w/.net and soap. I haven't seen any success stories. Just suggestions to use xml instead. [url]http://stackoverflow.com/questions/1132536/consuming-apachesoapmap-complex-datatype-in-webservice-using-net[/url]

Member Avatar for Ragen
0
636
Member Avatar for timbad2021

CF9 has does have vfs. But image processing is time consuming. No avoiding it. It's usually better to just create thumbnails once and save them on disk. Resizing every time a user requests a page wastes a lot of resources.

Member Avatar for arrgh
0
130
Member Avatar for fobos

You mean store the file content in the db, not just the file path (ie "c:\path\myImage.gif")? While you can do it, it can drastically bloat your database. But if you really want to do it, here is an example. It's for Oracle but the overall process is the same for …

Member Avatar for arrgh
-1
983
Member Avatar for fobos

The problem is dynamic sql. Save yourself some headaches and don't use dynamic sql. It's never as easy as it looks ;-) Plus it's hard to debug and is a big sql injection risk if done wrong ... But .. it doesn't look like you even need to return the …

Member Avatar for arrgh
0
94
Member Avatar for timbad2021

CF has a built in tag for that. You can use cfzip with a "source" directory [url]http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7695.html[/url]

Member Avatar for arrgh
0
100
Member Avatar for lafalot

[quote]Here you go.[/quote] Not sure how that applies, since they said they're [B]not[/B] using cfauthenticate. Don't know the answer. I've only seen one post that's even remotely similar. [url]http://www.justskins.com/forums/screwed-up-with-cfauthenticate-36844.html[/url]

Member Avatar for arrgh
0
147
Member Avatar for zero_sequence

I don't know about onRequestEnd.[COLOR="Red"]CFM[/COLOR]. But with Application.cfc the "targetPage" is passed into the onRequestEnd function. You could use string functions to determine if you should include the analytics. Maybe onRequestEnd.cfm has something similar? [url]http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d42.html[/url]

Member Avatar for arrgh
0
110
Member Avatar for teedoff

Playing around with the validator it doesn't seem to like the unclosed anchor <a> tags. It also didn't seem to like anchors that weren't nested inside some element like a <p> or <div> ...? This validated with 1 warning. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" …

Member Avatar for arrgh
0
185
Member Avatar for tiny7415

... you need to read the documentation ;-) [url]http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_c-d_25.html[/url]

Member Avatar for arrgh
0
1K
Member Avatar for teedoff

I'm too brain dead right now to explain it well. But most techniques use the MOD operator to determine when to create a new row. ie if the current index is divisible by 5, create a new row <cfif CurrentRow MOD 5 EQ 0> <!--- close the old row and …

Member Avatar for arrgh
0
130
Member Avatar for teedoff

Unless there's a typo, you're not showing any text in the list ;-) ie <option>there should be something here </option> [quote]I even tried adding a size attribute.[/quote] That applies to vertical size. ie Display x items (or rows). To set the width, use CSS and the "width" attribute. Select lists …

Member Avatar for arrgh
0
180
Member Avatar for fobos

[quote]<cfif #URL.get#> or <cfif isDefined(URL.get)>[/quote] First and foremost, you have to make sure that variable is defined before using it. In the current code, you're checking the value 1st, then seeing if it's defined. That's probably why you're getting an error. Solution: your IsDefined() statement must be first. Second, IsDefined() …

Member Avatar for arrgh
0
167
Member Avatar for fobos

I don't know if CF9 supports the 2007 format out of the box (ie .accdb). [url]http://blog.crankybit.com/msaccess2007-and-cf8/[/url] I'd try using an .mdb file first. It should be simple. 1. Log into the CF Admin => Data & Services => Datasource 2. Add a DSN * Enter whatever name you want in …

Member Avatar for arrgh
0
73
Member Avatar for vijaykseo

[quote]If it returns blank, it means they got to the page directly (user was not taken to it via a URL). [/quote] .. or that value is blocked by firewall s/w.

Member Avatar for arrgh
0
253

The End.