Javascript variable getting intialized every time in IE

Hello
I have a javascript variable that is decalred outside the functions in a script so that I can access/modify it from more than one functions. I am facing an issue when it comes to IE with such a declaration. The value of the variable that is declared is getting initialized every time when the function is called. This is not happening in Mozilla Firefox. The sample code is as given below.
<script language="JavaScript" type="text/javascript">
var errMSNo='';
function alpha_Validate(relatedMS,msNo)
errMSNo=errMSNo+'MS'+msNo;
function errorAlert()
if (errMSNo=='')
     doSubmit('DRAFT');
else
     alert ('Error ' +errMSNo);
</script>
Here even after calling the 'alpha_Validate', IE perfoms the doSubmit operation. Can any one help, please.
Thanks
-Georgey

Thanks for the reply.
I see that my resource tag is already within a container. I've updated my test case a bit and posted a new thread.
Accessing pageFlowScope Map from javascript

Similar Messages

  • I have uninstalled and installed the latest Flash Player 17 many times.  I am currently working on a yearbook site that gets locked every time I try to add photos.  I have also received a plug in error even though the plug in box is checked.  I have a Mac

    I have uninstalled and installed the latest Flash Player 17 many times.  I am currently working on a yearbook site that gets locked every time I try to add photos.  I have also received a plug in error even though the plug in box is checked.  I have a MacBook Pro.  Please help!!!

    To give you any useful advice, I'm going to need to know more about your computer and browser:
    https://forums.adobe.com/message/5249945#5249945

  • ITunes Library.itl gets corrupted every time I restart my CISCO VPN enabled laptop.

    Hi,
    iTunes Library.itl file gets corrupted everytime I restart my laptop.
    I am using Lenovo T410 with Windows 7.
    This is causing alot of problems as all my iPhone songs and apps get deleted after every sync.
    Please help.

    I have the same problem.
    I have removed and re-installed iTunes. The music files are still intact but the library gets erased every time I restart the PC.
    This means I have re-scan all my music files over and over again.
    Also, an inspection of the iTunes directory reveals lots and lots of temp (iT*.tmp) files, all of them are about the same size as the iTunes library database (10mb in my case) so it looks like iTunes is not closing down correctly / writing the temp file back to the iTunes library (iTunes Library.itl)file.
    Can anybody help?

  • How do you turn off the passcode from iphone 3gs?? I do not want to get prompted every time I turn on my phone!!!!

    How do you turn off the passcode feature from iphone 3GS?? I do not want to get prompted every time I turn on my phone.

    Settings > General > Passcode Lock
    You're going to really regret this if you ever lose your iPhone.

  • Not able to make outgoing calls in iphone4. Regularly i face this problem, at the same time i receive incoming call, can do net surfing, can access email and sms, only outgoing calls get failed every time. please answer to solve this problem

    not able to make outgoing calls in iphone4. Regularly i face this problem, at the same time i receive incoming call, can do net surfing, can access email and sms, only outgoing calls get failed every time. please answer to solve this problem

    Good day Sidharth Namrta,
    It sounds like you are unable to make any calls, but you can recieve them, and everything else seems to work fine. I recommend you use the troubleshooting in the following article to help you get that resolved, named:
    iPhone: Troubleshooting issues making or receiving calls
    Follow the steps below to resolve this issue. Please test after each step.
    Toggle airplane mode: Tap Settings > Enable Airplane Mode, wait five seconds, then turn off airplane mode.
    Check your phone settings:
    Check your Do Not Disturb settings: Tap Settings > Do Not Disturb.
    Check for any blocked phone numbers: Tap Settings > Phone > Blocked.
    See if Call Forwarding is turned on: Tap Settings > Phone > Call Forwarding.
    Ensure that your software is up to date:
    Check for a carrier settings update.
    Check for an iOS software update. 
    Note: Some updates may require a Wi-Fi connection.
    If the iPhone has a SIM card, reseat the SIM card.
    If the iPhone 4 or iPhone 4s is on the Verizon network, dial *228 from the iPhone and select option 2 to update the Preferred Roaming List (PRL). The PRL determines the cellular towers the phone uses for cellular service, selecting those with the best signal strength.
    Reset the network settings: Tap  Settings > General > Reset > Reset Network Settings.
    Try to make or receive calls in another location.
    Attempt to isolate to one network band:
    If you're having the issue on LTE, disable LTE, if possible, and try again.
    If you're having the issue on 3G/4G, disable 3G/4G, if possible, and try again.
    Contact the carrier to check the following:
    Your account is properly configured to use the specific iPhone that has the issue.
    There are no localized service outages.
    Your account doesn't have a billing-related block.
    Your calls don't have errors on the carrier system.
    Restore the phone as new.
    If the above steps don't resolve the issue, go to an Apple Retail Store, carrier, Apple Authorized Reseller, or contact AppleCare to send the phone in for service.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Anyone else having issues with third party changers saying "this accessory not supported". I get it every time I plug my phone. It only started after the iOS 7 updates

    Anyone else having issues with third party changers saying "this accessory not supported". I get it every time I plug my phone. It only started after the iOS 7 update?

    That's because part of iOS7 had code in it to look for and recognize unsigned cables.
    In other words, Apple knew that people used non-signed ones and didn't care....until last month when they decided to care. People with iOS6 and lower should experience no issues (unless Apple patches those iOS versions) but folks with iOS7 will need to deal with it.

  • Every time I launch the browser the popup blocker option is unchecked. Why does the pop up blocker keep getting unchecked every time browser is launched?

    Every time I launch the browser the popup blocker option is unchecked. Why does the pop up blocker keep getting unchecked every time browser is launched?

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Java Plug-in 1.6.0_05 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • Do we get charged every time we have to update our apple app games

    Do we get charged every time we have to update our apple app games?

    Updates never have an additional charge associated with them. App Upgrades do. An upgrade would be going from a free version to the full paid version and there would be a charge for that. When apps are updated, new feature, new interface, etc. - there is no charge for that.

  • Have downloaded FF 7.0.1 twice- still get message every time that I should up grade?

    Have downloaded FF 7.0.1 twice- still get message every time that I should D.L. the new version- what am I missing?

    Your UserAgent string in Firefox is probably messed up by another program that you installed.
    [http://en.wikipedia.org/wiki/User_Agent]
    type '''about:config''' in the URL bar and hit Enter <br />
    ''If you see the warning, you can confirm that you want to access that page.'' <br />
    Filter = '''general.useragent.extra.firefox''' <br />
    Right-click that preference and select '''Reset''' <br />
    Then restart Firefox

  • I need to change from Japan App Store to Australia App Store. I get this every time I try using My MacID: "This Apple ID is only valid for purchases in the Japanese iTunes Store. You will be switched to that Store." What next TY. JohnCahill

    I moved from Japan to Australia. I need to change from Japan App Store to the Australian App Store. I get the following message every time I try using My MacID which was set up in Japan: "This Apple ID is only valid for purchases in the Japanese iTunes Store. You will be switched to that Store." At one point... by which path I do not remember... I was instructed to created a new ID. I fill out the new ID forms, but the address is rejected each time... quite confusing. Does it want a new name? But it says I cannot use an apple domain (tag?) even though I guess it has to be an apple address... ? So I have iTunes crdit cards purchansed in Australia, can't spend in AUstralian iTunes Store, get directed back to Japan each time, and can't open a new ID... What am I doing wrong? Thank you in advance.  John. Australia.

    You must have a separate Apple ID registered in the other store along with a valid bank-issued charge card in the other country, and a legal billing address in the other country.
    Sorry... But... You cannot use other countries itunes stores.
    You must be within the Country with a Valid Billing Address and Credit Card for that Country to use the iTunes Store of that Country..
    iTunes Store Terms of Service
    http://www.apple.com/legal/itunes/us/terms.html#SERVICE

  • Your Firefox profile cannot be loaded. It may be missing or inaccessible. Get this every time my browser sits for 10 minutes and I have to restart

    I asked this question before and performance is somewhat better but still at least three times a day I have to restart my computer just to get FF to run. It starts fine first time. If I let my computer go to Screen Saver, when I get back, pages will not load. When I close FF I get a message that FF is still running. When I chose Close FF I get the message in the question. Every single day. I like FF but will switch to Chrome if I have to restart my computer three times a day just to use FF. Very frustrating.

    Tried all that. Totally uninstalled FF. Reinstalled fresh copy. Had to get my bookmarks, add ons, etc. loaded back on. Was very hopeful. Twenty minutes after walking away from my computer the same damn thing happened for the umpteenth time. Nothing would load. When I closed FF and tried to restart I get a message that FF is already running. Close button and Task Manager were of no help. Then get the "profile inaccessible" error message. I give up. While I like the FF interface, I need a browser that doesn't force me to restart my computer every time I'm gone for twenty minutes. Reluctantly going to Chrome. Thanks for your efforts. Maybe someday FF will make a browser that actually works on my computer. Very frustrated user here.

  • Payment method is getting declined every time i enter a new payment method to buy some app from app store. Can somebody please help me ?

    every time i am buying an app my payment method ia getting declined . i have tried with different debit cards but i am not able to make it a success.
    i really need a solution out of this asap.....
    more over is some apple guy gets it .
    please solve the problem....

    Make sure there is enough funds for storage. Contact your bank and verify they are not stopping transaction.

  • How do I supress the "sync encountered an error while syncing" bar? I get it every time I connect to a work VPN that is isolated from the internet.

    Background: For work I routinely need to connect to a secure VPN that is completely isolated from the internet. When using it, I can only connect to the servers that reside within the network and the VPN software (Cisco AnyConnect + NAC Agent) seems to automatically redirect all http requests to external sites to a catch-all 'sorry you can't do that' page.
    So while connected to the VPN, Firefox Sync doesn't work and nor do I expect it to. However, my issue is that every time I connect to the VPN, Firefox silently pops up a "sync encountered an error while syncing" error message bar at the bottom of the browser, which I have to manually close. This obviously isn't the end of the world, but having to do it all the time gets annoying so I was wondering if there was a way of suppressing that particular error message or maybe getting Sync to handle the secure VPN more gracefully.

    I don't know about blocking that message, but my suggestion is to turn Sync autoconnect off, and use Sync manually.
    Type '''about:config''' in the URL bar and hit Enter. <br />
    Then type '''''autoconnect''''' in the Search bar at the top. <br />
    '''services.sync.autoconnect''' = double-click that pref to toggle it to '''false'''.
    Then to trigger a Sync manually, hit '''Sync Now''' in the Firefox menu ''(or the File menu)''.

  • I am using Xcode 5  on Mac Book with configuration Memory  5 GB 1067 MHz DDR3  and Processor  2.4 GHz Intel Core 2 Duo. It is getting hanged every time  whenever i work on Storyboard.  As my storyboard consists of 25 scenes. Please help I m suffering.

    I am using Xcode 5  on Mac Book with configuration Memory  5 GB 1067 MHz DDR3  and Processor  2.4 GHz Intel Core 2 Duo. It  hangs every time  whenever i work on Storyboard and even on clicking on any of the controller it takes time to open.  As my storyboard consists of 25 scenes. I searched a lot but did not get any results . I have upgraded my xcode to xcode 5.0.2  which is bug free as compare to xcode 5. Please help I m struggling with this problem a lot.

    iTunes for Mac
    http://support.apple.com/en-us/HT201693
    http://www.apple.com/itunes/download/
    Was it installed before? Does it show up in Software Update?
    Do other updates show up there (realizing that Lion is not getting all the updates anymore as it is no longer being supported).
    Apple Downloads
    - Always a place to manual download.
    MacBook Pro
    Mac OS X Lion System Communities

  • Document keeps getting duplicated every time I save

    I think my preferences have been set up so that every time I make changes to my document I seem to be getting a new copy every time, so that instead of just working on one version, I suddenly have about three or four documents with the same document name. I had this problem once before in Quark and I was told to do something in the saving function in prefernces, but I don't know where to find this in indesign. Please help. Thank you lots.

    Stix Hart wrote:
    So you've been hitting File > Save As?!  Just go Ctrl + S and your duplicate problems will disappear... 
    I don't think this is what's going on. Doing a Save As each time would would bring up a dialog asking for a name and location, so it would be hard not to notice that you are either making a copy by using a new name or location, or you would overwrite the old file by using the same name and location.
    I suspect what's really happening is the OP has been issuing the Save a Copy command, which by default is Ctrl (Cmd) + Alt (Opt) + S. Ironically, your suggestion to use just Ctrl + S should also solve that, since that is the correct command if the shortcusts are set to defaults, but it bears noting that it is possible to edit the keyboard shorcuts so that, for example, the Save and Save a Copy commands are reversed in their use of the second modifier key.
    This sort of confusion would only occur when using shortcuts, and not from the file menu. I can conceive of the possibility, too, that a Mac user might be able to accidentally hit Cmd + Opt together with the same finger since the keys are adjacent.

Maybe you are looking for