Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
11
Posts with Upvotes
11
Upvoting Members
6
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
3 Commented Posts
3 Endorsements
Ranked #486
Ranked #334
~63.1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for fiju

init() is just a standard convention most people adopt with components. The init() function initializes any variables needed by the component's functions. Then returns a reference to the current component. ie [code] Test.cfm <cfset myObj = createObject("component", "MyComponent").init(dsn="My DSN")> MyComponent.cfc <cfcomponent> <cffunction name="init" output="false" returntype="MyComponent"> <cfargument name="dsn" type="string"> <!--- initialize …

Member Avatar for anita.jena
0
5K
Member Avatar for jdavenport

Depends on what else the stack trace says. All we can tell from that is that something goes wrong when checking your jvm version. What's the rest of the trace? Check the logs if needed.

Member Avatar for Sculli
0
452
Member Avatar for subrata_ushasi

Double the pound signs. ie Use ## instead of # [code] examples: <cfset value = "print ## sign"> <cfoutput>print ## symbol</cfoutput> [/code]

Member Avatar for EfrainGonzalezBermudez
0
353
Member Avatar for yankeefan24

I doubt there is anything built in, but you could roll your own. Grab the textarea value, split it on some sort of word boundary (space, etcetera) and validate.

Member Avatar for danarashad
0
338
Member Avatar for kendaop

> Here's the code that's producing it. What you posted works perfectly w/CF10 and mySQL. Are you 100% positive that's the SQL you're using? Because a common cause of that error is forgetting the comma before the date mask ie DATE_FORMAT(Events.event_date "%W") instead of DATE_FORMAT(Events.event_date , "%W")

Member Avatar for arrgh
0
4K
Member Avatar for ziggydog

> does this new id already exist in the array If you're looking for a magic function, there isn't one. You must loop through the array elements one by one. Pull out each structure, check it's ID. If it matches throw an error. It's as simple as that.

Member Avatar for ziggydog
0
175
Member Avatar for RickCJ7

> `decrypt(ToString(toBinary(strBase64Value)),"keycode")` If there are only 2 arguments, it's not AES. It defaults to a legacy algorithm called [CFMX_COMPAT](http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7c1c.html). Most CF apps don't use that anymore. I wouldn't bother trying to replicate it in c#. Better to decrypt and re-encrypt with whatever algorithm you plan to use in the new …

Member Avatar for arrgh
0
495
Member Avatar for cee.gee.50

Arrgh... the site ate my response. Anyway, that's a sql UPDATE. The basic syntax is: http://www.w3schools.com/SQl/sql_update.asp <cfquery ...> UPDATE TheTableName SET ImagePathColumnName = <cfqueryparam value="#variableWithPath#" cfsqltype="(your type here)"> WHERE PrimaryKeyColumn = <cfqueryparam value="#variableWithPrimaryKey#" cfsqltype="(your type here)"> </cfquery> If you need specifics, post your table structure and form code.

Member Avatar for arrgh
0
245
Member Avatar for tapuwa2002

Try a regular expression like `ReFind("[^\d]", form.theFieldName)` If the value's required, check the `LEN(...)` too.

Member Avatar for arrgh
0
96
Member Avatar for PhilEaton

> 1. What are the circumstances you would use it. > 2. What are the advantages and disadvantages to using it over HTML? > 3. Is it compatible with CSS,Javascript, PHP, and MySQL? If you've used PHP (which I think you have) then you already know the answers to most …

Member Avatar for arrgh
0
2K
Member Avatar for tapuwa2002

ColdFusion supports several persistent scopee. Take a look at the documentation for the `session` (per user) and `application` (entire app) scoopes.

Member Avatar for arrgh
0
108
Member Avatar for tapuwa2002

It doesn't make sense to use both in the same block. As jsmall26 said cflocation always wins because it runs first - on the server. The browser never even sees the javascript. The javascript belongs on the form page. It should execute before the form is submitted. Save the cflocation …

Member Avatar for arrgh
0
276
Member Avatar for Decamm

HTML file inputs do not allow multiple file selection. AFAIK you need flash, etc. Take a look at a control like swfupload http://webdeveloperplus.com/jquery/multiple-file-upload-with-progress-bar-using-jquery/

Member Avatar for arrgh
0
219
Member Avatar for teedoff

> I need to loop over the first 5 arrays, then have another loop to output any remaining data greater than 5 If you elements, can't you just loop twice? Loop from 1-5, if there are enough elements <cfset firstLoopMax = Min(variables.albumEdit.albumCnt, 5)> <cfset lastShownIndex = 1> <cfloop from="1" to="#firstLoopMax#" …

Member Avatar for arrgh
0
130
Member Avatar for raul prakash

I'm not familiar with it, but the links here might help http://stackoverflow.com/questions/11175499/coldfusion-iis-pci-scan-servletexec-vunerability

Member Avatar for arrgh
0
75
Member Avatar for teedoff
Member Avatar for mmonclair

> And I get this error: > > Invalid parameter type. It's hard to follow all of that without seeing the values. Can you put together a small *concrete* example of the QoQ that's failing (with the values)? Btw, do you really have to use a QoQ? Couldn't you use …

Member Avatar for mmonclair
0
261
Member Avatar for xpstyle36

The 1st option should have a VALUE too, ie `<option value="0">Choose an order number</option>` But other than that it looks ok. 1) Is that the exact code used? 2) Maybe one of the query values is causing a problem. Do some debugging and ump the query values. Can you post …

Member Avatar for xpstyle36
0
971
Member Avatar for emaleroland

On what line does the error occur? I don't know the app, so I'm guessing based on what I see. "dtRan" appears to be the name of a column in a query. There are 2 queries in the code (cfspExportInfo and cfspExport). The error suggests one of them does not …

Member Avatar for arrgh
0
262
Member Avatar for ziggydog

> I am having problems with pagination using cfloop and the grouping of cfoutput Trying to combine cfloop start/endRow and a grouped output is just asking for pain. I honestly doubt it's possible. You either need to do *real* pagination ie only return x records in the query or drop …

Member Avatar for arrgh
0
148
Member Avatar for lgriess
Member Avatar for grabit

[QUOTE=;][/QUOTE] [quote]your code is very easy to hack and if you're using similar formed queries, I can do some dangerous things.[/quote] Sad there are still apps out there with this kind of unprotected code .. Makes you want to ask for the company web developer's credentials before doing business online.

Member Avatar for arrgh
0
103
Member Avatar for SusanHAllen

I don't see a stray characters. If it only happens with .cfm files, check your Application.cfm/cfc files. It runs every time you request a .cfm page. So it might be the culprit.

Member Avatar for arrgh
0
157
Member Avatar for mmonclair

[quote]That won't work. <cflocation> only works with relative paths[/quote] cflocation can redirect to an absolute url ie http://www.somesite.com, so I don't think that's the problem.

Member Avatar for arrgh
0
8K
Member Avatar for webmedia

[QUOTE=;][/QUOTE] Unfortunately I don't know how to decode UTF16. If it were a regular UTF8 string - or the values always had 2 leading zeroes - you could decode it like any 2 char hex string. Loop and grab every 4 characters. Use inputBaseN to get the ascii code, and …

Member Avatar for webmedia
0
710
Member Avatar for lafalot
Member Avatar for arrgh
0
99
Member Avatar for Nisha1705

[QUOTE=;][/QUOTE] Sorry you're asking in the wrong zone. This is ColdFusion. ASP.net is next door ;-) [url]http://www.daniweb.com/web-development/aspnet/18[/url]

Member Avatar for arrgh
0
78
Member Avatar for teedoff

[QUOTE=;][/QUOTE] [quote]My problem is when I try to select a Year, the models dont change based on that selection[/quote] If that's the desired result, your binds are backward. Year is bound to model. So when the year list changes when a model is selected, not the other way around.

Member Avatar for arrgh
0
473
Member Avatar for alinbabba
Member Avatar for mmonclair

I haven't done anything like this. So I can't say whether there's a better option. But it certainly sounds doable from a technical standpoint. It's just a series of cfhttp posts and db queries on your end. What issues are you seeing?

Member Avatar for mmonclair
0
4K