Getting Physical Path from Mapped Path

2002-06-10 Thread Jared Stark
Given that I know a Cold Fusion mapping for a site on my server, how can I extract what the physical path (i.e. f:\inetpub\wwwroot\mysite) is? Is it even possible? I can't use GetBaseTemplatePath(), or GetCurrentTemplatePath() because I am trying to do something from within a Custom Tag that is

Query Issue.

2002-05-03 Thread Jared Stark
I seem to be stuck between a rock and a hard spot here. I am building the 'guts' of an UPDATE query inside a variable, and then using the variable inside a query like so: cfset qryText = whatever cfquery . UPDATE table SET

RE: Query Issue.

2002-05-03 Thread Jared Stark
child may have peace'... - Thomas Paine, The American Crisis -Original Message- From: Jared Stark [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 1:59 PM To: CF-Talk Subject: Query Issue. I seem to be stuck between a rock and a hard spot here. I am building the 'guts

RE: Query Issue.

2002-05-03 Thread Jared Stark
] +---+ ...'If there must be trouble, let it be in my day, that my child may have peace'... - Thomas Paine, The American Crisis -Original Message- From: Jared Stark [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 2:52 PM To: CF-Talk Subject: RE: Query Issue. I tried the 0 = 0 trick

RE: Query Issue.

2002-05-03 Thread Jared Stark
= columnname which updates the content of the column, with the contents of the column--no problems there, eh? - Original Message - From: Jared Stark To: CF-Talk Sent: Friday, May 03, 2002 5:52 PM Subject: RE: Query Issue. I tried the 0 = 0 trick and SQL Server gives me an error

Reading cookies set with ASP

2002-04-16 Thread Jared Stark
Hi. I'm trying to print out a cookie from CF that was set in ASP but it doesn't seem to be working. Has anyone done this before and could you point me in the right direction? TIA, Jared __ Get the mailserver that powers this

RE: Reading cookies set with ASP

2002-04-16 Thread Jared Stark
Ok. I've gotten to where I can read it, but this is what is happening. ASP is doing the following: Response.Cookies(lsisummer)(userID) = intUID Response.Cookies(lsisummer)(userLevel) = intLevel So the cookie's name is lsisummer, and it contains the key/value pairs userID=intUID and

Passing Arrays to Custom Tags

2002-03-25 Thread Jared Stark
Hello all, My Wrox ColdFusion book says that arrays can be passed to custom tags just like any other variable, but I am getting errors when I try it. I have the following: cf_ShoppingCart Action=GET Scope=CART Value=ALL VarName=myCart which returns an array of shopping cart items into a

Re: Passing Arrays to Custom Tags

2002-03-25 Thread Jared Stark
# | | Sharon | - Original Message - | From: Jared Stark [EMAIL PROTECTED] | To: CF-Talk [EMAIL PROTECTED] | Sent: Monday, March 25, 2002 6:07 PM | Subject: Passing Arrays to Custom Tags | | | Hello all, | My Wrox ColdFusion book says that arrays can be passed to custom tags just like any

Setting a dynamic variable...

2002-03-11 Thread Jared Stark
Hi all, I have the following inside a Custom Tag: session.#attributes.CartName# = StructNew(); session.#attributes.CartName#.items = ArrayNew(); Which seems to work fine, however if I try the following line: session.#attributes.CartName#.items[1] = blahblahblah; or cfset

Re: Setting a dynamic variable...

2002-03-11 Thread Jared Stark
Thank you both for the suggestions. In the end I decided to do away with passing in a name for the cart (since people only have one cart at a time, there really isn't a need to uniquely identify the cart). - Jared - Original Message - From: Jared Stark [EMAIL PROTECTED] To: CF-Talk

Optional parameters in UDF's

2002-03-04 Thread Jared Stark
Is it possible to have optional parameters in a UDF, and if so, how would I do that? TIA, Jared __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month ·

Re: Optional parameters in UDF's

2002-03-04 Thread Jared Stark
; | } | | | === | Raymond Camden, Principal Spectra Compliance Engineer for Macromedia | | Email: [EMAIL PROTECTED] | Yahoo IM : morpheus | | My ally is the Force, and a powerful ally it is. - Yoda | | -Original Message- | From: Jared Stark [mailto

Re: page up/down

2002-03-01 Thread Jared Stark
I've written a custom tag that does that, and is fairly customizable. I just wrote it for in house use so it isn't anything special, but you are more than welcome to the code and you can change it however you'd like. Contact me off list if you'd like me to send it to you. Jared [EMAIL

Regular Expression Help

2002-03-01 Thread Jared Stark
Hello all I am trying to write a simple search engine, and would like to replace certain commonly used prepositions from the search string such as 'a','the','for', etc I have an array of the prepositions that I would like to remove, however the problem I have is that it is removing them when

Re: assigning a value to a dynamic variable?

2002-03-01 Thread Jared Stark
Actually, there is a shorthand for this: change: cfset Evaluate('#show#') = allUsers to: cfset #show# = allUsers - Original Message - From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, March 01, 2002 2:36 PM Subject: RE: assigning a value to a dynamic

Re: Magazines, Article and Diagrams.

2002-02-25 Thread Jared Stark
I did something similar to this with an online magazine once. I stored the text for the article in the database, and then I stored the paths to the images in the database as well. I had something like: Articles - ArticleID ArticleText Images ImageID ImageName ImageFile

Mapped Paths and Absolute Paths

2002-01-16 Thread Jared Stark
Ok, I know this subject was discussed a little bit earlier, and it got me thinking about a site I am currently developing. As it is, I am developing it as a subdirectory but it will eventually be moved over as the root site. My question is, which tags require the mapped root, as opposed to

Re: Mapped Paths and Absolute Paths

2002-01-16 Thread Jared Stark
Thanks for the reply. The reason I ask is because I have the following setup: request.root = /ldh This is the name of the mapping in CFAM. I have been using #request.root# in all of my tags, including a, etc... Well, this hasn't been a problem because is just so happens that the name of the

Custom Tag to resize JPG on the fly...

2001-12-07 Thread Jared Stark
I have been looking on the Allaire website for a tag to thumbnail JPG images on the fly. I've found one that does GIF, but I need JPG. Anyone know of a good one that they can recommend? I must admit that I'm tacaño(AKA cheap), and I'm looking for a free one. Thanks, Jared

Re: Custom Tag to resize JPG on the fly...

2001-12-07 Thread Jared Stark
Joseph DeVore VeloxWeb Technologies -Original Message- From: Jared Stark [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 2:10 PM To: CF-Talk Subject: Custom Tag to resize JPG on the fly... I have been looking on the Allaire website for a tag to thumbnail JPG images

Downloading email attachment to the client with correct filename

2001-10-18 Thread Jared Stark
Hi all, I am trying to figure out a way to download an email attachment to the client without displaying the full path of where the file is stored. As of now I am using the cfcontent tag with a type of x-application, and then passing it the path and filename, for example: cfcontent

Re: Problem with Stored Procedure

2001-10-05 Thread Jared Stark
=Orderby instead of DBVARNAME=@Orderby This might be helpful: http://www.defusion.com/articles/index.cfm?ArticleID=56 -Original Message- From: Jared Stark [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 5:54 PM To: CF-Talk Subject: Problem with Stored Procedure

Re: Problem with Stored Procedure

2001-10-05 Thread Jared Stark
- From: Jared Stark [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 11:36 AM To: CF-Talk Subject: Re: Problem with Stored Procedure That is how I had it originally, but in the ColdFusion documentation it shows it with the @. Jared - Original Message - From: [EMAIL

Re: Stored Procedure Question

2001-10-04 Thread Jared Stark
cfstoredproc procedure=procedure_name datasource=#maindsn# cfprocresult name=result1 cfprocresult name=result2 /cfstoredproc The only difference is you need to add the RESULTSET attribute, like this... cfprocresult name=result1 resultset=1 cfprocresult name=result2 resultset=2 The RESULTSET

Problem with Stored Procedure

2001-10-04 Thread Jared Stark
-- Here is code snippet for my stored procedure: CREATE PROCEDURE spGetManagers @OrderBy nvarchar(20) = 'LAST', @OrderType nvarchar(10) = 'ASC', @Id int = -1, @ErrorStatus int OUTPUT, @ErrorMsg nvarchar(255) OUTPUT AS ... -- Here is CF Code calling the stored procedure: