[Lift] Re: collecting page load statistics for ajax requests
Okay... please open a ticket... I've got some ideas On Wed, Oct 14, 2009 at 9:11 AM, harryh wrote: > > > So, your callOnAjaxCompleteFunc will be called if any of the ajax > functions > > in the block are executed. > > That's certainly one way to go. I was thinking it might be nice to > modify the URL used for the ajax request though because then the > request can be logged in a standard way (whatever it is that jetty/ > tomcat/whatever server you are using is already doing) and parsed with > standard tools. > > callOnAjaxCompleteFunc could certainly create a log entry designed to > look like the above, but it might be a bit more work for the > developer. > > -harryh > > PS: Just so you know this isn't high priority or anything. Just a > random "might be nice" idea I had. > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: collecting page load statistics for ajax requests
> So, your callOnAjaxCompleteFunc will be called if any of the ajax functions > in the block are executed. That's certainly one way to go. I was thinking it might be nice to modify the URL used for the ajax request though because then the request can be logged in a standard way (whatever it is that jetty/ tomcat/whatever server you are using is already doing) and parsed with standard tools. callOnAjaxCompleteFunc could certainly create a log entry designed to look like the above, but it might be a bit more work for the developer. -harryh PS: Just so you know this isn't high priority or anything. Just a random "might be nice" idea I had. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: collecting page load statistics for ajax requests
Interesting feature. I'm thinking something like: collectAjaxStats(callOnAjaxCompleteFunc) { SHtml.ajaxCheckbox() } So, your callOnAjaxCompleteFunc will be called if any of the ajax functions in the block are executed. Sound reasonable? If so, please create a ticket On Tue, Oct 13, 2009 at 5:49 PM, harryh wrote: > > I'm collecting (so far at a very rudimentary level) page load time > statistics for my Lift based website so that I can identify (and then > fix!) slow loading pages. I've run into a couple places though where > I have slow loading ajax requests and it's difficult to track down > where these might be coming from as the URL is something like / > ajax_request/F45279353685625D/ > > Is there any way I can customize that guid? Perhaps add a prefix or > suffix so it was something like: > > /ajax_request/delete_foo/F45279353685625D/ > > ? > > If this is currently not possible, it might be a nice feature to > consider. > > -harryh > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---