Does anyone "Trap" javascript errors and prevent the submission of a request?

I am wondering if anyone has implemented a way to capture when a JS error is triggered and prevent the submission of a request.
Websphere 6.1
Oracle 10g
Linux 4
RequestCenter 2008.3 sp7
I am wondering if anyone has implemented a way to capture when a JS error is triggered and prevent the submission of a request.
I have noticed that if someone selects a unique option (that was not considered or tested) that a JS error occurs and then they can submit the requsistion with out any validation. 
This causes problem especially if a mandatory field was missed farther down the form.
Thank you
Daniel

Hi Daniel,
Interestingly, we've found that in Version 9.1, all errors are trapped and the form locks up (which is a change in behaviour) and we were planning on logging a defect for it!  As, when service definitions change over time, it can very rather tricky to unpick absolutely everything without having an impact on the new service definitions (particularly when you have upgraded from 2007.x where ISF was the only way to do anything!).
Thanks,
Ant

Similar Messages

  • Does anyone has this error and fix it

    Hello Everyone
    My Macbook pro 13 Late 2011 Has this error 4SNS/1/c0000008:TSOP--124,
    Does anyone had this error before and fixed it at apple store because in my place there is no apple store so only way for me to fix it by my self.
    so pls help .

    This error looks related to running the Apple Hardware Test. Apple doesn't publicly release these error codes. If the error was related to your RAM, you can order new RAM online:
    Apple Mac Memory Upgrade Options: Easy Buying Guide, Free ...

  • How to cancel the event in Item Adding and display javascript message and prevent the page from redirecting to the SharePoint Error Page?

    How to cancel the event in Item Adding without going to the SharePoint Error Page?
    Prevent duplicate item in a SharePoint List
    The following Event Handler code will prevent users from creating duplicate value in "Title" field.
    ItemAdding Event Handler
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    if (properties.ListTitle.Equals("My List"))
    try
    using(SPSite thisSite = new SPSite(properties.WebUrl))
    SPWeb thisWeb = thisSite.OpenWeb();
    SPList list = thisWeb.Lists[properties.ListId];
    SPQuery query = new SPQuery();
    query.Query = @"<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + properties.AfterProperties["Title"] + "</Value></Eq></Where>";
    SPListItemCollection listItem = list.GetItems(query);
    if (listItem.Count > 0)
    properties.Cancel = true;
    properties.ErrorMessage = "Item with this Name already exists. Please create a unique Name.";
    catch (Exception ex)
    PortalLog.LogString("Error occured in event ItemAdding(SPItemEventProperties properties)() @ AAA.BBB.PreventDuplicateItem class. Exception Message:" + ex.Message.ToString());
    throw new SPException("An error occured while processing the My List Feature. Please contact your Portal Administrator");
    Feature.xml
    <?xml version="1.0" encoding="utf-8"?>
    <Feature Id="1c2100ca-bad5-41f5-9707-7bf4edc08383"
    Title="Prevents Duplicate Item"
    Description="Prevents duplicate Name in the "My List" List"
    Version="12.0.0.0"
    Hidden="FALSE"
    Scope="Web"
    DefaultResourceFile="core"
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
    <ElementManifest Location="elements.xml"/>
    </ElementManifests>
    </Feature>
    Element.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListTemplateId="100">
    <Receiver>
    <Name>AddingEventHandler</Name>
    <Type>ItemAdding</Type>
    <SequenceNumber>10000</SequenceNumber>
    <Assembly>AAA.BBB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8003cf0cbff32406</Assembly>
    <Class>AAA.BBB.PreventDuplicateItem</Class>
    <Data></Data>
    <Filter></Filter>
    </Receiver>
    </Receivers>
    </Elements>
    Below link explains adding the list events.
    http://www.dotnetspark.com/kb/1369-step-by-step-guide-to-list-events-handling.aspx
    Reference link:
    http://msdn.microsoft.com/en-us/library/ms437502(v=office.12).aspx
    http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspx
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

    Recommended way for binding the list event handler to the list instance is through feature receivers.
    You need to create a feature file like the below sample
    <?xmlversion="1.0"encoding="utf-8"?>
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/"
    Id="{20FF80BB-83D9-41bc-8FFA-E589067AF783}"
    Title="Installs MyFeatureReceiver"
    Description="Installs MyFeatureReceiver" Hidden="False" Version="1.0.0.0" Scope="Site"
    ReceiverClass="ClassLibrary1.MyFeatureReceiver"
    ReceiverAssembly="ClassLibrary1, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=6c5894e55cb0f391">
    </Feature>For registering/binding the list event handler to the list instance, use the below sample codeusing System;
    using Microsoft.SharePoint;
    namespace ClassLibrary1
        public class MyFeatureReceiver: SPFeatureReceiver
            public override void FeatureActivated(SPFeatureReceiverProperties properties)
                SPSite siteCollection = properties.Feature.Parent as SPSite;
                SPWeb site = siteCollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                SPEventReceiverDefinition rd = list.EventReceivers.Add();
                rd.Name = "My Event Receiver";
                rd.Class = "ClassLibrary1.MyListEventReceiver1";
                rd.Assembly = "ClassLibrary1, Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=6c5894e55cb0f391";
                rd.Data = "My Event Receiver data";
                rd.Type = SPEventReceiverType.FieldAdding;
                rd.Update();
            public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
                SPSite sitecollection = properties.Feature.Parent as SPSite;
                SPWeb site = sitecollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                foreach (SPEventReceiverDefinition rd in list.EventReceivers)
                    if (rd.Name == "My Event Receiver")
                        rd.Delete();
            public override void FeatureInstalled(SPFeatureReceiverProperties properties)
            public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
    }Reference link: http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspxOther ways of registering the list event handlers to the List instance are through code, stsadm commands and content types.
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

  • TS3899 I can't SEND email from Telus account in Alberta, Canada? Does anyone know how to set up the Outgoing server? Help! And thanks!

    Can't SEND email from Telus account in Alberta, Canada, unless I go to web mail. Does anyone know how to set up the Outgoing server? Incoming is fine. Outgoing used to work. We changed it when we went to another location, and can't get it back. Telus support can't fix it. Neither smtp.telus.net NOR mail.telus.net works for Outgoing server to send mail. Please help! Thanks.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • HT5621 When I got my new iPhone and was trying to switch everything over I accidentally set up a new icloud account with one email and had one on my old iphone with another account. Does anyone know how I can merge the two accounts?

    When I got my new iPhone and was trying to switch everything over I accidentally set up a new icloud account with one email and had one on my old iphone with another account. Does anyone know how I can merge the two accounts?

    You cannot merge Apple IDs but you can go to Settings > iCloud and 'Delete Account'.  When prompted to turn off documents and data, choose the only option which is Delete from my iPhone, but on the other prompt for Contacts, Calendars, etc you can choose 'Keep on my iPhone'  Then once the Account is Deleted form the iPhone, log back in with the correct Apple ID and choose Merge when prompted.  This will merge your data from this iPhone with that iCloud account effectively putting your devices on the same account.

  • My macbook pro (August 2010) keeps freezing when apple mail starts up. This happens every 2nd time I turn on my Macbook Pro. This forces me to hold down the power button to restart my Macbook Pro. Does anyone else experience this, and is there a fix? Thx

    My macbook pro (August 2010) keeps freezing when apple mail starts up. This happens every 2nd time I turn on my Macbook Pro. This forces me to hold down the power button to restart my Macbook Pro. Does anyone else experience this, and is there a fix? Thx.
    since upgrading to OS lion, my mac book pro (2010 August) keeps freezing (non responsive, requires restart) when i turn on my mac and the system is trying to open apple mail. while apple mail is attempting to collect new mail, the macbook pro freezes. this happens every 2nd time i try to start up my computer. this only started happening after i upgraded to OS lion. please let me know what I need to do to fix this. being forced to restart every 2nd time i turn on my macbook pro has been very frustrating. not sure if apple mail is also the cause of my macbook pro for being very slow during start-up (on the occasion the computer doesn't freeze).

    I am having similar 'freezing' problems with many programs (Mail, Safari, iTunes, etc.). I have done a clean install of Lion instead of an upgrade when it came out. Perhaps something went wrong with my install? I'm thinking about wiping and reinstalling.

  • I just upgraded from snow leopard v10.6.8 to os x mountain lion and my scroll bar has disappeared on all my applications on the internet. does anyone know a patch to get the scroll bar to work.

    i just upgraded from snow leopard v10.6.8 to os x mountain lion and my scroll bar has disappeared on all my applications on the internet. does anyone know a patch to get the scroll bar to work.

    Open General preferences in System Preferences. You can set the desired scrollbar behavior there.

  • Does anyone know if I can change the font on Word to 13? When I highlight the text and type in 13 it automaticall reverts back to 12. I have a MacBook Air.

    Does anyone know if I can change the font on Word to 13? When I highlight the text and type in 13 it automaticall reverts back to 12. I have a MacBook Air.

    hit command + A to highight all text, type in 13 in the font size box.

  • TS1503 Does anyone know what "other" means in the sync summary bar? I have 850mb using storage space in my iphone and can't understand what that is. I have tried to delete everything, restore to factory settings and change the icloud account. Thanks.

    Does anyone know what "other" means in the sync summary bar? I have 850mb using storage space in my iphone and can't understand what that is. I have tried to delete everything, restore to factory settings and change the icloud account. Thanks.

    Hi there AnthPy,
    You may find the troubleshooting steps in the article below helpful.
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    -Griff W. 

  • Hello does anyone knows how to re-enter the decimals for the tempo cause i only have a full number and can't enter a decimal number ?

    hello does anyone knows how to re-enter the decimals for the tempo cause i only have a full number and can't enter a decimal number ?

    Hi
    Go to Preferences:Display and check that you have:
    HTH
    CCT

  • TS1424 Does anyone know what Error = 408 means? I can't complete the download of an album because of it! Tells me the server timed out. How do I fix it?

    Does anyone know what Error = 408 means? I can't complete the download of an album because of it! Tells me the server timed out. How do I fix it?

    IPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    Please Get the iPod Touch User Manual for iOS 5

  • Does anyone know what error 6179 is?  It's coming up over my mail icon and I can't send or receive mail.  My OS is Yosemite

    Does anyone know what error 6179 is?  It's coming up over my mail icon and I can't send or receive mail.  My OS is Yosemite

    Mail troubleshooting - Yosemite
    Mail (Yosemite): If you can’t receive messages
    Mail (Yosemite): If you can’t send messages

  • Does anyone know what to do about the printer (MP280 and Microsoft) making colors weird and fuzzy??

    Does anyone else have yellow and blue only in the whole pic? Or pink and purple only? Why?

    Hi ladyswan58,
    Please let us know what prints out when you print a Nozzle Check:
    1. Make sure that the power is turned on.
    2. Load a sheet of A4 or Letter-sized plain paper in the Rear Tray.
    3. Open the Paper Output Tray gently, and open the Output Tray Extension.
    4. Print the nozzle check pattern.
    (1) Press the  (Maintenance) button repeatedly until A appears.
    (2) Press the Black or Color button.
    The nozzle check pattern will be printed.
    The nozzle check should look like this:
    Also, is the color cartridge a new cartridge?  If not, roughly how many pages have you printed on the current cartridge?
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • I just bought an IMac today and found on "about this IMac" that it is of late 2013, does anyone knows if 2013 refers to the release or production year, Thanks

    I just bought an IMac today and found on "about this IMac" that it is of late 2013.
    1. Does anyone knows if 2013 refers to the release or production year?
    2. I use an enclosed HD from my old IMac for the set up, upon completion, only my documents and calendar are transferred, emails, Imessages, stickies, notes, music and photos are not. From what I understand EVERYTHING can be transferred, am I right? If I am right, can I re do the set up process again ? And how?
    Thanks

    On Q2, simply connect the EHD to the new machine and you can drag and drop. If the EHD is a backup HD (Time Machine or a Clone) then you can use Migration Assistant to migrate the data over. Also open the Mac App Store and update the new iMac, 10.1.1 is out of date now. Update it to 10.10.3 and install any other recommended updates. You should check for updates at least once a month and install all recommended updates.

  • Does anyone know what's up with the iPhone 4s' battery life? Some days it last a long time and other days it drains extremely fast.

    Does anyone know what's up with the iPhone 4s' battery life? Some days it last a long time and other days it drains extremely fast.

    Not to point out the obvious, but battery life depends very much on what is running and how much the device is being used.
    If the battery lasts longer on a day you make no phone calls, but lasts less the day you make 5 hour long calls, this is to be expected.
    If however the iPhone has the same level of use on both days, with different power consumption, this would infer a background process (or App) is trying to do something (connecting to server or creating a back up etc).
    I switched off all thrid party apps from being included in my iCloud backup, which saves a huge amount of space on the cloud and allows the back up to take barely a couple of minutes.
    Battery life seems ok so far on my 64GB 4S (Bluetooth on, Wi-Fi on, Location Services on, Push notifications on, Screen set to just under half brightness with Auto Adjust on)

Maybe you are looking for