To view how many users are currently connected to your Windows Web Server you can use the M$ Performance Monitor.
Run perfmon.
Right Click in the counter table and select 'Add Counters...'
Change Performance object to Web Service
Change counter to Current Connections.
You should now be able to see the number of users currently connected to your webserver. Save this Configuration by doing a save as.
Wednesday, September 26, 2007
Wednesday, September 12, 2007
How to force users to print using Spry
You can't actually force users to print but you can have the browser's print dialog displayed using a simple, properly placed JavaScript command. The JavaScript I'm referencing is "window.print()", which could be launched on submit if it weren't for the form validation which it will conflict with.
If you are using the Spry Framework to assist with form validation you can place the window.print() command in the Spry JavaScript file such as, SpryValidationSelect.js in the Spry.Widget.ValidationSelect.prototype.validate function immediately before the return true. This will cause the print dialog to display only if the input passes validation.
If you are using the Spry Framework to assist with form validation you can place the window.print() command in the Spry JavaScript file such as, SpryValidationSelect.js in the Spry.Widget.ValidationSelect.prototype.validate function immediately before the return true. This will cause the print dialog to display only if the input passes validation.
Subscribe to:
Posts (Atom)