RE: How do you 'blackout' a page while data being loaded?
You can use a layer. Just wrap the content you want to hide inside a layer with visibility set to hidden div id=ContentHolder style=visibility: hiddenMe Content/div and put an onload action for the body tag so when the page loads it sets the layer back to visible script function ShowContent() { if(parseInt(navigator.appVersion) == 4 navigator.appName == Netscape) { ContentHolder.visibility = visible; } else { ContentHolder.style.visibility = visible; } } /script body onload = ShowContent(); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 15, 2002 12:56 PM To: CF-Talk Subject: How do you 'blackout' a page while data being loaded? Does anyone know how to make a page that will display a lot of data can be made to be completely black until all the information has been loaded and is ready for display? Some of the data in this instance is graphics being pulled from a database and it looks not very pretty as you see them being assembled since not everything loads at the same time. What I'm trying to accomplish is the same effect as on the clip art web sites, where the page goes black until the next set of selection have downloaded. I think there's a IE 5 page transition trick, but don't seem to be able to locate it. Thanks in advance for any tips. __ 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: Any other way to look at datasources?
If you feel like being risky and using undocumented functions theres: CFUSION_GETODBCDSN() see macromedia's article on the undocumented functions / tags http://www.macromedia.com/v1/handlers/index.cfm?ID=11714Method=Full -Original Message- From: Pete Freitag [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 6:06 PM To: CF-Talk Subject: RE: Any other way to look at datasources? CF_Datasource will give you a list of datasources on the server... http://www.cfdev.com/products free encrypted version. + Pete Freitag ([EMAIL PROTECTED]) CTO, CFDEV.COM ColdFusion Developer Resources http://www.cfdev.com/ -Original Message- From: Howie Hamlin [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 5:02 PM To: CF-Talk Subject: Re: Any other way to look at datasources? Control PanelODBC Settings Regards, Howie - Original Message - From: bajaria aslam [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, March 01, 2002 4:55 PM Subject: Any other way to look at datasources? Hi All. I know that you can see the datasource names and the servers they are pointing to in cfadmin. But, is there another way to find the list of datasources and the servers they point to? Also, even in cfadmin, we can just see the datasource name, but until we don't click on the the datsource name link, we don't know the server it is pointing to. All we know is if it is a MS Access Driver datasource or a SQL Server datasource etc. So, if there is another way to look at the datasources, that would be nice. Thanks All __ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! __ 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: Custom error (cfthrow) question
Lets say you wanted to throw a fieldmissing error use cfthrow like: cfthrow type=fieldmissing message=hey buddy fill in all the fields detail=missing field: first_name Then you can catch it along with your database error as follows: cftry !--- code here --- cfcatch type=Database NativeErrorCode =22001 !--- do database error processing here --- /cfcatch cfcatch type=fieldmissing !--- do missing field error processing here --- /cfcatch /cftry -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 3:03 PM To: CF-Talk Subject: Custom error (cfthrow) question I've used CFTRY/CFCATCH before. But I've never been clear on exactly how to catch specific ODBC type of errors, to put up a custom error message. I want an error message for : ODBC Error Code = 22001 (String data right truncation) If that error comes up, as opposed to any other error, I want to be able to say, Hey buddy, you're input field is too big -- trim it back) I've used CFTHROW to do something like cfif form.field is blah throw /cfif but I'm not sure I can catch and ODBC error and throw a custom error -- can I? How would you handle this? H. __ 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: image mapping question
What it looks like you need is a webserver mapping (aka virtual directory) your webserver not cf should make to the path so for example if i setup a mapping (virtual directory in the iis world) in my webserver as follows: /imageroot/ maps to c:\imagesdir\ then when i call http://www.myserver.com/imageroot/ the webserver will point to the c:\imagesdir\ the cfadmin mappings are only useful for the coldfusion engine to help find templates to cfinclude or cfmodule you can contact me if you have additional questions, -Fred -Original Message- From: Ray Bujarski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 5:52 PM To: CF-Talk Subject: image mapping question How do I insert an image using the actual path similar to img src=c:\imagesdir\image.jpg with unix file system? When I use img src=/prj/photos/GIF/72.90.8.color/image.jpg it translates it like it were a relative path (properties show http://www.mydomain.com/prj/photos/GIF/72.90.8.color/image.jpg) I tried to map the folder in administrator by putting Logical Path : /images/ Directory Path : /prj/photos/GIF/72.90.8.color/ then changed the image tag to read img src=/images/image.jpg and still nothing.Does anyone know how to get around this situation? *** Also to be noted in our administrator we have mapped Logical Path : / Directory Path : /prj/webdev I don't know if this makes a difference. *** Ray Bujarski 858-845-7669 858-636-9900 pgr [EMAIL PROTECTED] __ 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: Looping through list of variables
I believe your problem is the variable scope your using. You'll need to reference it as Form.chooseequip#counter# Not EquipmentForm.chooseequip#counter# Also your sending the data into your database unchecked. I'd recommend evaluating and verifying all the data you need into a structure then loop over the structure and insert the data into the database. At the very least put a simple val function around your evaluate: INSERT INTO tblEquipEntry VALUES (tblequipentry_seq.nextval,1000, Val(Evaluate(Form.chooseequip counter)), Val(Evaluate(Form.hours counter)) ) Try that, -Frederic Jambukeswaran -Original Message- From: Angel Stewart [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 2:06 PM To: CF-Talk Subject: Looping through list of variables Hey all. I have a form with variables nammed chooseequip1, chooseequip2,chooseequip3...5 Now I want to check if each of these is empty, and if not then insert data. Of course I need to reference them. I tried using a CFLOOP but I am running into problems with referenceing the fields with evaluate. cfloop index=counter from=1 to=5 step=1 cfif len(evaluate('EquipmentForm.chooseequip#counter#')) cfquery name=InsertEquipment dbtype=Oracle80 INSERT INTO tblEquipEntry VALUES (tblequipentry_seq.nextval,1000,#Evaluate('#EquipmentForm.chooseequip##c ounter#')#,#Evaluate ('#EquipmentForm.hours##counter#')#) /cfquery /cfquery /CFLOOP Any ideas on the correct way to reference those fieldvalues? -Gel ~~ 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: Looping through list of variables
I forgot the hash marks around the variables: INSERT INTO tblEquipEntry VALUES (tblequipentry_seq.nextval,1000, #Val(Evaluate(Form.chooseequip counter))#, #Val(Evaluate(Form.hours counter))# ) -Original Message- From: Fred jambukeswaran Sent: Wednesday, November 21, 2001 3:36 PM To: CF-Talk Subject: RE: Looping through list of variables I believe your problem is the variable scope your using. You'll need to reference it as Form.chooseequip#counter# Not EquipmentForm.chooseequip#counter# Also your sending the data into your database unchecked. I'd recommend evaluating and verifying all the data you need into a structure then loop over the structure and insert the data into the database. At the very least put a simple val function around your evaluate: INSERT INTO tblEquipEntry VALUES (tblequipentry_seq.nextval,1000, Val(Evaluate(Form.chooseequip counter)), Val(Evaluate(Form.hours counter)) ) Try that, -Frederic Jambukeswaran -Original Message- From: Angel Stewart [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 2:06 PM To: CF-Talk Subject: Looping through list of variables Hey all. I have a form with variables nammed chooseequip1, chooseequip2,chooseequip3...5 Now I want to check if each of these is empty, and if not then insert data. Of course I need to reference them. I tried using a CFLOOP but I am running into problems with referenceing the fields with evaluate. cfloop index=counter from=1 to=5 step=1 cfif len(evaluate('EquipmentForm.chooseequip#counter#')) cfquery name=InsertEquipment dbtype=Oracle80 INSERT INTO tblEquipEntry VALUES (tblequipentry_seq.nextval,1000,#Evaluate('#EquipmentForm.chooseequip##c ounter#')#,#Evaluate ('#EquipmentForm.hours##counter#')#) /cfquery /cfquery /CFLOOP Any ideas on the correct way to reference those fieldvalues? -Gel ~~ 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: Looping through list of variables
I guess I need more coffee in the morning. This should do it for you: INSERT INTO tblEquipEntry VALUES (tblequipentry_seq.nextval,1000, #Val(Evaluate(Form.chooseequip counter))#, #Val(Evaluate(Form.hours counter))# ) -Original Message- From: Fred jambukeswaran Sent: Wednesday, November 21, 2001 3:45 PM To: CF-Talk Subject: RE: Looping through list of variables I forgot the hash marks around the variables: INSERT INTO tblEquipEntry VALUES (tblequipentry_seq.nextval,1000, #Val(Evaluate(Form.chooseequip counter))#, #Val(Evaluate(Form.hours counter))# ) -Original Message- From: Fred jambukeswaran Sent: Wednesday, November 21, 2001 3:36 PM To: CF-Talk Subject: RE: Looping through list of variables I believe your problem is the variable scope your using. You'll need to reference it as Form.chooseequip#counter# Not EquipmentForm.chooseequip#counter# Also your sending the data into your database unchecked. I'd recommend evaluating and verifying all the data you need into a structure then loop over the structure and insert the data into the database. At the very least put a simple val function around your evaluate: INSERT INTO tblEquipEntry VALUES (tblequipentry_seq.nextval,1000, Val(Evaluate(Form.chooseequip counter)), Val(Evaluate(Form.hours counter)) ) Try that, -Frederic Jambukeswaran -Original Message- From: Angel Stewart [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 2:06 PM To: CF-Talk Subject: Looping through list of variables Hey all. I have a form with variables nammed chooseequip1, chooseequip2,chooseequip3...5 Now I want to check if each of these is empty, and if not then insert data. Of course I need to reference them. I tried using a CFLOOP but I am running into problems with referenceing the fields with evaluate. cfloop index=counter from=1 to=5 step=1 cfif len(evaluate('EquipmentForm.chooseequip#counter#')) cfquery name=InsertEquipment dbtype=Oracle80 INSERT INTO tblEquipEntry VALUES (tblequipentry_seq.nextval,1000,#Evaluate('#EquipmentForm.chooseequip##c ounter#')#,#Evaluate ('#EquipmentForm.hours##counter#')#) /cfquery /cfquery /CFLOOP Any ideas on the correct way to reference those fieldvalues? -Gel ~~ 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