document.forms[0].somefield.focus();
Or, I suppose you could call the submit button's blur method, which
would move the focus to the next object in the tab order.
[B]Hi, Thank You very much for all the help!!! [/B]
What i did was add the following attribute to my submit button where the
hello everyody,
Can someone please help? I'm struggling to find a solution to my problem. Any
help will be greatly appreciated.
Thanks,
cfcoder
Can you show me an example to demonstrate what you mean? I don't know
much about writing RewriteRules or regular expressions.
Regards,
cfcoder
i have used this with success but note that the image has to be
available via http
cfscript
imgObj = CreateObject(java,
java.awt.image.BufferedImage);
imgRdr =
1. Page calls user definded function
2. Function populates a structure
I would like to return the structure to the refering page, is this possible,
please?
TIA, Jenny
~|
Adobe® ColdFusion® 8 software 8 is the most important
Does anyone have or know of any ColdFusion code for converting latitude and
longitute coordinates to UK Ordnance Survey Easting and Northing
coordinates?
I have found javascript code and am ready to convert into CF but it is one
mother of an algorithm so I'm a little weary of jumping in!
Dominic
I would I would like to return the structure to the refering page, is
this possible,
please?
Sure is:
Function code:
cffunction name=foo returntype=struct
cfset stBar = StructNew()
cfset stBar.bar = foo
cfset stBar.foo = bar
cfreturn stBar
/cffunction
Calling template:
cfset
Ok, I think what I'm trying to achieve is possible with a RewriteCond. Can
someone please show me how to use RewriteCond? The condition should say, if
there is a bookid query parameter run this rule:
RewriteRule /offers(/books/.*)
/index.cfm?go=offers.detailsbookid=${mapfile:$1}
hello
Claude/James - thanks for your posts... the explanations are much appreciated.
I also received a great reference to william seiters blog post on cffile:
http://wsoncf.blogspot.com/2008/02/knowledgebase-file-uploading.html
case closed...on to other challenges
On Monday 03 Mar 2008, Dominic Watson wrote:
Does anyone have or know of any ColdFusion code for converting latitude and
longitute coordinates to UK Ordnance Survey Easting and Northing
coordinates?
WGS84 or something more exotic ?
--
Tom Chiverton
Helping to authoritatively architect
WGS84 or something more exotic ?
WGS84 I assume - I need to take the long and lat returned by Google Maps
geocoding API and convert to easting and northing. I just tried taking the
js and turning into ColdFusion - not quite giving me the values I need ;)
Dominic
--
Blog it up:
Tom Chiverton wrote:
On Monday 03 Mar 2008, Dominic Watson wrote:
Does anyone have or know of any ColdFusion code for converting latitude and
longitute coordinates to UK Ordnance Survey Easting and Northing
coordinates?
WGS84 or something more exotic ?
uh i think OSGB is a 6 figure 100km
Dominic Watson wrote:
WGS84 I assume - I need to take the long and lat returned by Google Maps
geocoding API and convert to easting and northing. I just tried taking the
js and turning into ColdFusion - not quite giving me the values I need ;)
google is WGS84. i think you need to know which
google is WGS84. i think you need to know which datum the OSGB needs to be
in,
OSGB36 or WGS84.
Thanks, I'm not entirely sure what format I need the OS references, I would
imagine OSGB36. We have easting and northing values in a database that we
have inherited and they are 6 digit values.
If all you have is 6 digits it can't be OSGB36, that requires 2 letters as
well.
http://en.wikipedia.org/wiki/British_national_grid_reference_system
-Original Message-
From: Dominic Watson [mailto:[EMAIL PROTECTED]
Sent: 03 March 2008 12:19
To: CF-Talk
Subject: Re: Lat Long
I can't remember for sure, but I'm pretty sure cfx_image (or it might be
cfx_imageinfo) will give you the dimensions. You might need absolute path
rather than URL - again can't remember for sure.
-Original Message-
From: Graham Bates [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2008
If all you have is 6 digits it can't be OSGB36, that requires 2 letters as
well.
Yeh, there is another conversion between the two six figure values and the
OSGB36 value I have just learned through looking at the code - what a world
of fun this is!
unless all your data falls into 1 100k grid
On Monday 03 Mar 2008, Dominic Watson wrote:
After playing sometime with the JS functions I have managed to get them
working in CF how I need them. Does CFLib still take submissions? It will
Although CFLib does, afaik, when I needed to do this, I just hooked into the
Java libraries out there
Dominic Watson wrote:
Thanks, I'm not entirely sure what format I need the OS references, I would
imagine OSGB36. We have easting and northing values in a database that we
have inherited and they are 6 digit values.
unless all your data falls into 1 100k grid square, i'm pretty sure you need
I've got a site that is primarily focused around a phpBB that needs a
new host. Of course, I'd also like the ability to use CFML on the box
as well. I've had an account with HostFolio the past few weeks but I'm
dissatisfied with their MySQL support. Can anybody recommend an
alternative CF/PHP
Can someone please tell me if this is the write syntax? I want the rule to only
execute if there is a 'bookid' in the incoming url.
RewriteCond %{QUERY_STRING} bookid
RewriteRule /offers(/books/.*)
/index.cfm?go=offers.detailsbookid=${mapfile:$1}
Ok, I think what I'm trying to achieve is
My client is still on CF 6 unfortunately, and the host has no plans to upgrade
anytime soon. They have an application system where users can submit their
personal info and upload files, like a resume, (using CFFILE). Whenever we get
around the deadline for any event and the number of
Remember to var your variables!
On Mon, Mar 3, 2008 at 4:27 AM, Dominic Watson
[EMAIL PROTECTED] wrote:
Function code:
cffunction name=foo returntype=struct
cfset stBar = StructNew()
cfset stBar.bar = foo
cfset stBar.foo = bar
cfreturn stBar
/cffunction
should be:
cffunction
On Monday 03 Mar 2008, Nicole Lane wrote:
submittals goes up, the server starts behaving badly with CF/Java errors.
You are going to have to be much more specific.
--
Tom Chiverton
Helping to carefully leverage end-to-end m-commerce
on: http://thefalken.livejournal.com
Sorry for the somewhat long title.
I have a client with an existing page in their site that is essentially a
long list of resources in alphabetical order. When the site was originally
conceived, this page worked fine, but over the years the list of resources
has grown quite large, and Fusion
I did this about 6-7 years ago using Flash. I grabbed one of the many drawing
examples out there. I grabbed the coord's and saved them in a database.
Worked pretty well for me.
Has anyone come up with any good solutions that would let you embed a
signature capture field in a form? This
Would the resulting signature be considered legally binding?
Rick
-Original Message-
From: E C list [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 28, 2008 8:35 AM
To: CF-Talk
Subject: RE: Signature Capture
Just a note for future searchers- I am still looking
into the PDF
Claude,
EXT is a javascript library that Adobe incorporated into CF-8.
http://extjs.com/
Note version 1.0 is in CF-8 even though they're shipping version 2.0 now.
Rick Mason
On Sat, Mar 1, 2008 at 10:14 AM, Claude Schneegans
[EMAIL PROTECTED] wrote:
Have you seriously looked at what Ext
I thought she was mocking, that ticked me off, if my bad I'll take back the
'annoying' thing...
Claude,
EXT is a javascript library that Adobe incorporated into CF-8.
http://extjs.com/
Note version 1.0 is in CF-8 even though they're shipping version 2.0 now.
Rick Mason
On Sat, Mar 1, 2008
Probably as legally binding as the signature on your payroll check.
:)
-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2008 11:28 AM
To: CF-Talk
Subject: RE: Signature Capture
Would the resulting signature be considered legally binding?
Rick
This is fantastic and works. Thanks so much for your help. I've spent hours
unsuccessfully on this.
Graham Bates [EMAIL PROTECTED] wrote: i have used this with success but note
that the image has to be
available via http
imgObj = CreateObject(java,
Actually, Rick brings up a fair question.
The key to this is that for the signature to be as accurate as possible the
person signing would need to be using a stylus, otherwise it would be quite
different than their signature with a pen.
Also, the amount of samplings taken would have to be quite
To play Devil's advocate here-- other than standard coding habits, why
would one need to var these variables? This function (in the example
given) is called in the context of the current page and is not a method
in any persisted component which could be servicing multiple requests.
I would see
No, you absolutely should var that variable, persistant component or UDF or
whatever and I always var my function and method variables (just lapsed in
this silly example).
This other silly example demonstrates why (run in a single template):
cffunction name=foo
cfset i = 100
cfreturn 'bar'
Hi all,
Anyone seen an error like this before? Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver]Unhandled token type: Unknown token:
0x30
The error occurred on line 154.
It has been coming up on my server lately. It is usually followed by a
few null null errors. Some
Would the resulting signature be considered legally binding?
No, it would not be, unless you could provide strong supporting evidence
that the signature was actually done by the person in question at the time
in question. The signature has to be witnessed.
The key to this is that for the
Fair enough. I had considered the case where variables in your function
might overwrite other variables in the page, but had figured people
should know better to have multiple variables on the same page with the
same name. Of course, who's to say the UDF couldn't have been written
by a different
To play Devil's advocate here-- other than standard coding
habits, why would one need to var these variables? This
function (in the example
given) is called in the context of the current page and is
not a method in any persisted component which could be
servicing multiple requests.
The
Dom,
Great example
-Original Message-
From: Dominic Watson [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2008 2:24 PM
To: CF-Talk
Subject: Re: CF functions question
No, you absolutely should var that variable, persistant component or UDF or
whatever and I always var my
I've suggested that we move the page to a kind of paged
results setup, so that the user clicks on the letter of the
alphabet and the appropriate resources are displayed, but
they are concerned with how this might affect the pages
Google ranking.
Any ideas on an answer to this? Will
Dom,
Great example
Lol thanks. I learned from experience and it was through exactly that
(looping over an iterator and then calling a function that used the same
throwaway variable name for its own loop iterator... server kept grinding to
a halt for some reason :p)!
--
Blog it up:
I can appreciate that. I like a consistent coding style if for no other
reason than to know what to expect when you are maintaining the code.
Problem is, sometimes I have trouble distinguishing between people's
best practices, and knee jerk reactions. That was why I asked-- to see
if there was
You learn something new everyday. Thanks Dave...
!k
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2008 2:53 PM
To: CF-Talk
Subject: RE: Signature Capture
Would the resulting signature be considered legally binding?
No, it would not be, unless
Anyone seen an error like this before? Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver]Unhandled token type: Unknown token:
0x30
The error occurred on line 154.
It has been coming up on my server lately. It is usually followed by a
few null null errors. Some times the
Thanks for the response Dave. I see what you are saying. That said, the page
isn't unusable as such. Oftentimes it loads pretty quick. I'm thinking it's
times when the server is under a heavier load that is when I'm getting these
slow page alerts (+ 15 seconds in this case).
I am going to go with
I learned from experience
Let me translate that: You learned the hard way. ;)
I just got done pulling my hair out trying to update a variable that wasn't
scoped. It was not being updated no matter what I did to it.
EX:
cfif NOT isdate(returningdate)
cfset returningdate= Now()
So I'm trying to learn the whole OO stuff behind CF..
I've got a user gateway, dao, bean created.. but something is up with
one of the functions...
I'm creating the gateway in the application.cfc
cfset application.userGateway = createObject(component,
cfc.users.UserGateway).init( DSN =
Hey,
I've got groups that can have one or more types associated with them. I have a
linking table that I'm querying and filtering. But I'm not getting the results
I need.
Example: A group can be both 'College' and 'Jewish', as listed in the many
linking table - tblgrouptypes_x.grouptype
In
If I dump the application scope, I can see the userGateway and function..
usergateway
component qRunner.cfcs.users.UserGateway
GETGROUPSFORUSER
function getGroupsForUser
Arguments:
NameRequiredTypeDefault
emplid RequiredAny [empty string]
Return Type:
you sure you don't have a cfabort or 3 sprinkled in there for
debugging purposes?
On Mon, Mar 3, 2008 at 2:49 PM, Greg Morphis [EMAIL PROTECTED] wrote:
If I dump the application scope, I can see the userGateway and function..
usergateway
component qRunner.cfcs.users.UserGateway
Have you run this query directly at the db, to see if it is in fact
returning anything? Your function looks correct...
Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com
Greg Morphis wrote:
To make your query more readable, can you alias your tables?
SELECT g.groupid, g.groupimage, g.groupname, g.groupcity, g.state,
g.voicingid, g.groupcontactperson, g.country, g.region,
gtx.groupid, gtx.grouptype, gt.grouptype
FROM tblgroups g, tblgrouptypes gt, tblgrouptypes_x
If you take out one or the other, does it return the results?
Yes. I get valid results if I remove one of the AND's. I can just pull jewish
groups for instance.
Originally, I used IN ('jewish',college').
But that returns ALL jewish groups, and ALL college groups. My client wants it
to
OK,
So our web server took a major dump because the person (who is no longer
here) that originally set it up totally screwed up the install (and he
did not leave because of this BTW). Fortunately we have a back up server
to switch the site to until the main one is repaired.
So now I have a
No, no aborts.. and yeah.. it returns something..
Something's wrong because like I said CF stops processing..
It does this when there are errors in the CFC..
But like I said the getUser works.. the getGroupsForUser doesn't.
The only thing I edited was the emplid for posting purposes.. Other
than
Try changing your AND statement to an OR statement:
AND (tblgrouptypes_x.grouptype = 'College' OR tblgrouptypes_x.grouptype =
'Jewish')
-Original Message-
From: Will Tomlinson [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2008 5:39 PM
To: CF-Talk
Subject: Need query help
Hey,
As a debugging process, if you haven't done this already, comment out the
body of the function and add the line:
cfreturn QueryNew('')
If you are still having the problem, then it is not with the method call.
Could we see the method that is working (getUser)?
One last thing, is empId definately
I'm thinking it's times when the server is under a heavier load that is
when I'm getting these
slow page alerts (+ 15 seconds in this case).
Have you measured what is taking the time? I.e. is it the server serving up
the page data or the client downloading the data to the browswer (or both)?
No, that won't return groups that are in the jewish AND college type.
I think you might need to join to the grouptypes table twice-- once for
each type you want.
I don't know your database schema, but you might be able to do grouptype
in ('jewish','college') then group by everything but group
No, that'll get one or the other - he wants ones that are both.
Aliasing will work, something like this:
SELECT tblgroups.groupid, tblgroups.groupimage, tblgroups.groupname,
tblgroups.groupcity, tblgroups.state, tblgroups.voicingid,
tblgroups.groupcontactperson, tblgroups.country,
I'm a little unsure of what your query is expected to return. If a
group can have multiple types, then I assume that there is a one-to-many
relationship between groups and types, where a single group record has
one or more type records.
Correct.
You are returning type in your query, so a
If there's a group that's jewish and college, I just need a single
record returned.
=
Then removed type from the select list, group by everything else with an
or equivalent in your where clause and add the having count(*) 1
to the end.
That will only return groups which
If you HAVE to have both jewish and college types and only one record
returned, try this:
SELECT tblgroups.*, !--- i wouldn't do this, just saving space here ;) ---
tblgrouptypes_x.groupid,
tblgrouptypes_x.grouptype !--- perhaps returning this value is misleading
as it can only tell you one of
hi guys,
in the past i have calculated freight for a purchase either by number of items
in cart (clothing) or weight of product (assigned to each product).
a new client (gallery store - paintings, ceramics, glassware) will run into
trouble with this model so i am proposing the following...
No, that'll get one or the other - he wants ones that are both.
Aliasing will work, something like this:
James, I think I got this to work. My first tests are good. I didn't mention
this is a highly dynamic query. I have quite a few other filters in play, but
your example would work nicely
I'm using the following RegEx
cfset temp = reGET(images[i],(|')(.*)(gif|jpg|png))
The challenge I'm having is that it is returning:
0 height=45 width=60
src=http://i.l.cnn.net/cnn/video/world/2008/03/03/vo.germany.plane.close.call.liveleak.60x45.jpg
instead of:
What is the original string that is being reviewed by the regex?
--
William E. Seiter
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
Web Developer / ColdFusion Programmer
http://William.Seiter.com
-Original Message-
We ship the Fusion Authority Quarterly Update in a few different
configurations. A single issue has one type of shipping container while
multiple journals have a different one ranging from a large padded envelope
to a box. The point is, you need to create a matrix of items, their sizes
and their
William, great question. The orig string:
img border=0 height=45 width=60
src=http://i.l.cnn.net/cnn/video/world/2008/03/03/vo.germany.plane.close.call.liveleak.60x45.jpg;
alt=Storm blows jetliner off runway
I'm using the following URL and working to obtain all the image absolute paths:
Now I know that some people prefer to install their site in
the default C:\Inetput\wwwroot directory, and that is where
the site was originally put. I hear others say that they
prefer to create a different directory on a different drive
and then point IIS there, and install CF in that
rereplace(img, '.*?(img).*?(src=)(.*?)(.*)', '\3')
..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
I'm using the following URL and working to obtain all the image
absolute paths:
May be you should have a look at CF_REextract :
http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm
It will save you lots of coding, and could even CFHTTP the file for you.
--
Thanks Bobby your code appears to be working perfectly.
Bobby Hartsfield [EMAIL PROTECTED] wrote: rereplace(img, '.*?(
:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
~|
Adobe® ColdFusion® 8 software 8
I'd never heard of CF_REextract. Thanks for bring this up
Claude Schneegans [EMAIL PROTECTED] wrote: I'm using the following URL and
working to obtain all the image
absolute paths:
May be you should have a look at CF_REextract :
obviously bricks would not be shipped with glass :)
what i am saying is that each product has its own shipping price defined at the
admin stage - as opposed to working out freight based on weight of product eg.
artwork would work on dimensions as opposed to weight?
a matrix to solve the
just found this blog which has some interesting points on this subject...
http://www.pbell.com/index.cfm/2007/9/11/Architecting-Ecommerce
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
In case you hadn't realised, charging for freight is dying.
A lot of sites now offer site wide international free delivery. I know that
might not be your choice as the developer, but you should pitch it.
When shipping is free, people buy more and come back more, it works!.
Regards
Dale Fraser
But the shipping in the admin would be on a per product basis and would not
be optimal when 2 or more products could be shipped together.
As for Amazon, Books are just stacked so there's no real work.
On Mon, Mar 3, 2008 at 8:59 PM, Mike Little [EMAIL PROTECTED] wrote:
obviously bricks would
More often than not when this is done it is because:
1. the shipping is rolled into the price
2. the shipping has been flattened out so people in one location are paying
more (relatively) and people in other locations are paying less
3. This is done when there is competition and you want to look
I'd never heard of CF_REextract.
You should visit us more often ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
No,
This is not the case, it's a business model change.
Here is an example
http://www.dealextreme.com/details.dx/sku.8667
I can purchase 100 dice for $2.20 including free world wide shipping. There
are cheaper items on this site also all with free shipping.
There is no shipping cost built
I'm sorry for cross-posting here but several requests on the SQL- list
wihtout success. I hope someone on this list will know ...
I have to set up a PC for my client that will do some maintenance jobs
unattended each night. It will have to upload some data to teh web
site from their accounting
Ah, I'm just thinking too small.
On Mon, Mar 3, 2008 at 10:46 PM, Dale Fraser [EMAIL PROTECTED] wrote:
No,
This is not the case, it's a business model change.
Here is an example
http://www.dealextreme.com/details.dx/sku.8667
I can purchase 100 dice for $2.20 including free world wide
Well,
It wouldn't work for small business, but for larger ones works fine.
Regards
Dale Fraser
http://learncf.com
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 4 March 2008 3:00 PM
To: CF-Talk
Subject: Re: Calculating freight for shopping
I will use coldfusion for part of the job, but can the free MS
SQLServer Express run jobs unattended, such as run SSIS jobs
to a schedule to copy some of the data from the remote database?
No, it can't:
http://www.microsoft.com/technet/prodtechnol/sql/2005/msde2sqlexpress.mspx
However, you
84 matches
Mail list logo