U can use jQuery to hook up to any element in a HTML page (so therefore 
SharePoint page). Their syntax is a little more easy on the eye than JavaScript 
directly. Then you can add this jQuery script block to your editform.aspx so 
that it triggers on a click.

From: [email protected] [mailto:[email protected]] On Behalf Of 
Daniel W. Brown
Sent: Wednesday, 11 November 2009 11:00 AM
To: ozMOSS
Subject: JavaScript popup from an event handler

Hi again :P

Has anyone successfully got a JavaScript popup window attached to the save 
button when added/editing a list item?

I've got an event handler which handles business rule checking against the new 
item against such things as duplicate bookings, max people per hour, etc.

For a normal user, these rules are unbreakable, for a Admin, they are 
advisories only and can be "override", However the way the event handler works, 
its redirecting to a /_layouts/ error page.

Is it possible to get a JavaScript popup window showing from an event handler? 
No matter where i look i can't find a reference to 'Page' to assign JavaScript.

Any help greatly appreciated.

Cheers,

DB

_______________________________________________
ozmoss mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to