Re: Coldfusion XML Case Sensitivity
Also, take a look at this if you are needing to manage xml docs in any way: http://betterxml.riaforge.org/ It lets you do use XPath for CRUD operations on XML which can speed things up and simplifies code, e.g. to delete all comments from an xml file: cfinvoke component=BetterXML_Editor method=init src=#myFile# returnVariable=xmlFile/ cfscript xmlFile.Delete('//comment()'); xmlFile.Write(myFile); /cfscript Dominic On 09/11/2007, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 08 Nov 2007, Richard White wrote: MyDoc.rows.XmlChildren[1].XmlAttributes.id If you think about it, this works the same as structs - struct.id === struct[ID]. -- Tom Chiverton Helping to augmentatively monetize internet applications on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293066 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: changing a css file via coldfusion
A simple solution: store the name of the preffered style sheet for the user (db/cookie etc) and just do: LINK href=#usersCSSChoice# rel=stylesheet type=text/css I don't see why you should want to do this client side as it is very minimal processing for the server. Why alienate the users who don't have javascript enabled (they don't always have a choice..)? Dominic On 09/11/2007, John P [EMAIL PROTECTED] wrote: Excellent, thank you all for the suggestions. It makes sense now. I think I'll experiment with both methods just to learn the process. Sorry about the double post of the question, I couldn't find my initial submission and thought it didn't post. As always you're very helpful, thanks! ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293067 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Session Timeout
Hi, Just wondering what you guys think is the best way to implement and handle session timeouts. i have seen some people putting it in the cflogin tag and others doing it in other ways. i would appreciate a very simple example or a link to a site that provides the simple example, i know its probably me but i couldnt find it in coldfusion livedocs thanks very much Richard ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293069 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Coldfusion XML Case Sensitivity
Hi Dominic, Thanks for this, this looks very interested. Thanks again Richard ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293068 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Version Controll with IIS
Hello Chaps, I know many of you are running SubVersion for your version control on your Apache based servers, and to be honest I think its about time I got up and running with some proper source control, the number of Projects I have 'on the go' is growing and I need to tidy up my management a little bit before it start getting out of hand. After spending some time looking around it seems as if SubVersion only runs on Apache, which is fair enough I supose, however, I'm currently running on IIS6. I could upgrade or swap the web server over to Apache, but to be honest this is not in the slightest bit desirable as I dont want to play with my production environment like that. Is there a decent source control solution available for IIS? after hunting around nothing jumped out at me. Can I perhaps run Apache alongside IIS purely for the version control access? I'd really appreciate some pointers. If so, then how? I've also got a couple of questions about the way in which version control works. Currently I develop on my local network (I have a test server setup here). Then, once I'm happy that the code is running neatly I SFTP a copy up to the server and it becomes live on production. Does VersionControl replace that requirement for SFTP? From what I've seen of other SVN and CVS servers, when I want to start working on the code I 'check out' a copy into my Eclipse, Then work on it. How do I then republish my changes to the server? Is that somthing that SVN and CVS handle for me? I'm really after some tips and tricks on how to manage my project efficiently with Eclipse and source control. Thanks for your advice guys, I really appreciate it. Rob ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293070 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Version Controll with IIS
To answer your questions... 1. It is optional to run SVN on apache. Some people do it for the security control you have and if you are running it on the web it gives you true HTTP access. 2. Subversion has a server built into it that I prefer to use since my requirements are basic. It probably will give you exactly what you want in this case. To access your repository you just use svn://ipaddress/repo/trunk or however you have it setup. As far as your deploy process that will probably remain the same except all you will do is export a copy of the code to a folder and then SFTP that up to the server. You can use ANT to automate that but I would suggest tackling SVN first then move into ANT. oh and yes you can run IIS and apache on the same server, they just need to be on a separate port. But if you are going to do that might as well just do the SVNserve that is built in. Here are some resources: http://coldfusionpodcast.com/index.cfm/2006/8/28/31 http://www.codeodor.com/index.cfm/2007/2/27/Setting-up-SVN/1010 http://carehart.org/blog/client/index.cfm/2006/7/12/subversion_resources Hope all that helps, J.J. On 11/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello Chaps, I know many of you are running SubVersion for your version control on your Apache based servers, and to be honest I think its about time I got up and running with some proper source control, the number of Projects I have 'on the go' is growing and I need to tidy up my management a little bit before it start getting out of hand. After spending some time looking around it seems as if SubVersion only runs on Apache, which is fair enough I supose, however, I'm currently running on IIS6. I could upgrade or swap the web server over to Apache, but to be honest this is not in the slightest bit desirable as I dont want to play with my production environment like that. Is there a decent source control solution available for IIS? after hunting around nothing jumped out at me. Can I perhaps run Apache alongside IIS purely for the version control access? I'd really appreciate some pointers. If so, then how? I've also got a couple of questions about the way in which version control works. Currently I develop on my local network (I have a test server setup here). Then, once I'm happy that the code is running neatly I SFTP a copy up to the server and it becomes live on production. Does VersionControl replace that requirement for SFTP? From what I've seen of other SVN and CVS servers, when I want to start working on the code I 'check out' a copy into my Eclipse, Then work on it. How do I then republish my changes to the server? Is that somthing that SVN and CVS handle for me? I'm really after some tips and tricks on how to manage my project efficiently with Eclipse and source control. Thanks for your advice guys, I really appreciate it. Rob ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293071 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfgrid showing number of records
I am just playing around with cfgrid and I have a paging example setup just great. The only thing is my client would like to see stats for where they are paging such as Showing 1-10 of 2000 records. In all of the extjs examples this is possible I am just wondering if there is anyway for me to accomplish this. -- Thank You Dan ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293072 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Version Controll with IIS
I know many of you are running SubVersion for your version control on your Apache based servers, and to be honest I think its about time I got up and running with some proper source control, the number of Projects I have 'on the go' is growing and I need to tidy up my management a little bit before it start getting out of hand. You can run SVN as a service on its own rather than run it through a web server if you want. That's what we do because we only run Apache on the developers laptops. We run IIS on the server we use as the SVN repository because it doubles as the staging/testing before setting code live. Paul ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293073 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Version Controll with IIS
Subversion just fine on windows with IIS... Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, November 10, 2007 7:51 AM To: CF-Talk Subject: Version Controll with IIS Hello Chaps, I know many of you are running SubVersion for your version control on your Apache based servers, and to be honest I think its about time I got up and running with some proper source control, the number of Projects I have 'on the go' is growing and I need to tidy up my management a little bit before it start getting out of hand. After spending some time looking around it seems as if SubVersion only runs on Apache, which is fair enough I supose, however, I'm currently running on IIS6. I could upgrade or swap the web server over to Apache, but to be honest this is not in the slightest bit desirable as I dont want to play with my production environment like that. Is there a decent source control solution available for IIS? after hunting around nothing jumped out at me. Can I perhaps run Apache alongside IIS purely for the version control access? I'd really appreciate some pointers. If so, then how? I've also got a couple of questions about the way in which version control works. Currently I develop on my local network (I have a test server setup here). Then, once I'm happy that the code is running neatly I SFTP a copy up to the server and it becomes live on production. Does VersionControl replace that requirement for SFTP? From what I've seen of other SVN and CVS servers, when I want to start working on the code I 'check out' a copy into my Eclipse, Then work on it. How do I then republish my changes to the server? Is that somthing that SVN and CVS handle for me? I'm really after some tips and tricks on how to manage my project efficiently with Eclipse and source control. Thanks for your advice guys, I really appreciate it. Rob ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293074 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Version Controll with IIS
I use the svnserver as well...I like having the separate protocol to access the repositories than just using HTML. I agree that there is no difference between using IIS and Apache as far as svn is concerned. Eric -Original Message- From: J.J. Merrick [mailto:[EMAIL PROTECTED] Sent: Saturday, November 10, 2007 8:39 AM To: CF-Talk Subject: Re: Version Controll with IIS To answer your questions... 1. It is optional to run SVN on apache. Some people do it for the security control you have and if you are running it on the web it gives you true HTTP access. 2. Subversion has a server built into it that I prefer to use since my requirements are basic. It probably will give you exactly what you want in this case. To access your repository you just use svn://ipaddress/repo/trunk or however you have it setup. As far as your deploy process that will probably remain the same except all you will do is export a copy of the code to a folder and then SFTP that up to the server. You can use ANT to automate that but I would suggest tackling SVN first then move into ANT. oh and yes you can run IIS and apache on the same server, they just need to be on a separate port. But if you are going to do that might as well just do the SVNserve that is built in. Here are some resources: http://coldfusionpodcast.com/index.cfm/2006/8/28/31 http://www.codeodor.com/index.cfm/2007/2/27/Setting-up-SVN/1010 http://carehart.org/blog/client/index.cfm/2006/7/12/subversion_resources Hope all that helps, J.J. On 11/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello Chaps, I know many of you are running SubVersion for your version control on your Apache based servers, and to be honest I think its about time I got up and running with some proper source control, the number of Projects I have 'on the go' is growing and I need to tidy up my management a little bit before it start getting out of hand. After spending some time looking around it seems as if SubVersion only runs on Apache, which is fair enough I supose, however, I'm currently running on IIS6. I could upgrade or swap the web server over to Apache, but to be honest this is not in the slightest bit desirable as I dont want to play with my production environment like that. Is there a decent source control solution available for IIS? after hunting around nothing jumped out at me. Can I perhaps run Apache alongside IIS purely for the version control access? I'd really appreciate some pointers. If so, then how? I've also got a couple of questions about the way in which version control works. Currently I develop on my local network (I have a test server setup here). Then, once I'm happy that the code is running neatly I SFTP a copy up to the server and it becomes live on production. Does VersionControl replace that requirement for SFTP? From what I've seen of other SVN and CVS servers, when I want to start working on the code I 'check out' a copy into my Eclipse, Then work on it. How do I then republish my changes to the server? Is that somthing that SVN and CVS handle for me? I'm really after some tips and tricks on how to manage my project efficiently with Eclipse and source control. Thanks for your advice guys, I really appreciate it. Rob ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293075 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Javascript enabled
Hi, before we set up the application.cfc to handle the login in of users we had an index page that was told the user that they didn't have javascript enabled. at the top p fhte form we had code in javascript that redirected them to the login page. therefore if javascript was enabled it would direct them to the login, and if it wasnt it displayed the error to them saying that they didnt have javascript enabled however, we have now setup the application.cfc to handle the login of the client. it works in the same way as the coldfusion livedocs explains ... if a user is not logged it it includes the login.cfm page. so now we need the application.cfc to check whether a client has javascript enabled but we cannot figure out how to do this. as of course the application.cfc is on the server but it needs to go to the client to find out if javascript is enabled and then come back to the server. we would appreciate some help on how you guys to do your checks when you have the application.cfc handling the logging in of users. We would like the application.cfc onrequeststart method to check this all the time so that if the user turns of javascript while using the software it will inform them straight away that they cannot continue until they turn it back on thanks very much for any help Richard ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293076 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfgrid showing number of records
if you want a more robust grid with great manageability and features, it is definitely worth taking a look into dhtmlxgrid from www.dhtmlx.com. it also has paging on this grid we found that cfgrid is too early on in its lifecycle to be flexible enough for what we need. Don't know much about cfgrid but this grid is worth a look! ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293077 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Javascript enabled
You could set up your login page like... div id=noJSMessage style=display:block;You need javascript/div div id=theForm style=display:none;form name=login... etc...,/form/div Then run some js that changes the display for each. script document.getElementById('theJSMessage').style.display='none'; document.getElementById('theForm').style.display='block'; /script If the user doesn't have JS, the login page is a message that says You need JS. If they DO have JS, the login page hides the no JS message and displays the form but either way... application.cfc includes the login.cfm as usual. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293078 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Javascript enabled
we would appreciate some help on how you guys to do your checks when you have the application.cfc handling the logging in of users. We would like the application.cfc onrequeststart method to check this all the time so that if the user turns of javascript while using the software it will inform them straight away that they cannot continue until they turn it back on The best you can do is set up an ajax call that sets a session variable like session.jsenabled = true. Default it to false. If the ajax call works (javascript is enabled) set the session variable to true. From the second request on, the server will be aware via the session.jsenabled variable if the user has js enabled or not. But, this does not quite get you where you need to be because a) it only helps from the second request on, and b) it does not check if the user has turned off JS during the session. However, it may work well enough for your needs -- it's extremely rare that someone turns js on or off in the middle of a session, or ever for that matter. Generally, it's either on or off. -- Josh - Original Message - From: Richard White [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Saturday, November 10, 2007 9:20 AM Subject: Javascript enabled Hi, before we set up the application.cfc to handle the login in of users we had an index page that was told the user that they didn't have javascript enabled. at the top p fhte form we had code in javascript that redirected them to the login page. therefore if javascript was enabled it would direct them to the login, and if it wasnt it displayed the error to them saying that they didnt have javascript enabled however, we have now setup the application.cfc to handle the login of the client. it works in the same way as the coldfusion livedocs explains ... if a user is not logged it it includes the login.cfm page. so now we need the application.cfc to check whether a client has javascript enabled but we cannot figure out how to do this. as of course the application.cfc is on the server but it needs to go to the client to find out if javascript is enabled and then come back to the server. we would appreciate some help on how you guys to do your checks when you have the application.cfc handling the logging in of users. We would like the application.cfc onrequeststart method to check this all the time so that if the user turns of javascript while using the software it will inform them straight away that they cannot continue until they turn it back on thanks very much for any help Richard ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293079 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Javascript enabled
On Nov 10, 2007 2:32 PM, Josh Nathanson [EMAIL PROTECTED] wrote: we would appreciate some help on how you guys to do your checks when you have the application.cfc handling the logging in of users. We would like the application.cfc onrequeststart method to check this all the time so that if the user turns of javascript while using the software it will inform them straight away that they cannot continue until they turn it back on One of my co-workers showed us one of his login forms, and we were like duh... Just wrap the form in a cfsavecontent tag and use javascript to display the form. cfoutput !--- Save form as cf variable so we can display with js --- cfsavecontent variable=sFormContent cfform action= method=post scriptsrc= cfinput type=text name=fieldName /cfform /cfsavecontent !--- Here we display the form with js and also a noscript message --- div style=margin:10px 0px 0px 25px; script type=text/javascript language=javascript!-- document.write('#JSStringFormat(sFormContent)#'); //-- /script noscript div style=padding:8px; background-color:##CC;color:red; pYou must enable javascript in order to submit use the form on this page.br / Enable javascript and refresh this page to continue./p /div /noscript /div /cfoutput ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293080 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
ANN: http://coldfusioncommunity.org/
Check out the new coldfusion community website: http://coldfusioncommunity.org/ -- Nick Tong web: http://talkwebsolutions.co.uk blog: http://succor.co.uk f..works:http://cfframeworks.com short urls: http://wapurl.co.uk green link: http://wapurl.co.uk/?4Z2YDLX ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293081 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Javascript enabled
Hi Casey... Wow, what a simple but very clever solution. very impressed. thanks :) thanks for all your replies, i was just wondering josh.. i was interested in what you said about the ajax call, is this something simple to do... if so could you provide a short example of the ajax call? thanks again :) ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293082 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Javascript enabled
thanks for all your replies, i was just wondering josh.. i was interested in what you said about the ajax call, is this something simple to do... if so could you provide a short example of the ajax call? Sure, I use jQuery and it looks like this - keep in mind I have already cfparam'd session.jsenabled = false, and included the jQuery source file before this. I think the other people who posted might have better solutions for your particular implementation, but this is a good technique to know about nonetheless. cfif not session.jsenabled cfoutput script type=text/javascript $(document).ready(function() { $.get('shop/includes/setjsenabled.cfm'); // this is the ajax call }); /cfoutput /script /cfif Then setjsenabled.cfm is one line: cfset session.jsenabled = true onSessionEnd then logs the value of session.jsenabled into a db table when the session ends. This way we can easily see what percentage of our visitors have js enabled, because session.jsenabled will never be set to true if the user does not have JS enabled. -- Josh - Original Message - From: Richard White [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Saturday, November 10, 2007 4:19 PM Subject: Re: Javascript enabled Hi Casey... Wow, what a simple but very clever solution. very impressed. thanks :) thanks for all your replies, i was just wondering josh.. i was interested in what you said about the ajax call, is this something simple to do... if so could you provide a short example of the ajax call? thanks again :) ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293083 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Javascript enabled
My vote goes to Bobby's solution...elegant and simple There is a typo in the example though change: document.getElementById('theJSMessage').style.display='none'; to: document.getElementById('noJSMessage').style.display='none'; Andrew. You could set up your login page like... div id=noJSMessage style=display:block;You need javascript/div div id=theForm style=display:none;form name=login... etc...,/form/div Then run some js that changes the display for each. script document.getElementById('theJSMessage').style.display='none'; document.getElementById('theForm').style.display='block'; /script If the user doesn't have JS, the login page is a message that says You need JS. If they DO have JS, the login page hides the no JS message and displays the form but either way... application.cfc includes the login.cfm as usual. .:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293084 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4