HELP! KB3008923 breaks window.dialogArguments in secondary windows!

We have an enterprise app that heavily uses modal dialogs.  This morning we were greeted with a flood of support requests that after a Windows update last night, dialogs no longer work.
We isolated the issue that window.dialogArguments on secondary window no longer works.
I have a test case below that you can verify, window.dialogArguments in test2.html shows 'undefined' on machines that have the KB3008923 update, but "[object Object]" when the update is uninstalled:
test0.html:
<!DOCTYPE html>
<html>
<body>
<button onclick="window.showModalDialog('test1.html',new Object());">clickme</button>
</body>
</html>
test1.html:
<!DOCTYPE html>
<html>
<head>
<script>
alert(window.dialogArguments);
</script>
</head>
<body>
<button onclick="window.showModalDialog('test2.html',new Object());">clickme</button>
</body>
</html>
test2.html:
<!DOCTYPE html>
<html>
<head>
<script>
alert(window.dialogArguments);
</script>
</head>
<body>
</body>
</html>

A Small correction to my code posted before :
In the function setJavaScriptValue  add encodeURIComponent
var url = path + "/" + "SaveJavaScriptValues.aspx?t=" + Math.random();
    url += "&action=setValue";
    url += "&paramName=" + paramName;
    url += "&paramValue=" +  encodeURIComponent(paramValue);
Here is again the code :
Here is the solution (by using xmlhttp ) :
Create an aspx page :
This page will send back XML .
The page accepts 3 parameters :
action: setValue or getValue
paramName :name for a return value from the modal window. This will be the session variable name.
paramValue :this is the value to pass from the modal window before closing.
The request to the page will be done done calling xmlHttpRequest where async=false
(will wait for the response)
Here is the ASPX page called SaveJavaScriptValues
public partial class SaveJavaScriptValues : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
            string strResponse = string.Empty;
            if (Request.QueryString["action"] != null && Request.QueryString["action"] == "setValue")
                string strParamName = Request.QueryString["paramName"];
                string strParamValue = Request.QueryString["paramValue"];
                Session["javascriptValue_" + strParamName] = strParamValue;
                strResponse = strParamValue;
            if (Request.QueryString["action"] != null && Request.QueryString["action"] == "getValue")
                string strParamName = Request.QueryString["paramName"];
                if (Session["javascriptValue_" + strParamName] != null)
                    strResponse = Convert.ToString(Session["javascriptValue_" + strParamName]);
                    //set session to null for next time .
                    //once requested ,should be setted again .
                    Session["javascriptValue_" + strParamName] = null;
                else
                    strResponse = "undefined";
            Response.Clear();
            string strXml = "<?xml version='1.0' encoding='UTF-8' ?>";
            strXml += "<Root ><Answer>" + "<![CDATA[" + strResponse + "]]>" + "</Answer></Root>";
            Response.ContentType = "text/xml";
            Response.Write(strXml);
            Response.End();
After that create a javascript file and put there the fallowing functions:
function setJavaScriptValue(path,paramName,paramValue) {
    var xmlhttp;
    if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp = new XMLHttpRequest();
    else {// code for IE6, IE5
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    var url = path + "/" + "SaveJavaScriptValues.aspx?t=" + Math.random();
    url += "&action=setValue";
    url += "&paramName=" + paramName;
    url += "&paramValue=" + encodeURIComponent(paramValue);
    xmlhttp.open("GET", url, false);
    xmlhttp.send();
    return (paramValue);
function getJavaScriptValue(path, paramName) {
    var xmlhttp;
    if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp = new XMLHttpRequest();
    else {// code for IE6, IE5
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    var url = path + "/" + "SaveJavaScriptValues.aspx?t=" + Math.random();
    url += "&action=getValue";
    url += "&paramName=" + paramName;
    xmlhttp.open("GET", url, false);
    xmlhttp.send();
    var strResponse = xmlhttp.responseXML.selectSingleNode("/Root/Answer").text
    return (strResponse);
Where PATH is the your path relative to the file from where you call the functions.
Now from your page call javascript function before closing ModalWindow:
for example:
var myValueToReturnFromModalWindow="test";
setJavaScriptValue("../General", "paymentBillingType",myValueToReturnFromModalWindow ));
//where ../General the folder where you store the aspx file
//paymentBillingType is your parameter name
window.close();
and now from the page the calls the showModalDialog
var returnValue = getJavaScriptValue("../General", "paymentBillingType");
and now you have the return value;
it is important to call getJavaScriptValue always after closing the dialog.
By calling the function ,it will not only get the value ,but also reset it to undefined for future use.
(because user might close the modal window by clinicking the X button ,without returning actually any value)

Similar Messages

  • HT3986 I installed windows 7 to my macbook pro, but my mousepad does not work in windows 7 and also i can not connect my windows 7 to projector, but i can use my macbook's mouse pad and i can connect my mac to projector,so please help me for windows 7 pro

    I installed windows 7 to my macbook pro, but my mousepad does not work in windows 7 and also i can not connect my windows 7 to projector, but i can use my macbook's mouse pad and i can connect my mac to projector,so please help me for windows 7 problem

    i try to download now, do you think when i download and install the windows support software, can i fix the problem?

  • Help! my windows PC with Vista will not dowload itunes 10.7.  It gives me an error message: Your system has not been modified

    Help! my windows PC with Vista will not dowload itunes 10.7.  It gives me an error message: Your system has not been modified.I
    I have tried unistalling the current version I had which was 10.6.3, defragging and running a security scan. Now, the highest version I can get is 10.4.1. for some reason I cannot dowload itunes 10.5 or higher as it gives me the same message which is what I need to connect and update my iphone.  Anyone facing the same issue or can point me in the right direction?

    You may get better information on that error message by reposting in the iPhone forums:
    iPhone
    It's also possible that newer iPhone updates want an OS higher than Tiger. Post the specs of your computer and we can see if an OS upgrade is possible. There are a large number of G4 variants with different capabilities, so giving us something more than  just "G4" will get you help faster.

  • HP D017TU Laptop - Windows Help ans Support window started popping up and i can't get ride of it

    Just purchased a brand new HP D017TU Laptop so nothing been done with it. I installed windows 7 on my HP D017TU laptop. it was working fine.
    Then 2 days ago the Windows Help ans Support window started popping up and now I can't get ride of it.
    I have tried the following things to get ride of the issue,
    1) Format windows 7 os
    2) Delete All partition and re-create
    3) Re-install windows 7
    Does anyone know how I can stop this happening.

    Hello SaravSB, welcome to teh HP Forums.
    I see that you're having an issue where the Windows help and support is popping up. I will try to help you with this.
    I've looked into this for you, it seems this was an issue from back when Windows 7 launched. Any "solutions" also seemed to vary user to user. You may want to try contacting Microsoft for support on this. I was able to find a couple of posts off the answers.microsoft.com forums.
    "SuperJbye replied on  July 14, 2013
    Hello
    I found a simple yet effective solution for this problem, my friend had the same issue so instinctively as a technician, I suspect this was a malware of somekind so I re-formatted and installed Win7 funny it's still there, so I did a Hard disk wipe using Dalvik's and re-partitioned and formatted again, to my surprise it still have the same problem.
    So I ask Mr. Goo' old Mr. Google for answer, but I've found more complications, sorry for the story, so without further a do, the solution.
    Boot to safe mode. (may also work in "normal mode")
    Go to Task Manager>
    Click the Services Tab>
    Right click "HelpPane.exe" or Help and support service>
    Select Properties>
    Click the Security tab>
    Click the Advanced tab (for permissions options)
    Then select the "permissions entries" one at a time>
    Click Change Permissions>
    Then click Edit>
    CLEAR ALL THE CHECK BOX FOR ALL ENTRIES
    This should prevent access to the HelpPane.exe to all users/programs.
    This resolved my friends Windows 7 "Help and Support thingy" issue, hope it does yours too.
    Message me for questions and/or clarifications/corrections.
    Thank you"
    "EddJosh replied on  April 29, 2014
     In reply to Danel...'s post on April 28, 2014
    To fix the problem of the help pane appearing everytime you start windows do the following:
    1. Run 'msconfig'
    2. Go to the 'Startup' tab
    3. One of your 'Startup items' is causing the pane to appear and you are going to have to find out which one it is!  Untick ALL the items and reboot.  The help pane will not appear harrah!  Rather than adding the Startup Items back in one at a time and rebooting a hundred times, tick half the programs back in and reboot.  You can find the culprit in about 5 reboots if you do it logically and add/remove half/quarter etc at a time.
    4.  Finally you will be left with all your Startup items ticked and the guilty program unticked (and that annoying help pane will no longer be appearing)
    5. Now delete the guilty Startup Item from the registry (which will also remove it from the msconfig startup tab.
    6. Open 'regedit'
    7. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg and delete the guilty program folder.  BACKUP YOUR REGISTRY FIRST!
    8.  You're welcome."
    Both of those, as well as other steps are located in this thread: Windows 7 "Help and Support" keeps popping up.
    You could try those suggestions and even give that thread a read over, other wise the best option would be contacting Microsoft as stated above.
    Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • I need help transferring Bootcamp (Windows XP) from my old Macbook Pro to the new one. How do I make bootable clone of Bootcamp?

    Hi I just got a new MacBook Pro I need help transferring Bootcamp (Windows XP) from my old Macbook Pro to my new Macbook Pro  Mac OS X 10.7.4  2.6 Ghz Intel Core 17. How do I make bootable clone of Bootcamp?

    you can't just move XP even if you took the hard drive and have Windows boot and function.
    Apparently there are Windows tools to sanitize the OS and strip all the motherboard drivers and services.
    Time to get a supported OS. Don't want to pay, then use 8 for the time until it goes on sale.
    There are no drivers for even Vista on 2011 and later Macs.

  • Need help connecting a windows network printer to my Mac (Xerox Phaser 3600) over a windows home network

    Need help connecting a windows network printer to my Mac (Xerox Phaser 3600) over a windows home network.
    My Mac runs lion and the windows desktop runs Windows XP
    I have tried for a few hours or so to connect my mac to this printer over a home network.
    For your information it does work when connected directly to my mac using a USB Cable.
    If there is no soultion could I have help getting the drivers for a Dell All-in-One Photo 926

    In most cases you can connect to the Windows shared printer from the Mac. But there is a dependence on the Mac driver being compatible. For many consumer inkjets, the vendor created driver cannot be used for this type of connection so you need to look at alternative drivers, such as Gutenprint or PrintFab. If you can tell us which brand and model of printer you have shared from Windows then we can answer your question with the preferred procedure on the Mac.

  • Want to upgrade to lastest version - help/about Firefox window does not show "upgrade" as in instructions.

    I want to upgrade to latest version but -Help/About Firefox- window does not show "upgrade" as in the instructions. I cannot find an "upgrade" function anywhere else. How do I upgrade? The version I have is -18.0.1- it came with this used computer.
    I believe this computer was hacked. Word started doing very strange things. We wiped the hard drive and reloaded everything as it was originally when I bought it. I am now getting hacked online.
    They originally got into one of my credit cards last fall. That is when this all started. They got my AOL email address. They also got the credit card current balance, minimum payment, due date and then even the payment amount. They got into my Barnes & Noble account and now checkout does not work. Now I believe they have gotten into my AOL account - one thing after another has started going wrong. I cannot change that AOL user id/email address since it is the master and I would lose about 15 years of "stuff".
    The folks that sold me this computer told me to use a free version of an antivirus. I am very unhappy with it. I never had ANY trouble when I used TrendMicro's expense products. Those folks also told me to use Firefox, since AOL uses Internet Explorer - which I already knew is like Swiss cheese.
    Now, I cannot seem to get an upgrade of Firefox. Is this also a hack?
    Please help any way you can. Thank you for your time.

    It's probably just the Firefox updater having some problems. go to www.getfirefox.com and download Firefox 20.0.1

  • Had to uninstall mobile device helper because a window kept coming up every 45 sec. saying it had stopped working. It wouldn't stop and online support said uninstall it.Well I did,now if I want to access iTunes store it pops up the iTunes has stop working

    Was advised to uninstall mobile device helper because a window kept popping up about every 45 seconds saying it had stopped working.Uninstalled it that took care of that problem,but now I have a new one.I can't access the iTunes store.Every time I click the store icon a window pops up saying iTunes has stopped working.Any suggestions anyone.

    anyone?
    *i've managed to download quicktime, but am still unable to download itunes. after reaching a certain point in downloading itunes, (about 1/3 of the way?) it stops at "copying files", and my computer freezes and i have to hold the power button in order to shut it off and do anything, or i get a popup asking me if i want to change something so itunes can finish downloading. i click "yes", but then the download stops completely and i get a message saying "itunes has finished downloading, but with errors" and it tells me to download it again.
    a popup from MobileServiceDevice keeps appearing as well, but it won't go away. the details are:
    Problem Event Name:    APPCRASH
      Application Name:    AppleMobileDeviceService.exe
      Application Version:    17.88.0.7
      Application Timestamp:    4e66ceff
      Fault Module Name:    kernel32.dll
      Fault Module Version:    6.0.6002.18005
      Fault Module Timestamp:    49e038c0
      Exception Code:    c06d007f
      Exception Offset:    0001e124
      OS Version:    6.0.6002.2.2.0.768.3
      Locale ID:    1033
      Additional Information 1:    fd00
      Additional Information 2:    ea6f5fe8924aaa756324d57f87834160
      Additional Information 3:    fd00
      Additional Information 4:    ea6f5fe8924aaa756324d57f87834160
    but the fault module name changes on me. sometimes it's kernel32.dll, and sometimes it's something else, and i've already tried using task manager /find str but it doesn't help.

  • I have windows 64 and trying to download itunes 10.5, it start downloading but then after it`s almos finish i have a window pup up with error Microsoft ft VC80.CRT,type="win32" etc.Please help.I have windows 7 64

    I have windows 64 and trying to download itunes 10.5, it start downloading but then after it`s almos finish i have a window pup up with error Microsoft ft VC80.CRT,type="win32" etc.Please help.I have windows 7 64

    same here.

  • New user needs help with full windows reinstall/itunes

    ok
    my first time on here so be gentle,
    ok heres my problem, be using itunes for a whilenow with my nano, never had any problems, always just got my mp3's, then just clcked "add folder" in itunes, and then pointed to the said album, and in it goes.
    now my problem is, iam about to do a full reinstall of my win xp, however, 1. i have no idea how to back up my music with itunes., and 2., my actuall musc tracks are all over the hard drive.
    so any help....
    i will add here my idea as to how what think i must do......
    ...i was going to track down all my mp3's on my hard drive, (about 3 gigs worth), and then just copy them over to my .."my music.itunes", folder, and then when i have reinstalled my pc, just copy that back to the "my music" folder....will this work.
    and if it does what will i have to make sure i do on the new install of my itunes, to get my playlists back as they are now....
    i want to avoid thehorror stories i have read were after such reinstalls soon as there ipod plugged in again the blank new itunes updates ipod to blank....(how do i avoid this), and how do i get my new clean itunes to be like it was/is now....
    lots of questons i know, but pretty desprate to get on with my reisntall...
    thaks in advance for ay help.
    toz
    pc Windows XP Pro

    toz,
    We love seeing pro-active thinking here at the Discussions! You're off to a great start!
    And you've pretty well got the right idea of what has to be done. A few points to make things go a bit smoother, though.
    ..i was going to track down all my mp3's on my hard drive, (about 3 gigs worth), and then just copy them over to my .."my music.itunes", folder, and then when i have reinstalled my pc, just copy that back to the "my music" folder....will this work.
    It probably would work but fortunately there's an easier method. Use the iTunes Advanced menu > Consolidate Library... command and iTunes will automatically find all the songs in your music library that are not currently in the iTunes Music folder, make copies of them and then put them into that folder (along with any songs that are already there).
    With that out of the way, there are two main ways to make the back-up copies of your library. The one this article in the Apple Knowledge Base describes in detail is burning CD's/DVD's. That will take care of the music itself but if, as you say, you want to keep your playlists (and the information they depend on) intact, you will also have to make back-up copies of the iTunes Library files . That link tells you where to find them.
    The other approach to creating your back-up is to use any spare hard drive you happen to have available and simply copy the iTunes folder (which happens to contain the iTunes Music folder and the iTunes Library files). Some of our Discussions regulars are quite fond of this method .
    Once you've made your decision and successfully backed up your Library, restoring the music in iTunes onto your newly-formatted hard drive will be fairly straightforward but it will depend on which method you select. So post back and let us know how you're going to proceed as well as any other questions you may have.

  • Help Center for Windows Vista 2.00h 7kth12ww.exe doesn't install correctly Help!!

    I have been trying to install 7kth12ww.exe on a fresh copy of Vista x64. I have selected all the default options, and the installation says it has completed. Yet when I launch "Help Center for Windows Vista" I see, >this<. Now this has been up long enough that I would think others are seeing it as well, yet I seem to be the only one with the problem. Any thoughts as to what I am doing wrong?
    Thanks,
    Message Edited by dah on 07-24-2008 05:19 AM
    Message Edited by dah on 07-24-2008 05:20 AM
    Solved!
    Go to Solution.

    I found a solution that works for me, It is I believe a driver error. It is reproducible, and the solution involves creating the correct folder structure. PM me if you need to know more.

  • ICloud Bookmark Sync breaks Windows Indexing for Bookmarks

    When iCloud syncs Bookmarks to my PC (Windows 7 64-bit), it clears the "Allow this file to have contents indexed in addition to file properties" attribute on the files.  This breaks Windows Indexing, preventing things like Windows Search and web browser auto-completion from finding the bookmarks to use for navigation suggestions.
    How does one report this problem to Apple?

    I have iphone 3gs - windows 7 SAME PROBS
    on phone for over an hr with Apple
    shut down all apps - reset settings - not worked - everything they tried didnt work
    was gonna get iphone4s but not till this is fixed
    I have HUNDREDS of bookmarks I NEED
    all i have is two history files and the usual others -
    ANNOYED
    Trevor
    Anyone get this reolved - lady said theyd been getting calls about this but the two i spoke to said theyd not got any but senior guy was aware

  • Help pls i cant use the secondary camera of my nok...

    pls help me i cant use the secondary camera of my nokia n96.. i dont what happened pls help...just when i updated in 20.050 and when i use the secondary camera it says " unexpected error occured."  help pls what will i do?

    first of all, remove your battery and leave it out for five minutes then replace it. see if this solves the problem. if it does not, backp all your data to memory card or the mass storage (16gb) in the phone, or as a backup file .nbu in Nokia PC Suite. then perform a hard reset (*#7370 and *#7780#) to clear the phone to default factory settings. if this still does not work, then try the three-finger hard reset. if this still does not work, you will have to take your phone to your local Nokia Care Centre for them to look at.
    remember to do appropriate backup of all your files first. let us know how it goes.
    If you found this or someone's comments helpful or like what that person has to say, please give some Kudos to their post!

  • 10.4.7 breaks Windows Sharing (Samba), please help.

    After I updated to 10.4.7 from 10.4.6 on my MBP 15.4", I found myself with something consuming half my CPU. After some investigation, it turned out to be related to Windows Sharing because when this is turned off, the cycle-wasting goes away.
    In particular, it appears that launchd is attempting to run nmbd, which fails and crashes, then launchd repeatedly re-starts it ad-infinitum.
    Does anyone know how to fix this? I'd like to actually use Windows Sharing again.

    As you say, the solution was posted on:
    http://discussions.apple.com/message.jspa?messageID=2678063#2678063

  • Help with clean Windows 8.1 install Yoga 2 Pro

    Hey guys,
    I purchased a Yoga 2 Pro about 4 months ago as a secondary computer for college. I've been a Mac user for most of my life, and was intersted in learning more about the Windows ecosystem. While messing around in the partition settings, I must have made a mistake, and deleted a partition. I've been trying to follow this guide from the forums, and have the PBR_DRV partition and a "Drive 0 Unallocated Space", as per the walkthrough, but I'm not able to install Windows 8.1 on the "Unallocated Space" from a flash drive. An error with a different code appears everytime. Could anyone help?
    http://forums.lenovo.com/t5/Idea-Windows-based-Tablets-and/Guide-Windows-8-1-PRO-RTM-clean-install-o...

    What do you mean by clean install?  Are you simply restoring a backup image of the pre-installed OS, or are you really installing with a new copy of Windows?

Maybe you are looking for

  • SQVI to Z program

    Folks, I was able to create a z program by the program name generated by SQVI, I was able to copy the code from AQA0SYSTQV000034********====== to a Z program and also assigned a transactio to id. It works fine and is excellent. Now when I am trying t

  • Trying to modify SaveDocsAsSVG to open and save all files within a directory automatically

    I am trying to do as the title suggests, but I can't find a way to specify the folder I want the script to look at and I can't get it to open/save/close the files without user interaction. Another way to say it is that I need this to be itterative as

  • Imported playlists but itunes doesn't see songs

    I have dutifuly exported playlists both by right click playlist/export playlists and by file/export as xml and neither of those formats imported see any of the music. I have to find them all manually now. Any thoughts?

  • TS4147 Do I need to merge Safari and my contacts with icloud?

    When settling up Icloud on my iphone 5c the question comes up:  Do you want to merge your Safari and Contacts to iCloud.  Can this be reversed later?  What difference does it make?

  • Java.lang.ClassNotFoundException Error

    Hi, I am trying to view the output of the example(samples/examples/jsp/JdbcTable.jsp) in Weblogic Server 6.1 Basically it was trying to show the data from a table (Select * from emp) in an HTML Table. But it was giving the following error. Exception: