I am trying to get Micronovae's mod rewrite ISAPI filter working on II6 and
CF 6.1. When I have the filter installed, it seems like the CF sites go
into a eternal redirect loop.even if they shouldn't be getting picked up by
the rewrite directive. Has anyone had any experience with this that can
Dinowitz
On Mon, Mar 1, 2010 at 12:33 PM, Eric Roberts w...@witchnet.org wrote:
I am trying to get Micronovae's mod rewrite ISAPI filter working on II6 and
CF 6.1. When I have the filter installed, it seems like the CF sites go
into a eternal redirect loop.even if they shouldn't be getting
/jobid
If I have the isapi filter enabled, nothing works...I just installed at as
per the installer for this.
This is the text of the actual config file...
# IIS Mod-Rewrite configuration file
# Prevent access to .htaccess files
RewriteEngine On
RewriteRule /\.htaccess$ - [F]
#rewrite jobad url
...@houseoffusion.com]
Sent: Monday, March 01, 2010 11:54 AM
To: cf-talk
Subject: Re: Micronovae's mod rewrite module on IIS 6 and CF 6.1...
Please post the redirect scripts your running. If you are capturing
all of X, sending it to a CF page that processed it and then does
another redirect, you might
the installer for this.
This is the text of the actual config file...
# IIS Mod-Rewrite configuration file
# Prevent access to .htaccess files
RewriteEngine On
RewriteRule /\.htaccess$ - [F]
#rewrite jobad url
RewriteEngine On
RewriteRule
...@houseoffusion.com]
Sent: Monday, March 01, 2010 12:52 PM
To: cf-talk
Subject: Re: Micronovae's mod rewrite module on IIS 6 and CF 6.1...
In this fragment, you have /?, meaning that the / is optional. Why?
^/([^/]+)/?([^/]*)
Is the url always going to be in the
/jobname/company/location/city/state/jobid
: Monday, March 01, 2010 12:52 PM
To: cf-talk
Subject: Re: Micronovae's mod rewrite module on IIS 6 and CF 6.1...
In this fragment, you have /?, meaning that the / is optional. Why?
^/([^/]+)/?([^/]*)
Is the url always going to be in the
/jobname/company/location/city/state/jobid format or are some
.
Unfortunately the server is behind a firewall, so I can't post live links.
Thanks!
Eric
-Original Message-
From: Michael Dinowitz [mailto:mdino...@houseoffusion.com]
Sent: Monday, March 01, 2010 12:52 PM
To: cf-talk
Subject: Re: Micronovae's mod rewrite module on IIS 6 and CF 6.1
so what can i do?
newbie question
i am using the following QoQ
cfquery name=qaccbytyp dbtype=queryselect * from data where
saab='#sanad.saab#' andsaan='#sanad.saan#' and saas='#sanad.saas#' and
(sadrf='#manyref.sadrf#' or C=#lastD# or MOD(C,#ABS(firstD)#) =0
)/cfquery
so what can I do ?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328167
so what can I do??
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328168
so what can I do?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328169
so what can i do???
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328170
elect * from data where
saab='#sanad.saab#' andsaan='#sanad.saan#' and saas='#sanad.saas#' and
(sadrf='#manyref.sadrf#' or C=#lastD# or MOD(C,#ABS(firstD)#) =0
There is no and or or between aab='#sanad.saab#' andsaan='#sanad.saan#'
I'd try fix that first. But mod might not work in QoQ never
cfset modvalue= MOD(C,#ABS(firstD)#)
cfquery name=qaccbytyp dbtype=queryselect * from data where
saab='#sanad.saab#' andsaan='#sanad.saan#' and saas='#sanad.saas#' and
(sadrf='#manyref.sadrf#' or C=#lastD# or #modvalue# =0 )/cfquery
On Tue, Nov 10, 2009 at 12:08 AM, safo kaskas safokas
newbie question
i am using the following QoQ
cfquery name=qaccbytyp dbtype=queryselect * from data where
saab='#sanad.saab#' andsaan='#sanad.saan#' and saas='#sanad.saas#' and
(sadrf='#manyref.sadrf#' or C=#lastD# or MOD(C,#ABS(firstD)#) =0 )/cfquery
and i get this error
Error Executing
The MOD function isn't available in Query of Queries.
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/11/8 safo kaska safokas...@hotmail.com:
newbie question
i am using the following QoQ
cfquery name=qaccbytyp dbtype=queryselect * from data where
The 404 is coming from tomcat.
HTTP Status 404 -
--
*type* Status report
*message*
*description* *The requested resource () is not available.*
--
Apache Tomcat/6.0.18
Thank You
Dan Vega
danv...@gmail.com
http://www.danvega.org
On Sat,
I just searched for coldfusion tomcat ses url and found:
http://www.justskins.com/forums/ses-search-engine-safe-doesnt-work-with-coldfusion-mx7-72409.html
This help?
On Sat, Feb 28, 2009 at 7:55 AM, Dan Vega danv...@gmail.com wrote:
The 404 is coming from tomcat.
HTTP Status 404 -
The 404 is coming from tomcat.
A... I ran into the same problem with Tomcat and IIRC it is cuz Tomcat
does not support SES URL's .It was on Cento at the time.
I could be wrong. You can ask them on the Railo Talk list
http://tech.groups.yahoo.com/group/railo_talk/
G!
On Sat, Feb 28, 2009
Add the following to Tomcat's web.xml and restart it.
servlet-mapping
servlet-nameCFMLServlet/servlet-name
url-pattern/index.cfm/*/url-pattern
/servlet-mapping
~|
Adobe® ColdFusion® 8 software 8 is the most important
tracker:http://jira.jboss.org/jira/browse/RAILO
Railo Blog: http://www.railo-technologies.com/blog
-Ursprüngliche Nachricht-
Von: Gerald Guido [mailto:gerald.gu...@gmail.com]
Gesendet: Samstag, 28. Februar 2009 16:18
An: cf-talk
Betreff: Re: Mod Rewrite for blog cfc
The 404 is coming
/RAILO
Railo Blog:http://www.railo-technologies.com/blog
-Ursprüngliche Nachricht-
Von: Gerald Guido [mailto:gerald.gu...@gmail.com]
Gesendet: Samstag, 28. Februar 2009 16:18
An: cf-talk
Betreff: Re: Mod Rewrite for blog cfc
The 404 is coming from tomcat.
A... I ran
. Februar 2009 16:18
An: cf-talk
Betreff: Re: Mod Rewrite for blog cfc
The 404 is coming from tomcat.
A... I ran into the same problem with Tomcat and IIRC it is cuz
Tomcat
does not support SES URL's .It was on Cento at the time.
I could be wrong. You can ask them on the Railo
Thanks for the advice guys! I would like to stay with tomcat just because I
have stuff already setup in there and I have not tested my one openbd app on
resign yet (i suspect its not an issue) but the url rewrite does not sound
fun so, ill poke around. Thanks!
I got my blog running on Railo and anytime i go to a url that looks like
this
http://dev.danvega.org/blog/index.cfm/2009/2/5/CFMU-Updates-coming-soon
I get a 404 error. This is because I neeed to add some re write rules into
apache right?
Anyone have these rules for blogcfc?
Thank You
Dan
By default, the mod_rewrite rules aren't necessary; BlogCFC handles
those friendly URLs internally.
Is it Apache that gives you 404 or Railo?
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/2/28 Dan Vega danv...@gmail.com:
I got my blog running on Railo
Hello,
This question is about an Apache configuration problem I have recently. I hope
someone can help here!
In order to view the websites I develop locally easily I set up Apache mod
rewrite to map a url to a directory on the local filesystem. This way I do not
have to make a Virtual
Ok, I found it. Somehow the local system account was removed from the list of
accounts having access to D:. After adding it everything worked as before. A
clue was given by Perfectdisk who reported You appear to have lost a disk.
Thanks
I apologize for those of you who may have seen this post on another list
this morning... I'm having trouble finding an answer.
I really suck at these. I need a rule that will turn this:
http://www.wheretobuild.com/States/xq/ASP/StateName.Kansas/qx/index.htm
Into this:
Mark,
What web server are you using?
Steve Brownlee
http://www.fusioncube.net/
-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 11:48 AM
To: CF-Talk
Subject: Quick help on a mod rewrite rule
I apologize for those of you who may have
://
www.wheretobuild.com/States/index.cfm?StateName=%1 [R=301,L]
This is not tested, but this should work...
Russ
-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 11:48 AM
To: CF-Talk
Subject: Quick help on a mod rewrite rule
I apologize
Pretty sure it's apache, since he mentioned mod_rewrite...
Russ
-Original Message-
From: Steve Brownlee [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 11:53 AM
To: CF-Talk
Subject: RE: Quick help on a mod rewrite rule
Mark,
What web server are you using?
Steve
-Original Message-
From: Steve Brownlee [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 11:53 AM
To: CF-Talk
Subject: RE: Quick help on a mod rewrite rule
Mark,
What web server are you using?
Steve Brownlee
http://www.fusioncube.net/
-Original Message
Actually no ... It's IIS - but I'm using an ISAPI filter that mimics mod
rewrite...
-mark
-Original Message-
From: Russ [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 10:57 AM
To: CF-Talk
Subject: RE: Quick help on a mod rewrite rule
Pretty sure it's apache, since he
$2
Does that syntax look familiar to anyone?
-mark
-Original Message-
From: Russ [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 10:57 AM
To: CF-Talk
Subject: RE: Quick help on a mod rewrite rule
Well I'm not going to do a very good job without seeing the rest
-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 12:24 PM
To: CF-Talk
Subject: RE: Quick help on a mod rewrite rule
This would possibly work except it is not flexible. I have other URLs that
contain params.. Sometimes more than 1. I need
Well I think that's the problem right there... you're not
using Apache and mod_rewrite. I know I can probably figure
out the syntax, but I'll let one of the people who claim that
IIS is just as good as apache lend a hand...
since they use the functionality in IIS all the time...
I'll
really be of more help without knowing what the rest of the url's
look like.
Russ
-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 12:24 PM
To: CF-Talk
Subject: RE: Quick help on a mod rewrite rule
This would possibly work except
Im trying to make a table output grouped query info.
Then i want to make a 2 column list of the grouped data within. Dynamically
generating the Tr's in the right spots.
I'm finding that using MOD wont work because i never know where ill be
starting the row at after the title
Any thoughts
set a counter var and increment it inside the inner cfoutput
cfoutput group=foo
cfset counter = 0 /
cfoutput !--- begin inner cfoutput ---
cfset counter = counter + 1 /
cfif counter MOD 2 EQ 0
do stuff
cfelse
do other stuff
= counter + 1 /
cfif counter MOD 2 EQ 0
do stuff
cfelse
do other stuff
/cfif
/cfoutput
/cfoutput
On 12/21/06, Richard Dillman [EMAIL PROTECTED] wrote:
Im trying to make a table output grouped query info.
Then i want to make a 2
On Friday 07 October 2005 18:29, Larry Lyons wrote:
Simpler? Lets see about 1 line of cf code and 3 or so for the stylesheet vs
at least 10 for the javascript.
But you've now scattered table zebra/sort code all over your server side. Just
setting a class, and having a javascript include is
Thanks Rick, Matthew and Ray.
All works well w/all the suggestions incorporated.
Robert O.
A simpler way would be to create 2 styles, lets call one results1 and the other
results0
then you can have something like this:
td class= results#currentRow mod 2#etc./td
larry
--
Larry C
On Friday 07 October 2005 15:14, Larry Lyons wrote:
A simpler way would be to create 2 styles, lets call one results1 and the
other results0
Simpler is what we do here- give the table the class 'sortable' or
'zebrastrip' and the common javascript code zebra strips it client-side, with
Simpler is what we do here- give the table the class 'sortable' or
'zebrastrip' and the common javascript code zebra strips it client-side,
with
optional sorting by clicking the th cells.
Nice feature indeed, but I wouldn't say is is simpler ;-)
--
___
oooh...lookit...a can.
label says client side vs server side...open with caution
/me throws caution to the wind. rips open can.
oooh! worms!
On 10/7/05, Thomas Chiverton [EMAIL PROTECTED] wrote:
On Friday 07 October 2005 15:14, Larry Lyons wrote:
A simpler way would be to create 2 styles,
On Friday 07 October 2005 15:25, Claude Schneegans wrote:
Nice feature indeed, but I wouldn't say is is simpler ;-)
It means the server side business stuff doesn't need to care about client side
layout at all - it just spits out a bare HTML table with a vague hint that it
should be sortable.
It means the server side business stuff doesn't need to care about
client side
layout at all
I agree, however, some programer had to develop the Javascript stuff at
some time. ;-)
--
___
REUSE CODE! Use custom tags;
See
On Friday 07 October 2005 15:14, Larry Lyons wrote:
A simpler way would be to create 2 styles, lets call one results1 and the
other results0
Simpler is what we do here- give the table the class 'sortable' or
'zebrastrip' and the common javascript code zebra strips it client-side, with
I know this is an old one and very easy one, but I lost the code...how do I do
a dynamic alternate row of color?
I remember it was with the MOD command.
Thanks as always.
Robert O.
HW
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database
cfif #somequery.CurrentRow# mod 2
cfset color = 66
cfelse
cfset color = 220088
/cfif
Matt
- Original Message -
From: Orlini, Robert [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Thursday, October 06, 2005 8:01 AM
Subject: MOD
I know this is an old
something along these lines?
cfif CurrentRow MOD 2 EQ 0
cfset bgcolor = ##00
cfelse
cfset bgcolor = ##FF
/cfif
td bgcolor=#bgcolor#blah blah blah/td
I know there's like 100 iterations of this same concept, but this is
what I remember using the last time I did
cfoutput query=queryname
td bgcolor=#iif(queryname.rowcount mod 2 eq 1,DE(RED),DE(BLUE))#
/cfoutput
Check my syntax to make sure it's right.
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
-Original Message-
From: Orlini, Robert [mailto
Orlini, Robert wrote:
I know this is an old one and very easy one, but I lost the code...how do I
do a dynamic alternate row of color?
I remember it was with the MOD command.
trcfif currentrow mod 2 is 1 bgcolor=cc/cfif
Feel free to use alternate styles instead of the bgcolor
Thanks Rick, Matthew and Ray.
All works well w/all the suggestions incorporated.
Robert O.
-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 9:19 AM
To: CF-Talk
Subject: Re: MOD
Orlini, Robert wrote:
I know this is an old one and very easy
Or you could do it in one line with iif.
cfset color = iif(somequery.CurrentRow mod 2,66,220088)
Also note that if you choose to use Matthew's way, which works just fine
too, it's not necessary to pound the somequery.CurrentRow variable.
!//--
andy matthews
web developer
bad iif, bad
go to the corner :)
On 10/6/05, Andy Matthews [EMAIL PROTECTED] wrote:
Or you could do it in one line with iif.
cfset color = iif(somequery.CurrentRow mod 2,66,220088)
Also note that if you choose to use Matthew's way, which works just fine
too, it's not necessary
Andy Matthews wrote:
Or you could do it in one line with iif.
cfset color = iif(somequery.CurrentRow mod 2,66,220088)
Also note that if you choose to use Matthew's way, which works just fine
too, it's not necessary to pound the somequery.CurrentRow variable.
It never ceases to amaze me
http://books.slashdot.org/comments.pl?sid=146789cid=12297023
Someone with Slashdot points, mod this post up. ;-)
Jack
~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking
I know this is an easy one, but can't find the right code.
How do I have CF alternate color for each row of a table?
Anyone have the code please?
Thanks.
Robert O.
~|
Purchase from House of Fusion, a Macromedia Authorized
put this in your tr tag
cfif query.CurrentRow MOD 2 EQ 0bgcolor=##00cfelsebgcolor=##f/cfif
it think that's right.
On Tue, 2 Nov 2004 13:24:19 -0500, Robert Orlini [EMAIL PROTECTED] wrote:
I know this is an easy one, but can't find the right code.
How do I have CF alternate color
From: Robert Orlini [mailto:[EMAIL PROTECTED]
I know this is an easy one, but can't find the right code.
How do I have CF alternate color for each row of a table?
Anyone have the code please?
cfif queryName.CurrentRow MOD 2 EQ 0
Red
cfelse
Blue
/cfif
Mike
I generally start by setting up two CSS classes, with similar names ending
in 0/1.
style type=text/css
tr.rowstyle1 {
background-color: #ff;
}
tr.rowstyle0 {
background-color: #e0e0e0;
}
/style
cfoutput
cfloop query=somequery
tr class=rowstyle#Evaluate('somequery.currentrow mod 2
--- Robert Orlini [EMAIL PROTECTED] wrote:
How do I have CF alternate color for each row of a table?
Anyone have the code please?
I wrote a UDF to do just that.
http://cflib.org/udf.cfm?ID=901
On of its perks is that you're not limited to two colors. You can put as
many into the list of
Get rid of that evaluate, it's unneeded:
style
tr.alt1 { background-color: #fff; }
tr.alt0 { background-color: #ffc; }
/style
cfoutput
table
cfloop query=myQuery
tr class=alt#currentRow MOD 2#
...
/tr
/cfloop
/table
/cfoutput
On Tue, 2 Nov 2004 11:42:55 -0700, Jim McAtee [EMAIL PROTECTED
It's necessary in CF5 and earlier.
- Original Message -
From: Barney Boisvert [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 11:54 AM
Subject: Re: mod command to alter row color
Get rid of that evaluate, it's unneeded:
style
tr.alt1 { background
This only works in CFMX. But you could use another function for numeric
values (like val())
Pascal
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: 02 November 2004 19:54
To: CF-Talk
Subject: Re: mod command to alter row color
Get rid of that evaluate
Two more ways to skin this cat. First a real old one
tr bgcolor=#iif(GetData.CurrentRow MOD 2, DE(variables.RowColor1),
DE(variables.RowColor2))#
and what I use now. Store the row colors in a var in application.cfm
or something:
my.RowColors=##EDEDED,##FBFBFB;
and then use this in the table
Thank you.
One question, in this part of the code: cfloop from=1 to=10 index=i
How would I make it infinite? I don't want it to end at the 10th row?
Robert O.
-Original Message-
From: jonese [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 1:35 PM
To: CF-Talk
Subject: Re: mod
look into a conditional loop then...as I'm sure you'd want to break out at
some point ;-)
Bryan Stevenson B.Comm.
VP Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web:
of the code: cfloop from=1 to=10 index=i
How would I make it infinite? I don't want it to end at the 10th row?
Robert O.
-Original Message-
From: jonese [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 1:35 PM
To: CF-Talk
Subject: Re: mod command to alter row color
put
Robert Orlini wrote:
I know this is an easy one, but can't find the right code.
How do I have CF alternate color for each row of a table?
Don't do it in CF, use CSS and javascript and ship it off to the
client for processing. Example (BSD licensed) at
.org/TR/xhtml11/DTD/xhtml11.dtd'. Line 85, Position 2
%xhtml-prefw-redecl.mod;
- Original Message -
From: Jochem van Dieten [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 3:00 PM
Subject: Re: mod command to alter row color
Robert Orlini wrote:
I know
Dave Francis wrote:
Don't want to start a war here but I really disagree. The less that
browsers have to do, the less chance they have to be inconsistent (with each
other and w3c).
If it works now, use it. I find it hard to believe there will
ever be new user agents released that are
That page doesn't work in IE, although Firefox renders it. With
Firefox' desired market penetration curve you should be visible to 10%
of browsers within 5 years.
Its wonderful here over on the Dark Side. Couldn't you meet us
halfway? Just bite the head off of *one* bat. Just one.
:D
man I
wont be no 10 yrs will be about 2 more months
http://www.eweek.com/article2/0,1759,1706694,00.asp?kc=ewnws110204dtx1k599
get rid of the crap http://browsehappy.com/
-- Original Message --
From: Matt Robertson [EMAIL PROTECTED]
Reply-To: [EMAIL
Matt Robertson wrote:
That page doesn't work in IE, although Firefox renders it. With
Firefox' desired market penetration curve you should be visible to 10%
of browsers within 5 years.
Its wonderful here over on the Dark Side. Couldn't you meet us
halfway? Just bite the head off of *one* bat.
Actually I booted IE, Outlook and Outlook Express shortly after
GDIPlus, and instantly after MS announced they weren't upgrading IE
unless you had XPeee.
So only 92.9% of users are using IE, and this is after a plunge in
market share. Anyway the same article points to all Mozilla browsers,
then do your part on and spread the word!
:)
the only reason i have ANYTHING m$ on my comp is actually a macromedia issue
until they do something different with the damn licensing methods and have it able to
run on linux im stuck with this crap! ar
-- Original Message
Matt Robertson wrote:
That page doesn't work in IE, although Firefox renders it. With
Firefox' desired market penetration curve you should be visible to 10%
of browsers within 5 years.
Its wonderful here over on the Dark Side. Couldn't you meet us
halfway?
There has been a case where the
I'm trying to group people by state, with two columns of names under each
state heading. This works, other than some states don't always fill the
second top column in the group. Some rows display correctly, and others
don't. I have some states with 3 names that work correctly.
I get
STATE
name1
Try this out:
cfset totalColumns = 2
cfoutput query=Pull_All_Members group=State
tr valign=top
td colspan=#totalColumns# valign=topstrong#RTrim(state)#/strong/td
/tr
cfset subRowNumber = 0
cfoutput
cfset columnNumber = (subRowNumber MOD totalColumns) + 1
name2
STATE
name1
name2 name3
etc.
How can I force the 2nd column to fill from the top of the group.
cfoutput query=Pull_All_Members group=State
tr valign=top
td colspan=2 valign=topstrong#RTrim(state)#/strong/td
/tr
cfoutput
cfif Pull_All_Members.CurrentRow MOD 2 IS 1
name2
STATE
name1
name2 name3
etc.
How can I force the 2nd column to fill from the top of the group.
cfoutput query=Pull_All_Members group=State
tr valign=top
td colspan=2 valign=topstrong#RTrim(state)#/strong/td
/tr
cfoutput
cfif Pull_All_Members.CurrentRow MOD 2 IS 1
You can't really use currentrow with group - it throws it off. Best thing
to do in those cases is create your own counter, that you refresh each time
the group is looped on, and use that to do MODs on.
That said, to do two columns the way you want, the manual counter bit won't
work either. I'd
I think I'm having a Friday brain fart.
I want to output photos whose name is stored in a table and I want them to
display two across, like so:
Photo1 | Photo2
Photo3 | Photo4
Photo5 |
Etc...
And for some reason, I'm totally blanking on how to accomplish it...
I know it's CurrentRow and
oi Jeff!!
if query.currentrow mod 2 eq 0.
Friday, June 6, 2003, 11:24:18 AM, you wrote:
J I think I'm having a Friday brain fart.
J I want to output photos whose name is stored in a table and I want them to
J display two across, like so:
J Photo1
on 6/6/03 11:31 AM, Critz at [EMAIL PROTECTED] wrote:
oi Jeff!!
if query.currentrow mod 2 eq 0.
...then, what? This I can get. It's the closing of the table row that's
throwing me off...in pseudocode, I see this:
cfif query.currentrow mod 2 eq 0
cfoutput
tr
tdimg src=#image#/td
-0431
e-mail: mailto:[EMAIL PROTECTED]
WEB site: http://www.mif.com
WEB site: http://www.eaglegl.com
-Original Message-
From: Jeff [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 11:42 AM
To: CF-Talk
Subject: Re: Using mod to display two across in a table...
on 6/6/03 11:31 AM
I've done this before, but I can't remember where for the life of me.
This is off the cuff, but I think it will work.
cfoutput query=stuff
cfif mod(currentrow, 2)tr/cfif
tdstuff/td
cfif not mod(currentrow, 2)/tr/cfif
/cfoutput
cfif mod(stuff.recordcount, 2)
tdnbsp;/td/tr
/cfif
-- Ben Doom
: Friday, June 6, 2003 16:42
To: CF-Talk
Subject: Re: Using mod to display two across in a table...
on 6/6/03 11:31 AM, Critz at [EMAIL PROTECTED] wrote:
oi Jeff!!
if query.currentrow mod 2 eq 0.
...then, what? This I can get. It's the closing of the table row that's
throwing me off
on 6/6/03 11:45 AM, Jerry Johnson at [EMAIL PROTECTED] wrote:
In CF:
cfif query.currentrow mod 2 neq 0
tr
/cfif
cfoutput
tdimg src=#image#/td
/cfoutput
cfif query.currentrow mod 2 eq 0
/tr
/cfif
Does this make sense?
Sure, but it doesn't work...lol...this is so ridiculous...I KNOW
on 6/6/03 11:45 AM, Jerry Johnson at [EMAIL PROTECTED] wrote:
in pseudo code first
if odd row, add TR
draw TD
if even row, add /TR
In CF:
cfif query.currentrow mod 2 neq 0
tr
/cfif
cfoutput
tdimg src=#image#/td
/cfoutput
cfif query.currentrow mod 2 eq 0
/tr
/cfif
Well if you leave yourself alone you wont go blind so quickly.
Cheers,
Mike Kear
Windsor, NSW, Australia
AFP WebWorks
-Original Message-
From: Michael Vinson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 27, 2001 1:48 PM
To: CF-Talk
Subject: mod function?
newbie needs to know
Yes it does.
eg:
cfif myquery.currentrow mod2
Do this..
cfelse
Do this..
/cfif
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Mike Kear
Sent: Thursday, 27 September 2001 18:29
To: CF-Talk
Subject: RE: mod function?
Well if you leave yourself alone
newbie needs to know if CF 5 has a mod() function before he goes blind
)
tanks, mv
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf
the mod() function is mod, but its treated more like an operator:
cfset x = 5 mod 2
-Original Message-
From: Michael Vinson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 11:48 PM
To: CF-Talk
Subject: mod function?
newbie needs to know if CF 5 has a mod
Thanks Duane
Duane Boudreau wrote:
the mod() function is mod, but its treated more like an operator:
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http
I have 2 blocks of numbers, the first block contains 9 digits the second 8
digits where the last digit in each block needs to be a MOD 7 check digit.
I need to use these numbers in my Primary Key when adding new records, I can
easily get the MAX number + 1 but no idea how to get the last MOD 7
1 - 100 of 108 matches
Mail list logo