Re: Dynamically resizing a cfwindow?

2010-10-30 Thread Azadi Saryev
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

Re: StructAppend Creating an Error

2010-10-30 Thread Monique Boea
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

Re: StructAppend Creating an Error

2010-10-30 Thread Leigh
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

Re: StructAppend Creating an Error

2010-10-30 Thread Monique Boea
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

Latency Issues when pulling data from other websites

2010-10-30 Thread Richard Steele
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

Re: StructAppend Creating an Error

2010-10-30 Thread Monique Boea
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

Re: Latency Issues when pulling data from other websites

2010-10-30 Thread David McGraw
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

Re: StructAppend Creating an Error

2010-10-30 Thread Leigh
cfset session.memberRegister.#STRFIELDNAME# = Good job. BTW: Consider using associative array notation, it is easier on the eyes ;-) ~| Order the Adobe Coldfusion Anthology now!

RE: Latency Issues when pulling data from other websites

2010-10-30 Thread Russ Michaels
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:

Re: Latency Issues when pulling data from other websites

2010-10-30 Thread David McGraw
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,

RE: Latency Issues when pulling data from other websites

2010-10-30 Thread Russ Michaels
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