[cfaussie] Re: How to create a popup window after some Cf processing
Mike, I use the dojo framework and that sort of thing becomes extremely easy to do. The thing you need to do is something like this. Function previewClicked() { // Send info back to the server and wait for a response (Ajax is best here //If succesfull open the window //otherwise display an error message } With dojo I would do this Function previewClick() { var x = new dojo.io.FormBind({ mimetype: 'text/text', formNode: 'FormName', load: function(load, data, e) { // When we reach here the process checks for valid // data and process the required action } }); x.onSubmit = function(form) { return true; } } HTH Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Kear Sent: Monday, 23 October 2006 9:04 AM To: cfaussie@googlegroups.com Subject: [cfaussie] How to create a popup window after some Cf processing I know how to create a popup window from a button or a link, but i want to create a preview window for my CMS - when the user clicks Preview, there has to be some processing done on the form data, and only after it's successfully processed, does the popup window appear, incorporating the processed data. What i'm kind of looking for is a CFLOCATION kind of action, with a popup instead of taking the current window to the new location. that way the CFLOCATION will popup the preview page, while still keeping the existing page with the form intact. Anyone know how to do that? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: How to create a popup window after some Cf processing
Froman image / button onclick=window.open('mylocation.cfm'); ?? Or on a new page body onload=window.open('mylocation.cfm'); is that the sort of thing your looking for? -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Kear Sent: Monday, 23 October 2006 9:04 AM To: cfaussie@googlegroups.com Subject: [cfaussie] How to create a popup window after some Cf processing I know how to create a popup window from a button or a link, but i want to create a preview window for my CMS - when the user clicks Preview, there has to be some processing done on the form data, and only after it's successfully processed, does the popup window appear, incorporating the processed data. What i'm kind of looking for is a CFLOCATION kind of action, with a popup instead of taking the current window to the new location. that way the CFLOCATION will popup the preview page, while still keeping the existing page with the form intact. Anyone know how to do that? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: How to create a popup window after some Cf processing
Sounds like you want ajax functionality. The way to do this that takes the least amount of time and preperation is to add a hidden iframe to the page, then target the form at that iframe. The cfm processes the url parameters and outputs _javascript_ that opens the popup. If this is going to be an ongoing sort of requirement, you may want to think about using a framework (e.g. I use jQuery) to simplify the work.Blair On 10/23/06, Mike Kear [EMAIL PROTECTED] wrote: Thanks Rod,I think i'm trying to make it too complicated for myself. I wastrying to do my normal style of processing the form in the same page,THEN going to the new location.But if i pass the form struct to the popup and process it there, that would achieve the same thing I think.It's the updating and other processing of the form dataPRIOR todisplaying the popup that's vexing me.CheersMIke On 10/23/06, Rod Higgins [EMAIL PROTECTED] wrote: Froman image / button ?? Or on a new page body window.open('mylocation.cfm'); is that the sort of thing your looking for? -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Mike Kear Sent: Monday, 23 October 2006 9:04 AM To: cfaussie@googlegroups.com Subject: [cfaussie] How to create a popup window after some Cf processing I know how to create a popup window from a button or a link, but i want to create a preview window for my CMS - when the user clicks Preview, there has to be some processing done on the form data,and only after it's successfully processed, does the popup window appear, incorporating the processed data. What i'm kind of looking for is a CFLOCATION kind of action, with a popup instead of taking the current window to the new location. that way the CFLOCATION will popup the preview page, while still keeping the existing page with the form intact. Anyone know how to do that? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month --CheersMike KearWindsor, NSW, Australia Adobe Certified Advanced ColdFusion DeveloperAFP Webworkshttp://afpwebworks.comColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] How to create a popup window after some Cf processing
I know how to create a popup window from a button or a link, but i want to create a preview window for my CMS - when the user clicks Preview, there has to be some processing done on the form data, and only after it's successfully processed, does the popup window appear, incorporating the processed data. What i'm kind of looking for is a CFLOCATION kind of action, with a popup instead of taking the current window to the new location. that way the CFLOCATION will popup the preview page, while still keeping the existing page with the form intact. Anyone know how to do that? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: How to create a popup window after some Cf processing
Can you use URL vars instead of forms vars in your preview function? function openPopupScreen() { // opens popup window without all the toolbars menu etc var window; var uniquename = Math.floor(Math.random()*100); uniquename = uniquename.toString(); loginwindow = window.open(somepage.cfm?varname=+document.myform.element.value,uniquename, directories=no, status=yes, kiosk=no, fullscreen=no, location=no, scrollbars=1, resizable=1,alwaysRaised=yes, left=50, top=50,height=500,width=690); window.focus(); } [EMAIL PROTECTED] 23/10/2006 9:04:29 am I know how to create a popup window from a button or a link, but i want to create a preview window for my CMS - when the user clicks Preview, there has to be some processing done on the form data, and only after it's successfully processed, does the popup window appear, incorporating the processed data. What i'm kind of looking for is a CFLOCATION kind of action, with a popup instead of taking the current window to the new location. that way the CFLOCATION will popup the preview page, while still keeping the existing page with the form intact. Anyone know how to do that? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: How to create a popup window after some Cf processing
Thanks Rod, I think i'm trying to make it too complicated for myself. I was trying to do my normal style of processing the form in the same page, THEN going to the new location. But if i pass the form struct to the popup and process it there, that would achieve the same thing I think. It's the updating and other processing of the form data PRIOR to displaying the popup that's vexing me. Cheers MIke On 10/23/06, Rod Higgins [EMAIL PROTECTED] wrote: Froman image / button onclick=window.open('mylocation.cfm'); ?? Or on a new page body onload=window.open('mylocation.cfm'); is that the sort of thing your looking for? -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Kear Sent: Monday, 23 October 2006 9:04 AM To: cfaussie@googlegroups.com Subject: [cfaussie] How to create a popup window after some Cf processing I know how to create a popup window from a button or a link, but i want to create a preview window for my CMS - when the user clicks Preview, there has to be some processing done on the form data, and only after it's successfully processed, does the popup window appear, incorporating the processed data. What i'm kind of looking for is a CFLOCATION kind of action, with a popup instead of taking the current window to the new location. that way the CFLOCATION will popup the preview page, while still keeping the existing page with the form intact. Anyone know how to do that? -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] maximum length of CGI.query_string
does any one know if ColdFusion has a maximum size limit on a cgi.query_string? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---