Re: Dynamically resizing a cfwindow?
try something like this, Pete: cfoutput [script type=text/javascript] var extW = ColdFusion.Window.getWindowObject('albumwin'); extW.setSize({width: #imgInfo.width#, height: #imgInfo.height#}); [/script] /cfoutput you may have to make it into a js function and call it using ajaxonload() from within the page loaded inside your cfwindow Azadi On 18/10/2010 09:08 , Pete Ruckelshaus wrote: I'd like to be able to dynamically resize a ColdFusion window created with cfwindow. I haven't found anything definitive as to whether this is possible; I did try the following: [script language=javascript ColdFusion.Window.getWindowObject('albumwin').resizeTo(#imgInfo.width#,#imgInfo.height#); [/script (script tags broken intentionally). This doesn't seem to work. Is there a way to do this? Thanks, Pete ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338690 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: StructAppend Creating an Error
I can output the value of the session vars like so: cfloop query=memberInfoFields cfoutput#session.memberRegister[STRFIELDNAME]#br/cfoutput but this is not working correctly: cfloop query=memberInfoFields input type=text name=#STRFIELDNAME# value=#session.memberRegister[STRFIELDNAME]# size=30 the value of the field is blank. what am I doing wrong? On Fri, Oct 29, 2010 at 1:06 PM, Leigh cfsearch...@yahoo.com wrote: Now, how do I check for the existance of and use these dynamic variables to set my form values? The same way as before. Use array notation. No need for the extra # signs. ie cfif session.memberRegister[ STRFIELDNAME ] eq someValue something here... /cfif BTW: Most scopes in CF are structures. So associative array notation will work with most variables. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338691 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: StructAppend Creating an Error
Is it possible the value of those keys is actually blank? In previous code you were setting the default value to . Output the value before the inputs. What do you see? cfoutput cfloop query=memberInfoFields Debug value of #STRFIELDNAME# = #session.memberRegister[STRFIELDNAME]# input type=text name=#STRFIELDNAME# value=#session.memberRegister[STRFIELDNAME]# size=30br /cfloop /cfoutput ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338692 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: StructAppend Creating an Error
I get the results when I user your code Debug value of strInstUsername = Debug value of strLanguage = Debug value of strInstEmail = m...@aol.com Debug value of strGender = Female Debug value of strDegrees = Associate Degree Debug value of strEmployeeNum = Debug value of strDepartment = Debug value of strResearchRole = Interviewer Debug value of strAddress1 = Debug value of strAddress2 = Debug value of strAddress3 = Debug value of strCity = Decatur Debug value of strState = Debug value of strZip = Debug value of strCountry = USA Debug value of strPhone = 5678887666 Debug value of strCustom1 = Debug value of strCustom2 = Debug value of strCustom3 = lkln Debug value of strCustom4 = Debug value of strCustom5 = On Sat, Oct 30, 2010 at 1:51 PM, Leigh cfsearch...@yahoo.com wrote: Is it possible the value of those keys is actually blank? In previous code you were setting the default value to . Output the value before the inputs. What do you see? cfoutput cfloop query=memberInfoFields Debug value of #STRFIELDNAME# = #session.memberRegister[STRFIELDNAME]# input type=text name=#STRFIELDNAME# value=#session.memberRegister[STRFIELDNAME]# size=30br /cfloop /cfoutput ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338693 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Latency Issues when pulling data from other websites
What's the best way to deal with latency issues when pulling data from other websites? For example, if we are pulling an image from amazon's web services, and for whatever reason, that image takes 10 or 20 seconds to retrieve because of internet network congestion or router problems, then that request can hang awaiting the response. If there are ten or twenty of these requests in a minute, then they can effectively hang the CF server. How do developers deal with this potential problem? Thanks in advance. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338694 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: StructAppend Creating an Error
I figured it out: I had code that was resetting the values: cfif NOT isDefined(session.memberRegister.STRFIELDNAME) cfset session.memberRegister.#STRFIELDNAME# = /cfif On Sat, Oct 30, 2010 at 3:24 PM, Monique Boea moniqueb...@gmail.com wrote: I get the results when I user your code Debug value of strInstUsername = Debug value of strLanguage = Debug value of strInstEmail = m...@aol.com Debug value of strGender = Female Debug value of strDegrees = Associate Degree Debug value of strEmployeeNum = Debug value of strDepartment = Debug value of strResearchRole = Interviewer Debug value of strAddress1 = Debug value of strAddress2 = Debug value of strAddress3 = Debug value of strCity = Decatur Debug value of strState = Debug value of strZip = Debug value of strCountry = USA Debug value of strPhone = 5678887666 Debug value of strCustom1 = Debug value of strCustom2 = Debug value of strCustom3 = lkln Debug value of strCustom4 = Debug value of strCustom5 = On Sat, Oct 30, 2010 at 1:51 PM, Leigh cfsearch...@yahoo.com wrote: Is it possible the value of those keys is actually blank? In previous code you were setting the default value to . Output the value before the inputs. What do you see? cfoutput cfloop query=memberInfoFields Debug value of #STRFIELDNAME# = #session.memberRegister[STRFIELDNAME]# input type=text name=#STRFIELDNAME# value=#session.memberRegister[STRFIELDNAME]# size=30br /cfloop /cfoutput ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338695 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Latency Issues when pulling data from other websites
If you are using cfhttp to retrieve the image, add a timeout value to it and code for the case in which id doesn't come back in time. Or you can utilize ajax to do your retrievable so the entire page is presented, and then a secondary process retrieves the files post page load. Regards, David McGraw Oyova Software - Jacksonville - http://www.oyova.com On Sat, Oct 30, 2010 at 3:19 PM, Richard Steele r...@photoeye.com wrote: What's the best way to deal with latency issues when pulling data from other websites? For example, if we are pulling an image from amazon's web services, and for whatever reason, that image takes 10 or 20 seconds to retrieve because of internet network congestion or router problems, then that request can hang awaiting the response. If there are ten or twenty of these requests in a minute, then they can effectively hang the CF server. How do developers deal with this potential problem? Thanks in advance. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338696 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: StructAppend Creating an Error
cfset session.memberRegister.#STRFIELDNAME# = Good job. BTW: Consider using associative array notation, it is easier on the eyes ;-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338697 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Latency Issues when pulling data from other websites
Ideally do not use CF to get the image. Either link to it directly using the img tag or use ajax then it all happens client side and will not stop your page loading. Russ -Original Message- From: Richard Steele [mailto:r...@photoeye.com] Sent: 30 October 2010 20:20 To: cf-talk Subject: Latency Issues when pulling data from other websites What's the best way to deal with latency issues when pulling data from other websites? For example, if we are pulling an image from amazon's web services, and for whatever reason, that image takes 10 or 20 seconds to retrieve because of internet network congestion or router problems, then that request can hang awaiting the response. If there are ten or twenty of these requests in a minute, then they can effectively hang the CF server. How do developers deal with this potential problem? Thanks in advance. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338698 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Latency Issues when pulling data from other websites
Russ, I would assume he's using Amazon services for files that need more than just loading images on a web page, but for something like a image gallery, or something else that requires loading on the server side, which is why his question is about requesting the file using CF. On Sat, Oct 30, 2010 at 3:53 PM, Russ Michaels r...@michaels.me.uk wrote: Ideally do not use CF to get the image. Either link to it directly using the img tag or use ajax then it all happens client side and will not stop your page loading. Russ -Original Message- From: Richard Steele [mailto:r...@photoeye.com] Sent: 30 October 2010 20:20 To: cf-talk Subject: Latency Issues when pulling data from other websites What's the best way to deal with latency issues when pulling data from other websites? For example, if we are pulling an image from amazon's web services, and for whatever reason, that image takes 10 or 20 seconds to retrieve because of internet network congestion or router problems, then that request can hang awaiting the response. If there are ten or twenty of these requests in a minute, then they can effectively hang the CF server. How do developers deal with this potential problem? Thanks in advance. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338699 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Latency Issues when pulling data from other websites
Ok I must have missed the first email. You can in that case use CFTHREAD to free up the current request so that it does not delay the page load, or you can still use ajax. Ajax is simply a client side call to a server side component, so you can still execute CFML and load your files. Russ -Original Message- From: David McGraw [mailto:david.mcg...@gmail.com] Sent: 30 October 2010 20:58 To: cf-talk Subject: Re: Latency Issues when pulling data from other websites Russ, I would assume he's using Amazon services for files that need more than just loading images on a web page, but for something like a image gallery, or something else that requires loading on the server side, which is why his question is about requesting the file using CF. On Sat, Oct 30, 2010 at 3:53 PM, Russ Michaels r...@michaels.me.uk wrote: Ideally do not use CF to get the image. Either link to it directly using the img tag or use ajax then it all happens client side and will not stop your page loading. Russ -Original Message- From: Richard Steele [mailto:r...@photoeye.com] Sent: 30 October 2010 20:20 To: cf-talk Subject: Latency Issues when pulling data from other websites What's the best way to deal with latency issues when pulling data from other websites? For example, if we are pulling an image from amazon's web services, and for whatever reason, that image takes 10 or 20 seconds to retrieve because of internet network congestion or router problems, then that request can hang awaiting the response. If there are ten or twenty of these requests in a minute, then they can effectively hang the CF server. How do developers deal with this potential problem? Thanks in advance. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338700 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm