Just out of curiousity, why don't you just suppress the form with CFIF? Seems to be
much more efficient.
Since you somehow "know" a subscriber - let's say the session.subscriber_id is set and
is not NULL:
<cfif NOT isDefined("session.subscriber_id") OR #session.subcriber_id# LTE 0>
(insert form)
<cfif>
Hmm? Seems better than doing a replace on a big file.
>At 03:13 PM 9/12/2003 -0400, you wrote:
>>Wait -- what breaks? The quiz or the rereplace?
>
>The ReReplace breaks. It only breaks on this one page that has this quiz
>form code on it. Other pages that are built off the same base work peachy.
>It's really freaking bizarre.
>
>What I'm doing is reading in previously-generated static HTML pages,
>fiddling with the content, and outputting fiddled content to the browser
>(not re-saving the HTML pages themselves). And for some reason on this one
>page, a ReReplace to replace a chunk of code in one spot in the HTML code
>read in *breaks* because of code *farther down* in said HTML code - code
>that has zip to do with the bit I'm trying to replace.
>
>I've been monkeying with a test script - I'll read in this particular HTML
>page, and then cut it off with a Left() at a certain point, and try the
>ReReplace. It works fine up to a point, as I'm incrementing my cutoff point
>up, and then it will break - and the code between the last cutoff point and
>the current cutoff point looks completely irrelevant. I can't see *any*
>reason why the presence of that code - in a big honkin' string - would
>cause the problem.
>
>Unless, of course, it's the length of the big honkin' string (the HTML code
>read in from the file). Would CF hiccup on doing a ReReplace on a string
>that's over 16k or so? I wouldn't think that would tax CF in the least, but
>who knows...
>
>--Scott
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community.
http://www.fusionauthority.com/ads.cfm