Just a quick note to say I released a minor update to Lighthouse Pro. This last update has a few changes, but the main one is that if you are editing an issue and let your session timeout, after you login your changes are preserved. So if you had entered some lengthy notes, timed out, hit Save, when you login, you changes to the issue are preserved and stored.
There are a few ways you can do this, but here is how I did it. Also note I was only only concerned about people timing out in an issue edit. First off, in login.cfm, I look for a form post from the issue editor:
2 <cfset session.issueform = duplicate(form)>
3 </cfif>
Then back in view.cfm, the file that handles editing issues, I simply added:
2 <cfset structAppend(form, session.issueform)>
3 <cfset structDelete(session, "issueform")>
4 </cfif>
Note that I clear out the session data. This is important so as to not keep restoring the edits for future editing.
Comment 1 written by Gareth on 18 February 2008, at 7:35 AM
Comment 2 written by Chad on 18 February 2008, at 8:45 AM
How does the form variable still exists when you get sent to the login screen? If you were to do a cflocation and send them to the login page the form variable would not exist. Is login displayed in the application.cfm file if the user's session is old?
Comment 3 written by Raymond Camden on 18 February 2008, at 8:47 AM
Comment 4 written by Gareth on 20 February 2008, at 10:38 AM
I added this code to our server (removed the old code and put the new files up on the server). Everything works great except for the "Reports" page. It works nicely in Firefox, but IE is throwing JS errors. I would troubleshoot it myself, but I figured there may be something quick and easy I'm missing. The 2 stats.cfm pages look to be exactly the same, so I'm not sure what changed from the last version to this one. The errors received are:
Line: 98 (and 117, 136, 155, 174)
Char: 1
Error: Object Expected
Code: 0
URL: http://myurl/stats.cfm
Any ideas?
Thanks.
Comment 5 written by Raymond Camden on 20 February 2008, at 10:40 AM
Comment 6 written by Gareth on 20 February 2008, at 12:37 PM
Comment 7 written by Raymond Camden on 20 February 2008, at 12:42 PM
Comment 8 written by Gareth on 20 February 2008, at 12:44 PM
Comment 9 written by Gareth on 20 February 2008, at 1:25 PM
Comment 10 written by Jeff Gladnick on 27 November 2009, at 10:14 PM
Everything else gets saved except the attachment.... any ideas?
Comment 11 written by Raymond Camden on 28 November 2009, at 10:12 AM
Comment 12 written by Jeff Gladnick on 28 November 2009, at 12:17 PM
I suppose i could just allow the images to be uploaded and stored in a temp file, and then put some info in the session to move/rename the files after the form was ultimately submitted.
However that sounds a bit complex, since it would have to handle multiple forms, and I'd probably also have to create some cleanup functionality since some people inevitably would not finish their forms.
Comment 13 written by Raymond Camden on 28 November 2009, at 4:03 PM
It's definitely possible, just non-trivial.
[Add Comment] [Subscribe to Comments]