RE: OT New window

2002-03-15 Thread Ron Hornbaker

> > call the OpenWindow function with at timestamp as the title
> >
> > openWindow(strURL, new Date(), intWidth, intHeight);

As a solution to always open a new window, that's actually a bad idea.
Much better to use '_blank' as the window name, which is treated just like
a target attribute of "_blank" in an anchor tag, in that a new window is
opened.

Why? Because ever since IE5, many installations (mine included) of IE are
slooow to open JS popup windows, sometimes taking 5-15 seconds,
and my testing showed that this only happens when you open a window with a
specific name. IE has to look through its array of Windows in memory to
find one of the same name (if it exists), and apparently that routine is
quite inefficient, especially when several windows are open. If you
replace the window name with '_blank', you're telling IE to skip the
window name check, and just open a window... and it solves the slowness
problem every time.

Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.

http://BookCrossing.com - Read & Release!



__
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: alternating rows

2002-03-18 Thread Ron Hornbaker

> Does anyone remember the quick way to alternate row colors when 
> using MOD on
> a recorcount?

Google does: http://www.google.com/search?q=CF+MOD+row+color


-Ron

BOOKS JUST WANNA BE FREE! http://BookCrossing.com/







__
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Submitting a form only once, iow, preventing impatient user d ouble clicks.

2002-04-17 Thread Ron Hornbaker

This should work to maintain type=submit:



(remove line wraps in the onClick parameter)

Ron Hornbaker
Co-Founder, BookCrossing.com

BOOKS JUST WANNA BE FREE! http://BookCrossing.com



> -Original Message-
> From: Dave Carabetta [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 10:37 AM
> To: CF-Talk
> Subject: RE: Submitting a form only once, iow, preventing impatient user
> d ouble clicks.
>
>
> >Use javascript to disable the submit button once it's been clicked.
> >
> >I tend to use an input type="button" so idtio users pressing
> return when
> >they shouldn't, don't actually submit the form early.
> >
> > onclick="javascript:this.value='Please
> >Wait';this.disabled=1;document.forms[0].submit()">
> >
> >Should do the trick
> >
>
> OK, so I've been looking into this same problem myself and
> decided to create
> a test page with the examples posted. I'm having a strange
> problem and was
> hoping somebody could point out what I'm doing wrong.
>
> I almost always have my forms post to themselves, and then test for the
> existence of the submit button's name. If I use:
>
>  onClick="if(this.value == 'Generate Report') this.form.submit();
> this.value='Running Report...';" class="submit">
>
> the page submits to itself, but the existence check fails:
>
> 
>Run the processing code.
> 
>
> However, if I change the input type to "submit" the page
> submits just fine
> and runs the processing code. Why would the submit button's
> name not exist
> if the type="button", but it does exist if I change it to type="submit"?
>
> To further complicate the issue, if I have the input
> type="submit" and use
> the this.disabled = 1; feature, the processing does not occur either.
> Removing this.disabled processes the form perfectly.
>
> I'm testing in IE 6, if that makes a difference. I'm gonna go
> try Nutscrape
> now and see what happens.
>
> Any thoughts?
>
> Thanks,
> Dave.

__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Calling server code without reloading

2002-04-30 Thread Ron Hornbaker

> Lets say I have a form field on a page. When I type in it, I
> want what I have typed to be sent to the server and something
> done to it. THe result of that something will come back to me
> and be loaded into a different form field. This should be done
> without reloading the page.
> Normally, I'd do this with a hidden frame and some javascript.
> I've been asked to do it some other way using layers, objects
> or other stuff. I'm researching it but I might as well ask if
> anyone here has heard of something in this area.

To avoid a hidden frame, you can use a gif "datapipe":


http://depressedpress.com/DepressedPress/Content/ColdFusion/Essays/GIFAsPi
pe/

(watch the wrap)

See the link there for "Vlad's Talking Server" (a little chat app) to see
how to bring form contents back to the page in a cookie.

Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.


Books just wanna be FREE! http://www.BookCrossing.com


__
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-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Distributing self-contained CFMX apps

2002-05-01 Thread Ron Hornbaker

> What is 'AFAIK'?

 http://www.acronymfinder.com/af-query.asp?Acronym=AFAIK

-Ron



BOOKS JUST WANNA BE FREE! http://BookCrossing.com




__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: [admin] List status

2002-05-14 Thread Ron Hornbaker

> Being able to search the archives might even be worth a donation to many
> of us.  I know it would help me out on occasion.  It would greatly
> reduce the number of emails I save in my "CF Archive" folder.

Have you tried the archive listed in the footer of every message:

 http://www.mail-archive.com/cf-talk%40houseoffusion.com/

It's down on rare occasions, but it's fast, and free.

-Ron

http://BookCrossing.com - READ and RELEASE!




__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: OT .NET: ActiveX in Disguise? FUD alert

2001-09-13 Thread Ron Hornbaker

http://www.acronymfinder.com/af-query.asp?Acronym=FUD

Hit #1 in this context: Fear, Uncertainty and Doubt. (Female Urinary
Device was a close second.)


Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.


> -Original Message-
> From: Won Lee [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 13, 2001 2:49 PM
> To: CF-Talk
> Subject: RE: OT .NET: ActiveX in Disguise? FUD alert
>
>
> What does FUD mean?
>
> -Original Message-
> From: Jon Hall [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 13, 2001 2:02 PM
> To: CF-Talk
> Subject: Re:OT .NET: ActiveX in Disguise? FUD alert
>
>
> Totally off topic, but as someone who likes .Net, I'll just say this is
> obvious. I myself have described .Net as a super COM object that comes
> with windows. If someone is critical of .Net as didn't know this
> already, they really dont have enough information to form any useful
> opinion. It would be an opinion based in ignorance. The article is FUD,
> plain and simple. The author doesn't even fully grasp the concept of
> what ActiveX is.
>
> jon
>
> Jackson Moore (CFTalk) wrote:
>
> >In case you haven't seen it, this article came out on Monday on
> > computerworld.com and in their newsletters.  For those of you
> > who are critical of .net and want some more material to back up
> > your position, here you go:
> >
> >http://www.computerworld.com/rckey11/story/0,1199,NAV63_STO63605,
> >00.html
> >
> >Jackson Moore
> >[EMAIL PROTECTED]
> >
>
> 
~~
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Highlight Script

2001-09-26 Thread Ron Hornbaker

Peter,

Great script, but it left me wondering about users (like me) who don't
click on form elements after the first one. A little more embedded code,
and a little less  code, and you can make it work when tabbing
through the fields, too:

<script language="JavaScript1.2">
//Highlight form element- © Dynamic Drive (www.dynamicdrive.com)
//Modified by Humankind Systems (<A  HREF="http://hksi.net/">http://hksi.net/</A>) to work when
//tabbing through the fields.
//For full source code, 100's more DHTML scripts, and TOS,
//visit <A  HREF="http://www.dynamicdrive.com">http://www.dynamicdrive.com</A>
var highlightcolor="lightyellow"
// Only works in IE4+ and NS6+, so sniff out NS4 to prevent errors
var highlightableBrowser = document.getElementById || document.all
//Function to highlight form element
function on(e){
  if (highlightableBrowser)
e.style.backgroundColor=highlightcolor
}
function off(e){
  if (highlightableBrowser)
e.style.backgroundColor=''
}



1
2
3
4



Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.




> -Original Message-
> From: Tilbrook, Peter [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 26, 2001 7:22 PM
> To: CF-Talk
> Subject: RE: Highlight Script
>
>
> Try this:
>
> 
> //Highlight form element- © Dynamic Drive (www.dynamicdrive.com)
> //For full source code, 100's more DHTML scripts, and TOS,
> //visit <A  HREF="http://www.dynamicdrive.com">http://www.dynamicdrive.com</A>
>
> var highlightcolor="lightyellow"
>
> var ns6=document.getElementById&&!document.all
> var previous=''
> var eventobj
>
> //Regular expression to highlight only form elements
> var intended=/INPUT|TEXTAREA|SELECT|OPTION/
>
> //Function to check whether element clicked is form element
> function checkel(which){
> if (which.style&&intended.test(which.tagName)){
> if (ns6&&eventobj.nodeType==3)
> eventobj=eventobj.parentNode.parentNode
> return true
> }
> else
> return false
> }
>
> //Function to highlight form element
> function highlight(e){
> eventobj=ns6? e.target : event.srcElement
> if (previous!=''){
> if (checkel(previous))
> previous.style.backgroundColor=''
> previous=eventobj
> if (checkel(eventobj))
> eventobj.style.backgroundColor=highlightcolor
> }
> else{
> if (checkel(eventobj))
> eventobj.style.backgroundColor=highlightcolor
> previous=eventobj
> }
> }
> 
>
>
> Your CFFORM tag should look something like this:
>
>  enctype="multipart/form-data"  passthrough="onClick='highlight(event)
> '">
> 
>
> Cheers!
>
> Peter Tilbrook
> ColdFusion Applications Developer
> Australia New Zealand Food Authority
> Boeing House
> 55 Blackall Street
> BARTON ACT 2600
> Ph: +61-2-6271-2671
> Fax: +61-2-6271-2278
>
> http://www.anzfa.gov.au
>
>
>
> **
>
> This transmission is intended only for the use of the addressee(s)
> and may contain confidential or legally privileged information.
> If you are
> not the intended recipient, you are notified that any use or
> dissemination
> of this communication is strictly prohibited. If you have received this
> transmission in error, please notify the ANZFA IT helpdesk
> prior to deleting
> all copies of this transmission together with any attachments.
>
> ANZFA helpdesk:
>
> E-mail:  [EMAIL PROTECTED]
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
>
> www.mimesweeper.com
> 
~~
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Email Server Software?

2001-09-29 Thread Ron Hornbaker

> Imail from Ipswitch.com is very good and robust...


Another plus for IMail is that you can use our very customizable Killer
webmail system with it. Demo at http://killerwebmail.com/.


Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.
  .  .  .  http://AnswerTrack.com  - eCRM email tracking solution

~~
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-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Checking file size before upload.

2001-10-25 Thread Ron Hornbaker

Massimo,

Try as I might, I can't get your script to work. I've gone through
replacing hard carriage returns with spaces where they should be (the
message got wrapped), but it's not working, and not throwing any errors
with IE5.5.

Any chance you could put up a sample form live on the web where we could
see it work? Or send it to me w/o linewraps off-list: [EMAIL PROTECTED]?

Thanks,
Ron

> -Original Message-
> From: Massimo Foti [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 25, 2001 3:32 PM
> To: CF-Talk
> Subject: Re: Checking file size before upload.
>
>
> "Jon Hall" <[EMAIL PROTECTED]> wrote in message
> news:016501c15d87$53a9a740
> > I dont think it is possible with javascript. In order for
> this to be true,
> > either the script would need access to the local filesystem,
> which it does
> > not...or the browser would store the filesize of the selected file
> somewhere
> > accessible in the dom. That would be a very cool thing for
> the browser's
> to
> > do, but I have never heard of this, so I very much doubt that is true
> > either.
>
> It's feasible, even if it's quite an hack. It works only on IE
> and NN 6, no
> NN 4. It doesn't works on the Mac either (but fails silentely in both
> cases). I made a Dreamweaver behavior for this, below is a
> sample code, hope
> OE will not do bad things with it:
>
> 
> 
> Check File Upload
> 
> 

[OT] Frustrating IE window.open popup delay...

2001-11-01 Thread Ron Hornbaker

Sorry for the OT and cross-post from JS-Jive list, but I still haven't
found the answer for this.

Ever since upgrading to IE5, then 5.5, on my way too fast and memory-laden
Dell laptop, JS popup windows take friggin' forEVER to popup, something
like 10-12 seconds on average.

After a fresh machine reboot, the problem seems to be improved, but still
slow, something like 4-5 seconds. As soon as I have 3 or 4 IE windows
open, the times jump up.

I've done all the service packs, no difference. Anyone else seen this
problem, and if so, is it fixable?

tia,
Ron
~~
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-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF_Forum Source

2001-11-21 Thread Ron Hornbaker

> that sounds like an oxymoron'you can BUY the open source'

Open Source != Free :)

-Ron

Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.
  .  http://AnswerTrack.com - eCRM email tracking solution





~~
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Ok.. JS gurus...

2001-11-27 Thread Ron Hornbaker

Great bit of code, but of course all that is unnecessary if all Lee wants
to do is capture the value of the select field:



And if supporting older browsers/JS-disabled browsers is important,
putting this after the  tag is a good idea:


  


-Ron


¸_¸.·´¯) http://www.BookCrossing.com ~ Read and Release! (¯`·.¸_¸.





> -Original Message-
> From: Don Vawter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 27, 2001 1:55 PM
> To: CF-Talk
> Subject: Re: Ok.. JS gurus...
>
>
> I assume you mean populate a hidden field rather than create a
> hidden field
> correct?
>
> 
>
> function foobar(obj){
> with (obj){
> for(i=0;i if(options[i].selected){
> document.forms[0].hiddenfield.value=options[i].value;
> break;
> }
>   }
> }
>document.forms[0].submit();
> }
>
> I haven't tested this but I think it should work
>
> - Original Message -
> From: "Lee Fuller" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, November 27, 2001 12:35 PM
> Subject: OT: Ok.. JS gurus...
>
>
> > Since we seem to be on the subject, I can't get anything to work, and
> > thought someone (prolly Dave ) might have an answer for this...
> >
> > Need to include a drop-down in a form that, when changed (onchange),
> > will add a hidden field to the form, and submit it immediately.
> >
> > Send me somewhere to find it.. That's ok! ;)  Just need to figure it
> > out.
> >
> > TTAIA
> >
> > Lee
> >
> 
~~
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-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Keep search engine spyders from following links

2001-12-10 Thread Ron Hornbaker

Use the "disallow" feature in robots.txt, and make those links all have a
similar path. We do something similar at http://bookcrossing.com/ for the
links to Amazon... here is our robots.txt file:

 http://bookcrossing.com/robots.txt

More info on robots.txt can be found here:

 http://www.searchengineworld.com/robots/robots_tutorial.htm

-Ron


> -Original Message-
> From: Jim McAtee [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 10, 2001 4:28 PM
> To: CF-Talk
> Subject: OT: Keep search engine spyders from following links
>
>
> On a couple of web pages, I run links to outside web sites through a CF
> template that records the click-through along with some browser
> and referer
> stats in a table, then redirects the browser to the target URL.
>  Is there
> any way to prevent search engine spyders from following these
> links?  If I'm
> not mistaken, there's no way to use a robots.txt to prevent
> this behavior,
> or is there?
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: javascript or html to crash netscape or IE

2001-12-11 Thread Ron Hornbaker

> I need a snippet of javascript/html/dhtml/css/whatever that will cause
> Netscape or IE to crash reliably so I can test something.  I
> have certainly
> managed to crash them in the past but can't find the code that
> did it.  Any
> ideas?

http://www.netscape.com/ usually does it for me. ;)

Seriously, crash how? Throw a JS error? Lock up the application? Lock up
the computer? Lock up the house, and cause your toilets to overflow and
your wife's hairdryer to catch fire? Be specific, man. :)

-Ron

¸_¸.·´¯) http://www.BookCrossing.com ~ Read and Release! (¯`·.¸_¸.



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Excuting stuff on the server

2001-12-17 Thread Ron Hornbaker

Troy,

Hey, that code looks vaguely familiar. :) Thanks for not posting all of it
to the list.

Try the cfexecute tag combined with the adduser and ldaper executables.
Our SafeExec object is an ASP-version of cfexecute ("safe" because it
allows executions on only one specified directory).

Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.
  .  email tracking and routing made easy: http://answertrack.com



> -Original Message-
> From: Troy Montour [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 17, 2001 11:24 AM
> To: CF-Talk
> Subject: Excuting stuff on the server
>
>
> Hello everyone I have a snag since I have never done this my self
> before.
>
> but I'm wondering what I would use in CF to do this same process??
>
>   Set HKSI = Server.CreateObject("hksiEZSignUp.SafeExec")
>   HKSI.FileName = "adduser.exe"
>
>   HKSI.params = "-h " & MailDomain & " -u " & UserName & " -n " & """"
> & FirstName & " " & LastName & """" & " -p " & Password
>strResult = HKSI.execute
>
>
>   if inStr(strResult, "OK") = 1 then
>
> 'Update LDAP values
>HKSI.FileName = "ldaper.exe"
>HKSI.params = "-H " & """" & MailDomain & """" & " -U " & """" &
> UserName  & """" & " -GN " & """" & FirstName & """" & " -SN " & """" &
> LastName & """"  & " -S " & """" & street1 & " " & street2 &
> """" & " -C
> " & """" & City & """" & " -ST " & """" & State & """" & " -CO " & """"
> & Country & """" & " -Z " & """" & Zip & """" & " -T " & """" & Phone &
> """" & " -OU " & """" & BackupEmail & """" & " -O " & """" & Company
>HKSI.execute
>Set HKSI = Nothing
>
>   'Update Record in Datasource
>
>   Dim objConn,objRS,strSQL
>
> if you need more of the orginal code let me know.
>
> Thank you
> Troy Montour
> Vampires Inc
> [EMAIL PROTECTED]
> 612.867.6831
> 763.586.0552
> http://www.vampiresinc.com
>
~~
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-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



[OT] Synchronizing SQL2000 and SQL7...

2001-05-25 Thread Ron Hornbaker

Sorry for the off-topic post, but we're just about to attempt to
synchronize a new SQL2000 server with our existing SQL7 server across the
internet, and keep them synch'ed during a colo move, and would appreciate
advice from anyone who has been there/done that.

Please contact me off-list at mailto:[EMAIL PROTECTED]... if it involves
substantial work, we'd be happy to pay for the consulting time.

Regards,

Ron Allen Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com

..¸_¸.·´¯) http://www.BookCrossing.com ~ Read and Release! (¯`·.¸_¸.




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: javascript thumbnails

2001-06-05 Thread Ron Hornbaker

> I just finish designing a search page for images.
> the images are stored on a diffrent server and it's take time for them
> to appear (i.e - user see empty rectangles for a long period of time).
>
> can anyone suggest a way to display a "loading, please wait.."
> IMAGE I have
> instead of those images and replace them with the real image as
> soon as it loads
> up?

Michael,

Check out the LOWSRC property of the  tag:

 http://msdn.microsoft.com/workshop/Author/dhtml/reference/objects/IMG.asp

No JavaScript required. :)


Ron Allen Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]

..¸_¸.·´¯) http://www.BookCrossing.com ~ Read and Release! (¯`·.¸_¸.




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: SQL 7 Full Text Search

2001-06-05 Thread Ron Hornbaker

> Other than converting to "Lauren* Closet" and searching for "Lauren*
> Closet", how do I automagically search and find: "Lauren's
> Closet" using
> SQL7 full text search?

Escape single quotes by replacing them with two single quotes prior to
submitting the search query. You would then be searching for "Lauren''s
Closet". You can do this programmatically, of course, on the search action
template. Escaping single quotes is also a good security precaution (along
with removing pipe characters), so malicious users don't create a little
subquery that drops a database or table from your search form.

Ron Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]

..¸_¸.·´¯) http://www.BookCrossing.com ~ Read and Release! (¯`·.¸_¸.




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: JavaScript var to Cold Fusion var

2001-06-07 Thread Ron Hornbaker

> I know I have seen this in the past and can not for the life of
> me find it.
> I am having NO PROBLEM at all getting JS to evaluate to a CF
> variable, but
> how do I do it in reverse.
>
> I have JS variables that I would like to convert to CF.
>
> Also, I have a confirm in JS that upon a true value, I would
> like to kick
> off a CFMAIL template.  Any help on either or both of these
> situations will
> be greatly appreciated.

There are many ways, but this is more funner than the others (watch the
line wrap):


http://www.depressedpress.com/DepressedPress/Content/ColdFusion/Essays/GIF
AsPipe/


Ron Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]

..¸_¸.·´¯) http://www.BookCrossing.com ~ Read and Release! (¯`·.¸_¸.




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: URL trick

2001-06-12 Thread Ron Hornbaker

Doesn't work with Outlook 2000, unfortunately. The angle brackets are
ignored.

-ron

> -Original Message-
> From: Parker, Kevin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 12, 2001 7:21 PM
> To: CF-Talk
> Subject: URL trick
>
>
> This has nothing to do with CF but is not OT either.
>
> Have you noticed that sometimes in your email messages from
> this fantastic
> list (thanks Mike D - you've been getting a bit of an
> unwarranted pasting in
> the last day or two but you do a great job) long URL's that
> people put in
> their messages pointing us to great CF stuff are wrapped over one or two
> lines and when you click on it, it doesn't work because you've
> only got half
> the URL so you have to copy and paste bits and pieces and its
> #@*** annoying
> :-( Well I've seen this a couple of times but didn't think
> anything of it
> but a friend (he's from M$ and yes M$ staff do have friends :-)
> pointed out
> to me that if you put the URL (especially long ones) inside
> angle brackets
> it tends to work better in most email messages (don't ask me why) e.g.
>
> 


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF-Talk-list V1 #38

2001-06-21 Thread Ron Hornbaker

I've seen about 3 messages in the last several days. MD says DNS is to
blame. (?)

-Ron

> -Original Message-
> From: Cameron [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 21, 2001 3:56 PM
> To: CF-Talk
> Subject: Re: CF-Talk-list V1 #38
>
>
> Hmmm, is something up with the list?
>
> Cause usually I get atleast one large (>40K) digest a day,
> usually a few small ones too.
>
> But yesterday I had no emails, & today I get digest #38 with
> only one message. & last Tuesday (list time) I got three small
> digests (biggest was 6K)...
>
> Seems the list is a lot slower at the moment for some strange reason...
>
> Cameron


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Encryption differences in ColdFusion 4.5 and 5.0?

2001-08-28 Thread Ron Hornbaker

On a related note, we developed but haven't yet released a CFX tag
(CFX_FuguCrypt) that uses a custom variant of the Blowfish algorithm to
produce completely URL-safe strings. The resulting strings are approx.
1.5X longer than the source. Would anyone be interested in such a beast
for a reasonable price?

-Ron


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Changing the name of a file...

2001-08-28 Thread Ron Hornbaker

> I am using CFContent to grab a file and serve it up to the end
> user which
> works great, except that if I go after a file called setup.exe
> for example
> and serve it to the user when they choose to save it to their system it
> tries to save it as index.cfm in this case or what ever file
> name I happen
> to call the cfcontent from.  Is there a way to force it back to
> setup.exe?




Ron Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]

.¸_¸.·´¯) http://www.BookCrossing.com ~ Read and Release! (¯`·.¸_¸.






~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Encrypt and Decrypt - CFX_FuguCrypt demo is up...

2001-08-29 Thread Ron Hornbaker

Yesterday after mentioning our CFX_FuguCrypt tag, which uses a
URL-friendly variant of the fast and popular Blowfish algorithm (no known
weaknesses to my knowledge), I got private responses from many of you
expressing your interest in the tag.

You can now demo the tag at:

  http://www.humankindsystems.com/FuguCrypt.cfm

As you'll see, its encrypted strings will contain only characters a-z,
A-Z, 0-9, periods and hyphens. Totally URL-safe, and more pleasing to the
eye than a bunch of $#(!#@^ characters that make your URLs look like a
Tarantino script.

On that page is an email address to which you can give feedback on whether
or not you think we should package this up as a commercially-available CFX
tag. All feedback is greatly appreciated.

Regards,
Ron

Ron Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]



> -Original Message-
> From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 5:58 AM
> To: CF-Talk
> Subject: RE: Encrypt and Decrypt function
>
>
> Chris
>
> I think the reason you are getting problems may be because some of the
> chracters generated by the Encrypt function may be ascii
> characters which
> are not URL safe and may need URL encoding
> there is another thread somewhere which discussses this. Also
> be warned the
> functions Craig told you about, which i believe do not suffer
> from the same
> problem are actually undocumented and unofficial functions. Bear this in
> mind when you use them as they are NOT guaranteed to be
> supported in future
> versions/releases/service packs etc.
>
> HTH
>
> Kola Oyedeji
> Web developer
> Macromedia Certified Advanced ColdFusion 5 Developer
> http://www.Alexandermark.com
> (+44)020-8429-7300
>


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Encrypt and Decrypt - CFX_FuguCrypt demo is up...

2001-08-30 Thread Ron Hornbaker

> Ron Hornbaker wrote:
> > Yesterday after mentioning our CFX_FuguCrypt tag, which uses a
> > URL-friendly variant of the fast and popular Blowfish
> algorithm (no known
> > weaknesses to my knowledge), I got private responses from many of you
> > expressing your interest in the tag.
> >
> > You can now demo the tag at:
> >
> >   http://www.humankindsystems.com/FuguCrypt.cfm
> >
> > As you'll see, its encrypted strings will contain only characters a-z,
> > A-Z, 0-9, periods and hyphens. Totally URL-safe, and more
> pleasing to the
> > eye than a bunch of $#(!#@^ characters that make your URLs look like a
> > Tarantino script.
>
> Do you also have a version that is NOT url safe and can do a normal
> Blowfish encryption?

No, but we could easily make that an option in the tag parameters. Good
idea.

> Does your CFX work on all *nix platforms supported
> by CF?

Haven't tried it, but I'd be happy to get you an eval version if you'd
like to try it. Contact me off-list.

Ron Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: multiple attachment selection client side.....

2001-12-29 Thread Ron Hornbaker

The only non-applet (pure html and CF) method is to use multiple  tags on the form, then loop through them on the action
template. End result can look something like this demo page:

  http://www.humankindsystems.com/images.htm

Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.
  .  email tracking and routing made easy: http://answertrack.com


> -Original Message-
> From: Sebastiaan Barlo [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, December 29, 2001 10:06 AM
> To: CF-Talk
> Subject: multiple attachment selection client side.
>
>
> Dear all,
>
> I'm working on a webmail application and I want to give users
> the ability
> to attach multiple files to there messages. I know how to do the server
> part of this procedure but not the client side.
> I can't get this to work with  cause this
> only supports
> one file at a time and I want my users to give the ability to attach
> multiple files.
> Any idea on how to accomplish this?
>
> Thnx in advance,
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Javascript Calendar

2002-01-07 Thread Ron Hornbaker

> http://www.vawter.com/test/calendar.html
>
> I made one yesterday that pops up but does't use a new window.
> No CF in code so if you want it just snag the source.
>
>
> Works great in IE and NS6 and is functional in NS4.7

That's very slick, Don. Have you attempted yet to squash the bugs with
NS4x, and make it have background colors with NS6?

-Ron

__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: ASP.NET

2002-01-16 Thread Ron Hornbaker

Try http://asp.net/... it's the mother of all asp.net sites.

-Ron

> -Original Message-
> From: Stephenie Hamilton [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 16, 2002 12:43 PM
> To: CF-Talk
> Subject: RE: ASP.NET
> 
> 
> do you have any info on resources where one can learn more about
> NET and how to implement it?
> 
> 
> ~~
__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: extracting data from a huge text file

2002-01-24 Thread Ron Hornbaker

> Been a while since I used it but I wrote a cfx called... hmm.. I don't
> recall what it was called /-) ... anyway, the cfx was to read in log
> files one line at a time.
>
> Which is what it does, one carriage-deliminated line per call, not the
> entire file all at once.
>
> It's somewhere at http://www.intrafoundation.com/freeware.html.

okay, min, put DOWN the cough syrup, and step away from the keyboard. You
know, if you didn't write such goshdarned excellent code, people would
think you were nuts. ;)

Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.
  .  email tracking and routing made easy: http://answertrack.com






__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Background image in select box

2002-01-31 Thread Ron Hornbaker

> Is there a way to put a background image in a select box? What
> I want to
> do is set up a admin page for a message board to allow the admin to
> choose the colors for the site.
>
> I would like to do something like so, but do not know how, or if it is
> even possible.
>
> 
> Please choose
> 
> 

Take a look at http://fuselets.com/cftips/, then click on the "Put this
Fuselet on your web page" link. You'll see some color selectors like
you're talking about (except they don't use images, they use stylesheet
colors). They've been built with a looping JS function for fast page loads
(small kb footprint, let the client do the calcs). Fails gracefully with
NS. Feel free to grab the html/js source.

Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.
  .  email tracking and routing made easy: http://answertrack.com


__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Creating Thumbnails of webpages again :-)

2002-02-02 Thread Ron Hornbaker

> I mis-read your question...you are correct that CFX_IMAGE manipulates
> existing images.
>
> Why would you want a BMP of a website?

Lots of reasons. One, for example, is to build a search engine that shows
thumbnails of matching webpages, like this one:

   http://www.searchshots.com

I'm betting Google will be doing this before long, since they've got the
Catalog Thing down cold (http://catalog.google.com/, way cool for image
proc buffs).


Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.
  .  email tracking and routing made easy: http://answertrack.com


__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: IE6 Event Handling

2002-02-13 Thread Ron Hornbaker

> I was having the damnedest time trying to figure out why onblur()
> wouldn't work in IE6, then after a little browsing, I found this.  So I
> figured I'd let everyone else know :)
>
> Focus events for IE6:
>
> The onblur() and onfocus() events no longer work in IE6,
> they have been replaced with onfocusin() and onfocusout()

Steve,

What's your source of information?

onblur and onfocus events are triggering normally in form inputs with my
copy of IE6 (v6.0.26)... here's a test page:

 http://hksi.net/blurtest.htm

The MSDN definitions suggest 4 distinct triggers, and don't mention any
syntax deprecation or replacing:

onfocus - Fires when the object receives focus.
onfocusin - Fires for an element just prior to setting focus on that
element.
onblur - Fires when the object loses the input focus.
onfocusout - Fires for the current element with focus immediately after
moving focus to another element.

Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.
  .  email tracking and routing made easy: http://answertrack.com



__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Dynamic Include

2002-02-19 Thread Ron Hornbaker

> What is the best way to allow someone on another Web server
> which will not
> necessarily have CF on it to imbed a call to a CF page on my
> server. Where
> my page would do some database lookups and return some HTML
> that would be
> imbedded in the original page (not a redirect).

Lee,

You could do this:

 http://www.yourdomain.com/filename.cfm"</A>;>

where filename.cfm would use cfcontent to set headers that would trick the
browser into thinking it was a JavaScript file, and then use valid
JavaScript in that file to write the content to the screen. It can be a
chore converting your CF output to valid JavaScript, however.

Our Fuselet tag makes this painfully easy, and goes many steps further,
letting you create full-blown interactive applications you can "fuse" into
any html page anywhere.

 Fuselet Demo: http://fuselets.com/cftips/index.html (Ben Forta's CF Tips)
 Fuselet Tech: http://fuselets.com/techtalk/readme.html
 Fuselet Tag:
http://www.humankindsystems.com/products/detail.htm?code=CF-MF

Hope this helps...

Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.
  .  email tracking and routing made easy: http://answertrack.com





__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Dynamic Include

2002-02-19 Thread Ron Hornbaker

> > > What is the best way to allow someone on another Web server
> > > which will not
> > > necessarily have CF on it to imbed a call to a CF page on my
> > > server. Where
> > > my page would do some database lookups and return some HTML
> > > that would be
> > > imbedded in the original page (not a redirect).
> >
> >Lee,
> >
> >You could do this:
> >
> >  http://www.yourdomain.com/filename.cfm";>
> >
> >where filename.cfm would use cfcontent to set headers that
> would trick the
> >browser into thinking it was a JavaScript file, and then use valid
> >JavaScript in that file to write the content to the screen. It can be a
> >chore converting your CF output to valid JavaScript, however.
>
>
> Wouldn't you just catch all the output of your template
> (CFSAVECONTENT in
> CF5, make a custom tag previously) and use JSStringFormat() to
> convert to
> javascript ?
>
> eg...
>
> 
>  
>  This Is A Page
>  
>  Foo Bar Bar Foo
>  Any stuff you want in here, cf stuff,
> html stuff,
> whatever...
>  
>  
> 
> 
>  document.write("#JsStringFormat(TheRealOutput)#");
> 

That'll work, as long as you lose those 

RE: check for image existence

2002-03-07 Thread Ron Hornbaker

Jason,

Depends on whether you want to do the work server side or client side.
Note that if you have several images on one page, the JavaScript method
can get flaky. Also note the JS method doesn't work with NS4x.

That said, the JS method is very handy when you don't have physical access
to the images. We use it extensively at http://BookCrossing.com. Since
there are lots of images on each page, we found it was better to trigger a
function on body load that loops through all the external images on the
page, and replaces those that were not loaded. (Trying to do an onError
for more than about 5 img tags on a page tends to lock up IE.)

Here is the simple, but highly effective, script:

<!--
var replacementImage = new Image(60,90);
replacementImage.src = '/images/NoBookImageAvailable-60x90.gif';

function checkAllImages(){
  for(i=0;i<document.images.length;i++){
  //if image is from amazon, and is smaller than 30,
  //it didn't load and needs replaced
  if(document.images[i].src.indexOf("amazon.com")>=0 &&
parseInt(document.images[i].height)<=30)
document.images[i].src=replacementImage.src
  }
}
//-->




Hope this helps someone... if it does, you have to go register and release
at least one book at http://BookCrossing.com now! :)


Ron Hornbaker
President/CTO
  .  .  .  .  .  .  .  .  .  .  .  .  http://humankindsystems.com
  .  .  .  .  .  .  .  .  .  .  .  .  w e  c o d e.  w e  c a r e.
  .  email tracking and routing made easy: http://answertrack.com







> -Original Message-
> From: Jason Davis [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 7:21 AM
> To: CF-Talk
> Subject: check for image existence
>
>
> I have about 50,000 images that are displayed across the site.
> I'm looking for the best mechanisem to replace a "non-exits" image
> with a default file, and came across this two options. if anyone can
> share his experince I'll appriciate it:
>
> (All 50,000 product photos are sorted in ~ 900 directories.
> files are sorted
> using their 3 leftmost character). i.e, Product_id # 303921
> will go to the
> dir: \303\
>
> First option: using CF:
> #lef
> t(Product_id
> ,3)#/#Product_id#default.jpg">
>
> Second option: using javascript:
>  onError="this.src='default.jpg'">
>
> Maybe this figure will help out:
>
> I did a small test on a 9000 files directory:
>
>  name="LongList">
>
> 
> 
> #NAME#
> 
> 
>
> This went by in 4 seconds, where while eliminative the
> FileExists, template
> was finished in 0 seconds.
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists