Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Paul Kukiel
Impossible that it works as you describe. If anyone runs this code they will simple see a session variable with a string of js text. cfset session.screenwidth = scriptdocument.write(screen.width);/script / cfdump var=#session# / You would have to do it with ajax as suggested, or use js to set

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread The Dude
Have you actually tried it? Impossible that it works as you describe. If anyone runs this code they will simple see a session variable with a string of js text. cfset session.screenwidth = scriptdocument.write(screen.width);/script / cfdump var=#session# / You would have to do it with ajax as

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Paul Kukiel
Yes. On Sun, Dec 23, 2012 at 7:06 PM, The Dude exel...@gmail.com wrote: Have you actually tried it? Impossible that it works as you describe. If anyone runs this code they will simple see a session variable with a string of js text. cfset session.screenwidth =

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Kevin Pepperman
What is this virtual concurrency between server and client call stuff? I think I missed that in the instruction manual. Paul is correct, that output requires a DOM to run, CF is just seeing a text string. View source will also show you the output JavaScript. It is possible to pass those

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Andrew Scott
We don't need too... As Paul and the others have stated, that code sets a variable with the text between the quotes. Now if this is working for you, then maybe you can explain where you are overriding these variables using Ajax. Because as it stands, the only thing you will see when you dump the

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread The Dude
Checkout this test page link: http://exelstudio.com/screensizetest.cfm Here's the code: cfset screenwidth = scriptdocument.write(screen.width);/script cfset screenheight = scriptdocument.write(screen.height);/script cfset availWidth =

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Kevin Pepperman
Just view the source, it is the JavaScript strings being parsed by the browser, CF has no Idea what the variables are. On Sun, Dec 23, 2012 at 3:24 AM, The Dude exel...@gmail.com wrote: Checkout this test page link: http://exelstudio.com/screensizetest.cfm Here's the code: cfset

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread The Dude
I agree technically it should not work as one side is client, the other server, but on my test page it does present the js result value instead of the text string. Cfdump shows text strings, but within cfoutput tags seems to work showing the js results. A fluke :) I tried the form post

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread The Dude
Dang, you're right, I didn't look at the source, just the page. Browser has it, cf doesn't. So ajax post is prob best solution, form post test works but not ideal. Just view the source, it is the JavaScript strings being parsed by the browser, CF has no Idea what the variables are.

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Kevin Pepperman
No, it is NOT showing the js result value instead of the text string, nor is this a fluke. CF is outputting the exact same string you set them to, the DOM in the browser is parsing the JavaScript so you see the variables. As I mentioned, if you view the source of the HTML you will see those

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread The Dude
Agreed, I saw the results on the page but completely forgot to check the actual page source. Any idea on the best way to ajax post to cf in jquery? No, it is NOT showing the js result value instead of the text string, nor is this a fluke. CF is outputting the exact same string you set them to,

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Andrew Scott
Ok I see what you're doing now, the reason it works on the browser is that your placing (Or technically speaking injection JS into the Dom) JavaScript into the requested page. That means when it displays it will run that JS, but for ColdFusion to actually know about this, you have to get

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Kevin Pepperman
Its just the basics, but I am falling asleep. myData= width= + screen.width+ height=+screen.height; $.ajax({ type: POST, url: ajax.cfc?method=myMethod, data: myData, success: function(){} }); On Sun, Dec 23, 2012 at 3:43 AM, The Dude exel...@gmail.com wrote: Agreed, I saw the results on the

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread The Dude
Yes, it runs and displays client side but useless for any responsive conditional logic until that info is sent to cf. Will figure out how to get the values in jquery and ajax post to cf. I've been using Zurb Foundation as its really a quite pleasant grid for responsive layouts. You can apply

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread The Dude
Thanks for the example Kevin, trying it out right now. Its just the basics, but I am falling asleep. myData= width= + screen.width+ height=+screen.height; $.ajax({ type: POST, url: ajax.cfc?method=myMethod, data: myData, success: function(){} });

Re: Sqlexpress 2008 and cf 10

2012-12-23 Thread Russ Michaels
The fact that you are getting invalid login means cf is connecting to sql despite u saying u triple xhecked the login, It is still wrong obviously. Delete the user and start again. Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com

Re: ACF8 server service fails to restart

2012-12-23 Thread Russ Michaels
Are u sure cf is not actually running, it seems it may be the service atatus which the only thing at fault here as the logs show it started.. Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF search engine On Dec 22, 2012

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread The Dude
Thanks guys for the jquery pointer, much appreciated. Got it working so the data is now in cfml via ajax. Page source got numbers vs string. Doh !! http://exelstudio.com/test5.cfm jquery ajax call: script type=text/javascript var theData= screenWidth= + screen.width+

Re: ACF8 server service fails to restart

2012-12-23 Thread Andrew Scott
Russ, the answer to that is it actually is but it is not. I have seen this behavior a lot on my development machines, and I can only think what it might be. To me what I think is happening is that one of the related services that ColdFusion uses, has ended up in a non responsive state, and

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Kevin Pepperman
Glad you worked it out. One thing you should do is make sure a session variable exists before using the session variables. When I first loaded the page I received an error, after I refreshed the error went away. You should cfparam the variables to a default first, otherwise they wont be set until

Re: ACF8 server service fails to restart

2012-12-23 Thread John M Bliss
Yes, I'm sure the service is not actually running. On Sun, Dec 23, 2012 at 4:38 AM, Russ Michaels r...@michaels.me.uk wrote: Are u sure cf is not actually running, it seems it may be the service atatus which the only thing at fault here as the logs show it started.. Regards Russ Michaels

Re: CF 9 Scheduled Task Not Sending Emails

2012-12-23 Thread Torrent Girl
Is there an application.cfm for cfc that is preventing the file from running? Like some websites I setup a login/password code in the application. cfm page. No page will run unless that code is happy that someone is logged in. Do I need a username and password on the task? I see a

Re: CF 9 Scheduled Task Not Sending Emails

2012-12-23 Thread Russ Michaels
Only if the file or folder is password protected by the os or htaccess, a scheduled task is the as you calling the url from your browser. If the oage requires any session variables etc then these obviously won't exist. Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML

Re: ACF8 server service fails to restart

2012-12-23 Thread Russ Michaels
Try also restarting iis and other.xf related services first. Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF search engine On Dec 23, 2012 12:34 PM, John M Bliss bliss.j...@gmail.com wrote: Yes, I'm sure the service is

Re: ArgoUML and CFC's

2012-12-23 Thread Armando Musto
I downloaded ArgoUML to create Class Diagram...I'd like to generate ArgoUML Class Diagram to CFC. There are no UML - CFC tools on the market right now. You *might* be able to save your UML as XMI and use an XMI - CFC converter. There was a prototype version of one of those floating around

Re: ArgoUML and CFC's

2012-12-23 Thread Armando Musto
I use StarUML now, have a code generator that creates CFCs. If your still looking for a tool that creates CFC from your UML, I found that it works great. Armando Hi all: I downloaded ArgoUML to create Class Diagram...I'd like to generate ArgoUML Class Diagram to CFC. Any help ? Regards,

Re: ACF8 server service fails to restart

2012-12-23 Thread John M Bliss
.xf related services? What are those? On Dec 23, 2012 8:55 AM, Russ Michaels r...@michaels.me.uk wrote: Try also restarting iis and other.xf related services first. Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF

Re: ACF8 server service fails to restart

2012-12-23 Thread Russ Michaels
if you look under windows services you will see several others next to coldfusion application server with the word coldfusion in front of them. ~| Order the Adobe Coldfusion Anthology now!

Re: ACF8 server service fails to restart

2012-12-23 Thread John M Bliss
Oh. Right. You wrote, .xf related. Didn't know what that meant. I'll try it... On Sun, Dec 23, 2012 at 3:55 PM, Russ Michaels r...@michaels.me.uk wrote: if you look under windows services you will see several others next to coldfusion application server with the word coldfusion in front of

Re: ACF8 server service fails to restart

2012-12-23 Thread Russ Michaels
typo, I was on my phone.. should have just said related On Sun, Dec 23, 2012 at 9:58 PM, John M Bliss bliss.j...@gmail.com wrote: Oh. Right. You wrote, .xf related. Didn't know what that meant. I'll try it... On Sun, Dec 23, 2012 at 3:55 PM, Russ Michaels r...@michaels.me.uk wrote:

Re: ACF8 server service fails to restart

2012-12-23 Thread John M Bliss
No worries. Thanks for the advice. On Sun, Dec 23, 2012 at 4:02 PM, Russ Michaels r...@michaels.me.uk wrote: typo, I was on my phone.. should have just said related On Sun, Dec 23, 2012 at 9:58 PM, John M Bliss bliss.j...@gmail.com wrote: Oh. Right. You wrote, .xf related. Didn't

Re: AJAX Issue

2012-12-23 Thread Bruce Sorge
Thanks for the Video Ray. It was very helpful for debugging another part of this site. Finally finished it though bug free and functions the way I want. Bruce On Dec 20, 2012, at 9:55 PM, Raymond Camden raymondcam...@gmail.com wrote: Here is a video demonstrating chrome dev tools:

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Claude Schnéegans
When I first loaded the page I received an error, after I refreshed the error went away. This method won't work either, because the Ajax function will be executed after the output of the page is already on client side. This is why you get an error at the first call. So you have to call the

Re:_Re:_URGENT_:_How_to_Detect_screen_resolution_in_COLDFUSION?

2012-12-23 Thread ian . chapman
Thanks for your email. I am currently out of the office until Wednesday 2nd January 2013. Our offices are closed for the Christmas and New Year Holidays. For immediate assistance please contact on the email and numbers below and one of the team will be in touch as soon as possible. For out of

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread The Dude
I put a refresh tag below the script within conditions. It works, but still not ideal. It seems there's no way to avoid the 2nd step either redirect or form post. cfif Not IsDefined('Session.Screensize.Width') script type=text/javascript var theData= screenWidth= + screen.width+

Importing multiple name and email addresses in a form text field

2012-12-23 Thread The Dude
Does anyone know of a good way to import multiple firstname, lastname, email from a form text field. Its for an email application for end users to enter multiple subscribers. i.e. form field content: John, Doe, j...@doe.com Mary, Doe, m...@doe.com Roofus, Doofus, roo...@doofus.com I'm using

Re: Importing multiple name and email addresses in a form text field

2012-12-23 Thread Russ Michaels
Its just a list of values so you can cfloop over them. Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF search engine On Dec 24, 2012 1:56 AM, The Dude exel...@gmail.com wrote: Does anyone know of a good way to import

Re: AJAX Issue

2012-12-23 Thread Raymond Camden
You are most welcome. On Sun, Dec 23, 2012 at 5:14 PM, Bruce Sorge sor...@gmail.com wrote: Thanks for the Video Ray. It was very helpful for debugging another part of this site. Finally finished it though bug free and functions the way I want. Bruce On Dec 20, 2012, at 9:55 PM, Raymond

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Kevin Pepperman
Add code in your Application.cfc onSessionStart() method, that makes sure the default session variables exist right when the session starts. You can also test for the session in onRequestStart() ,and call the onSessionStart() method if they don't exist. On Sun, Dec 23, 2012 at 8:51 PM, The

Re: Importing multiple name and email addresses in a form text field

2012-12-23 Thread The Dude
That's fairly straight forward to extract and handle the data. Only tricky bit is if the person entering the data doesn't put a comma at the end of a line. I may just stick with excel spreadsheet imports. Its just a list of values so you can cfloop over them. Regards Russ Michaels

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Claude Schnéegans
It seems there's no way to avoid the 2nd step either redirect or form post. The problem is not with using POST or GET, the problem is using Ajax. Ajax is good for many things, but not for this one. Just as you first attempt did, the Ajax call will be performed from client side, AFTER the

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread The Dude
Claude and Kevin, you are gentlemen and scholars. It worked with virtually negligible delay in the redirect. Its a workable solution for getting the screen vars and loading appropriate size jpg images on that basis for mobile. Thank you for your input. It seems there's no way to avoid the

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread Steve Durette
One thing you may want to consider is giving the user an option. Sometime the user doesn't want your mobile version even though they are mobile. I find sites all the time where I'm given a mobile website that doesn't work as well as the desktop version. Sometimes even when they give me the

Re: URGENT : How to Detect screen resolution in COLDFUSION?

2012-12-23 Thread .jonah
Good point. A simple unobtrusive way to do this is to provide a Desktop Version link in the footer of the mobile version which resets the session vars to desktop. Putting a popup or interstitial screen is pretty annoying in my pov and having a link in the footer is pretty common these days