Ticket #9 ( Closed )

Short Description Need user control of onLoad event
Entered By: PeteL When: 1998-04-29 05:21:55 Build: 1.3.7A
Categories Type: Suggestion   Department: Product   Category: HTML Generation
Description
Screensurfer uses onLoad to set focus on the input field where the host cursor is located. It should also set .select on that field. I would very much like (and need) the ability to add to the JS that is attached to that event in order to handle some frame focus problems I am having.
Append By: pete.longden@bcbsnca.com  When: 1998-04-29 06:38:50  New Status: Pending IE
Comment I did some testing, and it looks like JS happily accepts duplicate functions, using the last one it encounters when actually executing it. I used this knowledge to simply duplicate the setCursor function, adding my own stuff. This is at least a workaround, if not a solution. If you make changes to setCursor, though, I'll be stuck without knowing it. I also haven't totally tested it, although it doesn't appear to have broken anything.
Append By: bthorne@ieinc.com  When: 1998-04-29 09:02:13  New Status: Pending Customer
Comment That sounds risky. We will add code to setCursor, so that if a function "userLoadScript" exists, it gets called. This lets you add-in userLoadScript optionally in-between the <HEAD> and </HEAD> tags.
Append By: bthorne@ieinc.com  When: 1998-04-29 09:05:50  New Status: Pending Customer
Comment The prototype for userLoadScript is: function userLoadScript(focusTarg) Where focusTarg is the object that has focus in the current form. Let me know if this will work for you. This will be in SS1_3_9 on Friday.
Append By: pete.longden@bcbsnca.com  When: 1998-04-29 11:43:13  New Status: Pending IE
Comment at the moment, I think that will do nicely. Will the current setCursor still execute (such that I don't have to worry about duplicating it), or will it be one-or-the-other? thanks!
Append By: bthorne@ieinc.com  When: 1998-04-30 09:21:30  New Status: Pending Customer
Comment It will still be called setCursor, so if you have pages where you have overridden by including your own, the one you put in should still work.
Append By: WindSurfer  When: 1998-05-07 15:10:34  New Status: Pending Customer
Comment The enhancement has been added-- although due to another suggestion, the name of this function has been changed to SS_SetCursor to prevent accidental duplication of customer functions named setCursor... (the name change is effective in build 1.3.10).

Please close if you are happy with the current state of this request...

Append By: PeteL  When: 1998-05-08 04:20:16  New Status: Closed
Comment excellent