Steve, can you post some sample code for a bit of Friday fun? Sent from my iPhone
On 04/02/2011, at 11:49, "Andrew Scott" <andr...@andyscott.id.au> wrote: > Not sure if this is the problem or not, but I have had problems when using > anything that is CF UI inside a div/element like this. > > > > The problem is that the JS needs to be formatted/written in a special way, > this is the way JS works when doing Ajax calls in these type of examples. The > problem is that the JS generated by the likes of AjaxOnLoad and cfajaxproxy > to name a few, sometimes will fail in these type of examples. > > > > To verify this, try moving the cfimport or ColdFusion code to the main > calling page. And just use the Ajax to return the data/information that is > required. I am almost confident that this is the problem you are experiencing. > > > > Regards, > > Andrew Scott > > http://www.andyscott.id.au/ > > > > > > > > From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf > Of Steve Onnis > Sent: Friday, 4 February 2011 10:23 AM > To: cfaussie@googlegroups.com > Subject: RE: [cfaussie] CFFILEUPLOAD in an Ajax call > > > > Ok > > > > I am calling a page via ajax and injecting the returned HTML into a div. > > > > The request response contains all of the required scripts and there is a div > there which looks like <div id=”cf_fileUpload12345678”></div> but there is > nothing inside it > > > > If i call the page on its own the fileupload component displays fine. It is > only when it is called via ajax that it does not load, so the issue is not > with the script paths or whatever. > > > > There is some javascript that has a function in it to create the upload > component and embed it into the page and there is another function that looks > like ColdFusion.Event.registerOnLoad(_cf_fileupload12345687) that i am > guessing registers the function that is used to embed the flash to run when > the page has loaded....but when using ajax there is no “onLoad” method for > the window so it never gets run. This is where the issue lies. > > > > I need a way to fire the onload event but i don’t want to do it for the > window event because i have other things running there that i don’t want to > run again so i just need to be able to run the ColdFusion.Event ones. > > > > I am right here? > > > > Steve > > > > From: charlie arehart [mailto:charlie_li...@carehart.org] > Sent: Friday, 4 February 2011 9:26 AM > To: cfaussie@googlegroups.com > Subject: RE: [cfaussie] CFFILEUPLOAD in an Ajax call > > > > Hey Steve, let’s start by ruling out any complications in your code. What do > you see if you run a test page that does nothing but this: > > <cffileupload /> > > If that is somehow blank, let’s next clarify if the URL called by the code > generated by the tag would find the needed SWF and other files (JS, CSS) that > it uses. > > What do you see when you browse this: > > http://[server]/CFIDE/scripts/ajax/resources/cf/assets/MultiFileUpload.swf > > If the flash-based uploader doesn’t appear, then that would be a problem. It > could be that you’ve moved the location of your CFIDE, or the scripts within > that. Or perhaps something about your web server may not be serving SWFs at > all. What error do you get, if this does not work? And if you’d say you did > intentionally move the scripts directory from out of CFIDE, note that even in > 9.0.1, that’s a known issue: http://kb2.adobe.com/cps/849/cpsid_84902.html > > Let us know if that helps, or if not, please do clarify more what is not > working. > > /charlie arehart > > char...@carehart.org > > Providing CF and CFBuilder troubleshooting services > > at http://www.carehart.org/consulting > > > > From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf > Of Steve Onnis > Sent: Thursday, February 03, 2011 12:28 AM > To: cfaussie@googlegroups.com > Subject: RE: [cfaussie] CFFILEUPLOAD in an Ajax call > > > > Anyone??? > > > > From: Steve Onnis [mailto:st...@cfcentral.com.au] > Sent: Thursday, 3 February 2011 1:05 PM > To: cfaussie@googlegroups.com > Subject: RE: [cfaussie] CFFILEUPLOAD in an Ajax call > > > > No error. The ajax request has all the libraries in it, and the div is there > for the flash object but the div is empty. I am thinking that there is a > javascript function that needs to get called to complete the embedding..... > > > > From: MrBuzzy [mailto:mrbu...@gmail.com] > Sent: Thursday, 3 February 2011 12:45 PM > To: cfaussie@googlegroups.com > Subject: Re: [cfaussie] CFFILEUPLOAD in an Ajax call > > > > What's the error? > > > > I'm not overly familiar with the upload thingy, but you might need to use > CFAJAXIMPORT in your main page... > > Sent from my iPhone > > > On 03/02/2011, at 12:39, "Steve Onnis" <st...@cfcentral.com.au> wrote: > > I am trying to load up the CFFILEUPLOAD panel inside an ajax window but it > doesn’t seem to be working. Is there a function or something you need to call > manually? I am guessing there is an window.onLoad javascript method that gets > run somewhere to embed the flash stuff for the UI component? > > > > Steve > > > > > > > ======= > Email scanned by PC Tools - No viruses or spyware found. > (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.16820) > http://www.pctools.com > ======= > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to cfaussie@googlegroups.com. > To unsubscribe from this group, send email to > cfaussie+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to cfaussie@googlegroups.com. > To unsubscribe from this group, send email to > cfaussie+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > > > > > > ======= > Email scanned by PC Tools - No viruses or spyware found. > (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.16820) > http://www.pctools.com > ======= > > > > > > > ======= > Email scanned by PC Tools - No viruses or spyware found. > (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.16820) > http://www.pctools.com > ======= > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to cfaussie@googlegroups.com. > To unsubscribe from this group, send email to > cfaussie+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > > > > > > ======= > Email scanned by PC Tools - No viruses or spyware found. > (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.16820) > http://www.pctools.com > ======= > > > > > > > ======= > Email scanned by PC Tools - No viruses or spyware found. > (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.16830) > http://www.pctools.com > ======= > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to cfaussie@googlegroups.com. > To unsubscribe from this group, send email to > cfaussie+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to cfaussie@googlegroups.com. > To unsubscribe from this group, send email to > cfaussie+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > > > > > > ======= > Email scanned by PC Tools - No viruses or spyware found. > (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.16830) > http://www.pctools.com > ======= > > > > > > > ======= > Email scanned by PC Tools - No viruses or spyware found. > (Email Guard: 7.0.0.21, Virus/Spyware Database: 6.16830) > http://www.pctools.com > ======= > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to cfaussie@googlegroups.com. > To unsubscribe from this group, send email to > cfaussie+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to cfaussie@googlegroups.com. > To unsubscribe from this group, send email to > cfaussie+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.