anthony
Member since Mar 19, 2009
- Profile: /members/3120-anthony.htm
- Comments: 20
Recent Blog Comments By anthony
-
Ask Ben: Overriding Core jQuery Methods
Posted on Jul 1, 2009 at 10:31 AM
That's pretty cool. You can even take it a step further and just use a copy of the original jQuery function object to be able to replace multiple functions all at once. I borrowed the clone function from here, http://my.opera.com/GreyWyvern/blog/show.dml/1725165. Then I used it to make a copy o... read more »
-
Date Addition Using CreateTimeSpan() Creates A Numeric Date
Posted on May 19, 2009 at 11:09 AM
@Ben, I guess using createtimespan makes more sense if you want to add something like 1 hour and 5 minutes.... read more »
-
Date Addition Using CreateTimeSpan() Creates A Numeric Date
Posted on May 19, 2009 at 10:20 AM
Why not just use dateadd('n',5'now())? to adjust your date. Then you don't have to worry about numeric dates?... read more »
-
Preventing Form Caching With Javascript And jQuery
Posted on May 8, 2009 at 12:42 PM
I tried it with and without and I get the same results as Martin. What version of FF are you using?... read more »
-
jQuery Comments() Plug-in To Access HTML Comments For DOM Templating
Posted on Apr 14, 2009 at 10:16 PM
Cool idea. I haven't thought of a need for it yet, but you could use this method for holding data on the page as well. You could put json in your comments, then do an eval(jComments.html()) to get the object.... read more »
-
Ability To Leverage ColdFusion Bug Will Mean Errors Later
Posted on Apr 7, 2009 at 3:01 PM
CF seems to have screwed up the expectations of what should happen with implicit structs. I tried testing what would happen if I insert implicit structs into an array with an incrementor, but that seems to yield some strange results as well. Didn't test with implicit arrays, but I'm assuming the r... read more »
-
Exploring Mixins And ColdFusion Components
Posted on Apr 1, 2009 at 5:17 PM
I'm shocked that you can cfinclude a page that's just a function. I thought it would throw some sort of nesting error for having a function in a function.... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 5:58 PM
@Ezra I didn't mean in another frame, but your response answers my question anyway. So the frames are only queued if the requested file are the same. I'm out of ideas now.... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 5:30 PM
@Ezra And you're saying the requests are queued up in firefox? I wonder if frames are blocking tags, similar to script tags. The pipelining is mostly for downloading images, css and other assets at the same time, however script tags block all other downloading and queue everything until it is donw... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 5:24 PM
@Marc, I dont think we want to take cookie handling out of the equation. Tools like Firebug or livehttpheaders for firefox or Fiddler for IE work great for inspecting http information. Not sure if there is a way to see that info in Chrome though.... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 4:27 PM
@Ezra, This is a tricky one. How many sessions are being initialized? There should be 2 sessions, 1 for each frame right? Are there also 2 timeouts?... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 4:06 PM
@Ray I dont think that locking will even fix this mess. If the 2 requests are coming in as different sessions, locking the session scope in the cfm will lock 2 different session scopes. It looks to me as though the only solution is your solution of loading a page before the frames or changing the ... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 3:42 PM
@Ray I don't know if this is really a bug. This is why we should be locking session scope. By locking, you can be sure that even if onSessionStart hasn't finished, your request can wait for it to finish. I do agree that one should improve the performance of their site instead of making the end ... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 3:22 PM
@Ezra If you hit the page with no cookies, you should get 2 different sessions. It's that darn race condition. The first frame to return sets a session cookie, but before it returns the second frame should have made a request. The second request is happening without the session cookies. If you ... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 12:16 PM
The problem isn't that one frame is expected to load before another, it's that if both are running, the session value before the sleep and after the sleep could be different within the same frame.... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 11:28 AM
@Ben The example in your blog post is a good example of when locking might be necessary. But instead of placing the lock around your session variables, you place it in the onRequestStart. If the framed cfm wrote to the session variables then displayed, you would have race conditions in which a fr... read more »
-
ColdFusion Session Management And Asynchronous Page Requests
Posted on Mar 20, 2009 at 10:41 AM
@Ben I don't think locking is overused. Since you are getting these errors, wouldn't that lead you to believe that you are underusing locking?... read more »
-
ColdFusion SESSION Is Always Created Even If OnSessionStart() Fails
Posted on Mar 20, 2009 at 10:31 AM
Sorry. I should read before speaking.... read more »
-
ColdFusion SESSION Is Always Created Even If OnSessionStart() Fails
Posted on Mar 20, 2009 at 10:10 AM
Shouldn't the page containing the frames call onSessionStart before the frame loads? The frame wouldn't make it's request until the page containing has flushed it's content to the browser, at which point onSessionStart should have already finished.... read more »
-
ColdFusion SESSION Is Always Created Even If OnSessionStart() Fails
Posted on Mar 19, 2009 at 11:23 AM
Shouldn't you have then gotten emails for the onSessionStart failing? That would have made the "user is undefined" error easier to figure out.... read more »