Javascript call from Flash in modal dialog window

Hi.
As I see it's impossible to call Javascript function from
flash in modal dialog (opened with showModalDialog), neither with
getURL nor with ExternalInterface.call.
The only solution I found (in my case it's enough, I only
need to refresh some DIV content in the page from flash) is to
catch error in the modal dialog (Javascript window.onerror) and
then do some operations.
I'm intereseted: is this for security reason on Win XP SP2? I
didn't found any solution, but is there any?

Hi Gary,
Actually I'm not very sure that whether it is the VS issue if it still has this issue in a new Environment.
To make sure that it is not the VS setup file issue, one idea is that you could re-download your VS2013 Pre version here:
http://www.visualstudio.com/downloads/download-visual-studio-vs
And then re-install it again. Test the result. Hope that it is not the VS setup file issue.
If still no help, really sorry for that I couldn't repro this issue in my side. But
you can submit this feedback to Microsoft Connect feedback portal:
http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx,Microsoft
engineers will evaluate them seriously. You could share this project in your report, the product team members would troubleshoot and repro this issue.
You will get email notification for update in your connect report.
If you submit it, please share us the link here, so we could get the latest information from the product team members.
Sincerely,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Javascript calls from flash send GET request

    I'm having this problem with calling a javascript function
    after opening a new URL from flash. Basically what I have going on
    in my flash is a button, that when clicked, opens a new URL in
    "_blank" sending values to it using a POST request (I have done
    this both by using getURL and by using a LoadVars object). This
    part works fine, however immediately after it, I have a call to the
    javascript function "window.close()" (which I have done both using
    getURL and ExternalInterface). This works great in Firefox, but in
    IE the POST request seems to be getting interrupted by the
    javascript call.
    I did a check on the values getting passed using Charles, and
    it clearly shows that in IE there is a POST request getting sent to
    the page I'm loading in the new window, immediately followed by a
    GET request. This get request overrides the POST and for some
    reason only appears when making a javascript called. If I change
    that javascript call to opening a new URL in _self, for example, it
    doesn't show up.
    Does anyone have any idea what this is all about? Is there a
    solution to this? Why is this happening?!

    Thanks for the speedy reply!
    I'll just have to double check to make sure that any of the AJAX calls are security checked.

  • Passing values to a modal dialog window...

    Hi All,
    Is there a way to pass massive amount of data into a pop-up
    modal dialog window? I have this following code that keeps giving
    me a JavaScript error whenever I have like 2000 characters in the
    documen.myForm.Product_Details textarea field. Any suggestions or
    advice is greatly appreciated, and thank you very much in advance!
    function Modal_NewWin() {
    var width = 750;
    var depth = 200;
    var productDetails = document.myForm.Product_Details.value;
    var url =
    "PreviewProducts.cfm?ProductID=#GetProductInfo.ProductID#&ProductDetails="
    + productDetails;
    var sfeatures = "dialogHeight: " + depth + "px; dialogWidth:
    " + width + "px; dialogTop: px; dialogLeft: px; center: Yes; help:
    No; resizable: No; status: No;";
    return window.showModalDialog(url,'',sfeatures);

    can you use JSStringFormat() without first submitting the
    form??? (so CF can see the value in the form field jsstringformat
    is applied to..)
    submitting a form to the preview page will solve the problem
    for sure, but then you will somehow have to have 2 different action
    target for the form, so that clicking 'preview' button submits the
    form to the modal window, and clicking a 'save' button will submit
    the form to another action page that inserts values into a db...
    you can do that, again with some more javascript...
    as html-escaping javascripts are readily available on various
    script sites, i think it will be easier to employ one of them...
    (please note that i am assuming quiet a lot about how the
    AppDeveloper's form works and what it does, since he never
    explained it himself...)

  • Modal dialog window to system

    Hi,
    I could not find proper link to post this, so I am posting here.
    I want a system level dialog window i.e. when this window is visible it should always be at top most and user should not allowed to select other applications.
    I used runModalForWindow method of NSApp but it is creating modal window with respect to my application and I am able to select other applications.
    I want my modal dialog should be top most dialog to my application and user should not be able to select other application.
    Thanks.

    Hi
    My application is running in kiosks environment. So I want when any modal dialog pops up in desktop from my application, user should not be able to select any other application from the desktop i.e. I want my modal dialog window should always be at the topmost.
    If it is not possible to have a system level dialog window, any alternate solution so that my modal dialog will be at topmost and user should not be able to select any other application as long as this dialog is visible will really helpful to solve my problem.
    Thanks.

  • Modal Dialog window

    Hi,
    I have designed a XDP form using Adobe designer 7.0 in which i have a button. now i want a modal dialog window to be opened on click of a button.
    how can i do this? what should be the type of button?
    Thanks,
    rajasekhar MV

    Hi
    My application is running in kiosks environment. So I want when any modal dialog pops up in desktop from my application, user should not be able to select any other application from the desktop i.e. I want my modal dialog window should always be at the topmost.
    If it is not possible to have a system level dialog window, any alternate solution so that my modal dialog will be at topmost and user should not be able to select any other application as long as this dialog is visible will really helpful to solve my problem.
    Thanks.

  • Open list form across host header site collections via Modal Dialog window

    Hello,  I have a web application that has two host header site collections in it.  When a user is on Host Header A, I need to open a list's display form that's located on Host Header B.  I'm using the JS function  SP.UI.ModalDialog.showModalDialog(options)
    to open a dialog window to the host header B list's display form.  It loads and shows all the columns, but there are a couple issues.
    1) The scroll bar on the dialog window is not active (can't scroll up or down to see all the columns).  This is an issue on all browsers (IE 8 &9, Chrome, FF)
    2) In IE, the SP ribbon does not display.  In Chrome and FF the ribbon does display and the buttons work fine.
    There's no errors in the ULS logs, and if I use IE8, there's a JavaScript "Access Denied" error.  I've confirmed the user account has permissions on both sites & list.
    My first thought had to do with anonymous access being turned on at the web application level (not the site level) and the credentials not being passed to the new site collection.  But this isn't the case because in Chrome, the ribbon shows and the
    buttons are security trimmed correctly based on the users permissions.  So I know the credentials are getting passed through the dialog window.  And when I use the "Edit' button on the ribbon in chrome, it opens a new dialog window and everything
    works correctly (Scroll bar and ribbon).
    Has anybody been able to successfully open a list form across two separate host header site collections?

    I ended up getting around the cross site collection in the modal window issue by using a custom ASPX page that works as a redirect using JS.  
    The link the end user clicks pops open the aspx page in a dialog window.  I then pull the URL of the list item I want to open from the URL and have JS open that form in the modal window.  The key seems to be to open the redirect aspx page under
    the same site collection as the list item you want to view.
    Here's the JS that's in the aspx page.
    <script type="text/javascript">
    // We name the current dialog windown
    window.name = "newSiteWindow";
    // wait until we know the the JS lib is loaded
    ExecuteOrDelayUntilScriptLoaded(loadNewSite, "sp.js");
    function loadNewSite() {
    //grab the list item URL from the URL of the dialog window using a pre created function
    newURL = GetUrlParmByName("listItem");
    //append our dlg query to the end so everything displays correctly. If you do not use IsDlg=0, the ribbon does not display and the window will not scroll.
    newURL = newURL + "&IsDlg=0";
    //use the current window to open the list item we want to go to.
    window.open(newURL, "newSiteWindow");
    </script>

  • Adobe Reader XI - javascript alert boxes appearing behind modal IE window

    Hi - I am experiencing the following issue:
    I am running Windows 7,  Internet Explorer 9 and Acrobat Reader XI. I am opening a pdf document in an IE modal dialog usiing the showModalDialog() function. My pdf document has a simple button which will display an app.alert box. The problem is that the alert box now appears in the back of the modal dialog, something it did not do before the upgrade to Reader version XI. This means that the user is forced to move the modal dialog out of the way to see and to click "OK" on the alert box.
    It doesn't seem like this is limited to app.alert boxes either. I tested on a new WIN7 machine and installed Reader XI. Making sure not to have opened Reader XI, I opened my pdf file in the modal window and it brought up the Reader XI EULA window and it was behind the modal dialog as well.
    Any help would be appreciated, I've tested on multiple machines and the problem seems to be with Reader XI & Internet Explorer 9, running on a Win7 OS. Thanks.

    Hello me_339,
    Yes, I'm also seeing the same behavior in Reader XI, and in Reader X, it works just fine. For the time being, uncheck 'Enable Protected Mode at startup' from 'Preferences > Security (Enhanced)' to avoid this situation.

  • Download File Via JavaScript Calls From Website

    Hello,
    I am currently trying to create a program in c# that will download the file "PracticeProfiles.xls" from this website:
    http://fingertips.phe.org.uk/profile/general-practice/data
    I need to somehow on navigation to this site pass the javascript calls "showExport();exportData();", which will start the download.
    Any help would be greatly appreciated.
    Many Thanks

    The link has a method which apparently works, however I had to modify a few things to make it compile:
    public void DownloadIEFile(Browser browser)
    HwndSource source;
    source = HwndSource.FromHwnd(WatiN.Core.Native.Windows.NativeMethods.GetWindow(browser.hWnd, 5));
    Window windowMain = source.RootVisual as Window;
    System.Windows.Automation.TreeWalker trw = new System.Windows.Automation.TreeWalker(System.Windows.Automation.Condition.TrueCondition);
    System.Windows.Automation.AutomationElement mainWindow = trw.GetParent(System.Windows.Automation.AutomationElement.FromHandle(browser.hWnd));
    source = HwndSource.FromHwnd(WatiN.Core.Native.Windows.NativeMethods.GetWindow(new WindowInteropHelper(windowMain).Handle, 5));
    Window windowDialog = source.RootVisual as Window;
    // if doesn't work try to increase sleep interval or write your own waitUntill method
    Thread.Sleep(1000);
    windowDialog.Activate();
    System.Windows.Automation.AutomationElementCollection amc = System.Windows.Automation.AutomationElement.FromHandle(new WindowInteropHelper(windowDialog).Handle).FindAll(System.Windows.Automation.TreeScope.Children, System.Windows.Automation.Condition.TrueCondition);
    foreach (System.Windows.Automation.AutomationElement element in amc)
    // You can use "Save ", "Open", ''Cancel', or "Close" to find necessary button Or write your own enum
    if (element.Current.Name.Equals("Save"))
    // if doesn't work try to increase sleep interval or write your own waitUntil method
    // WaitUntilButtonExsist(element,100);
    Thread.Sleep(1000);
    System.Windows.Automation.AutomationPattern[] pats = element.GetSupportedPatterns();
    // replace this foreach if you need 'Save as' with code bellow
    foreach (System.Windows.Automation.AutomationPattern pat in pats)
    // '10000' button click event id
    if (pat.Id == 10000)
    System.Windows.Automation.InvokePattern click = (System.Windows.Automation.InvokePattern)element.GetCurrentPattern(pat);
    click.Invoke();
    However I am getting null when I try to get the hwnd source, can't see why?
    Any Suggestions?
    Many Thanks

  • Calling Selection Screen in Modal dialog box

    Hi Experts.
    I have created screen 9000 having user interface and in tool bar there is create button in the screen 9000
    The create button 9001 will call another screen with different I/O fields (9001 is Modal dialog screen).
    In the 9001 there is push button for which the selection screen is called 9002.
    I have declared 9002 as subscreen and called the screen 9002 in user command.
    In the Screen 9001 when user clicks the push button i need to get pop up screen where the user select some data.
    How i need to do ?
    I am getting error can't call subscreen in modal dialog box.
    Thanks,
    ERPSAP

    HI,
    HOpe this will help you
    How to call table control in subscreen in module pool program
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/reg-tab-strip-control-module-pool-abap-444944
    http://12go.com/sap/search?query=title%3A(calling%20subscreens%20in%20module%20pool)
    Regards,
    Pravin

  • Saving and Opening files from Flash Drive Mac to Windows Computer

    Hi!
    I recently purchased a generic Flash drive (2gb). I am having problems saving things on it. Sometimes when i drag a file to the flash drive icon it doesn't load properly or transfers well. I try opening it and it says: "FILE ERROR
    Couldn't open the file. It may be corrupt or a file format that Preview doesn't recognize." Some documents do open well. I also tried opening files on a windows computer and it says it has to be formated. I format it and of course everything deletes.
    Does anyone know how to fix this problem?
    Thanks

    OK. I did.
    But here is the problem, it still doesn't save certain file on the flash drive. Most of the files are either jpg.,cwk.,pdf., or mov.
    The mov. won't even play. It works fine when i save files from a windows computer, but not when i save from my mac.
    I really have no idea why its doing this. I am aware that certain file can't be opened from a mac to a window, but i just don't know why, when i place a file into the flash drive icon and try to re-open it, it says the error message again (On my mac).
    Thanks.

  • Executing javascript actions from flash...

    I have a flash header with my site navigation in it. I want
    to use this great javascript utility (loaded in the head section of
    my page) that dynamically loads page content, instead of reloading
    the whole page. This works great with static html text links - but
    I'm having a hard time getting it to work from flash.
    Here is the text link that works great:
    <a class="menu" href="javascript:ajaxpage('home1.html',
    'contentarea');">test link</a>
    Here is my actionscript that doesn't work:
    on (press) {
    //Goto Webpage Behavior
    getURL("javascript:ajaxpage('home1.html', 'contentarea');");
    //End Behavior
    Any thoughts on what I should do different in my actionscript
    to get this javascript to work properly?

    Try using the built-in ExternalInterface class.
    http://livedocs.adobe.com/flash/9.0/main/00001652.html

  • SCORM Issue, fscommand LMSGetValue call from Flash

    Hi all
    I'm using fscommands to communicate with the SCORM 1.2
    template published from Flash. I need to use fscommand because,
    even though I'm working in Flash 8, I'm working in an older file
    that was created in Flash 6. And
    everything breaks when I try to publish it to version 8.
    So I can't use the ExternalInterface method, I have to use
    fscommands.
    Now my problem is that I'm able to write to the LMS using the
    following:
    fscommand("LMSSetValue", 'cmi.suspend_data,'+toLMS);
    //<--toLMS is a string of text i want saved
    fscommand("LMSCommit", "");
    BUT I'm not able to retrieve that string later. I try to use:
    fscommand("LMSGetValue", "cmi.suspend_data,returnVal");
    //<--returnVal is a string declared earlier
    Ive also tried a number of variations like:
    fscommand("LMSGetValue", 'cmi.suspend_data,'+returnVal);
    var fromLMS:String = String(fscommand("LMSGetValue",
    "cmi.suspend_data,returnVal"));
    textbox.text = String(fscommand("LMSGetValue",
    "cmi.suspend_data,returnVal"));
    fscommand('LMSGetValue', 'cmi.suspend_data,returnVal');
    Nothing has returned anything.
    I do know for certain that my main_DoFSCommand in my HTML is
    called, it then calls the SCOGetValue, and that successfully calls
    the LMSGetValue function. And at each call, the variables being
    passed are all as expected.
    So this is making me wonder if I'm actually calling it
    correctly from Flash in the first place. And with anything
    pertaining to SCORM and Flash, I haven't found much out there
    pertaining to this, so hopefully someone here can help.
    Thank you in advanced
    Chris

    I have the same problem, and i have send request complementary upgrade (Adobe® Flash® Builder® 4.7 Complimentary Upgrade), and only received a Acrobat change licensed...
    I´m working with 4.7 Beta the last mounths, and now all the days have to see "please enter your license". So one problem that you can jump with money (if you have that money..), isn´t a problem. Like a i have license from flex 3, upgrade to flex 4, and upgrade to flex 4.5, i´m going to take de upgrade from 4 standard to 4.7 standard (47,97 euros), and not waste my time and money on calls. So yes, I'll see adobe with another eyes...
    Best regards,
    José Ramón León

  • Can I Capture Javascript Calls from a Loaded SWF?

    My scenario:
    My main movie (SWF A) loads another movie (SWF B) and plays it.
    SWF B is legacy content - I can't modify it.
    SWF A is AS3. SWF B might be AS2 or AS3
    SWF B makes several calls to a javascript function that would normally reside in the hosting web page.
    The javascript calls might use ExternalInterface, or they might use getURL(javascript: xxx) or they might even use fscommand.
    My questions:
    Is there any way I can intercept the javascript call in movie A? I don't want to have to resort to the browser, so simply using ExternalInterface or similar to pipe the request back into the movie won't work.
    If there is a way, how does it vary across the different versions (ie. what's the difference between the child movie being AS2 or AS3, and what's the difference between the various means of calling js?
    I'm working on a web deployment, using Flex 4.0. I would be interested also in whether this is possible in Air, or Air Mobile.
    Many thanks in advance for any replies.
    JcFx
    http://www.jcfx.eu

    no, not with all those constraints.

  • Calling a javascript function from Flash

    Maybe someone out there can help?
    I'm trying to set a variable in AS3 and then use an event to call that variable.  The links are set in an xml file.  I have it working with hyperlinks using navigateToURL, but it's not doing exactly what I want.   What I want is to use flash to call the link in the xml file.  That link will target a javascript function. There is no need to open a new window.  I'm trying to target a particular div on the page.   Here's what I have so far:
    import flash.net.navigateToURL;
    import com.flashloaded.as3.PhotoFlowEvent;
    function eventHandler (eo:PhotoFlowEvent):void {
    var request:URLRequest = new URLRequest(eo.data.link);
    navigateToURL (request,"_self");
    <?xml version="1.0" encoding="utf-8"?>
    <photos path="images/">
       <photo name="photo1" url="1.png" link="javascript:loadContentA();">This is photo 1</photo>
    </photos>
    I'm thinking there must be a way to set the variable and then use ExternalInterface in flash to do the rest of the work?
    any help is greatly appreciated!    Cheers!

    <script type="text/javascript">
    function loadContentA(elementSelector, sourceUrl) {
        $("#mainContent").load("ad01.html");
    </script>
    <?xml version="1.0" encoding="utf-8"?>
    <photos path="images/">
       <photo name="photo1" url="1.png" link="javascript:loadContentA();"></photo>
    </photos>
    import flash.net.navigateToURL;
    import com.flashloaded.as3.PhotoFlowEvent;
    function eventHandler (eo:PhotoFlowEvent):void {
    var request:URLRequest = new URLRequest(eo.data.link);
    navigateToURL (request,"_self");
    photoflow.addEventListener (PhotoFlowEvent.CLICK_SELECTED, eventHandler);

  • Printing from FLASH without "Print dialog Box" Pop-up window?

    hi guys,
    i got a flash + OSX question, maybe someone can help me,
    i'm working on a Adobe Flash (Flash version 9, actionScript
    3) project, running on a MacOS X 10.4, on a core2duo iMac, it is
    connected to a printer (Xerox Phaser 6360).
    - the flash will be displayed in full screen.
    - it is a "create your own postcard- &- print it out"
    flash-based multimedia project.
    - so Flash will need to print stuff.
    issue is:
    - everytime when something need to be printed, macOS X will
    prompt a "Print Box" pop-up window say Cancel or Print (see my jpeg
    below).
    - so it might overlap on top of my Flash project, which is
    running full screen (so having the pop-up window overlapping my
    flash is no good).
    so i need a solution to avoid this, any idea?
    what i can think of are:
    A- is there a way to avoid/by-pass this step? meaning a way
    not to show this?
    or
    B- or is there a shareware/way to "auto-click RETURN button"
    so even this screen appear it will be "auto-click" away.
    or ..C?
    i knew there is a Plug-in (or Xtra) for Macromedia Director
    called: Print-o-matic,
    the URL is:
    http://www.printomatic.com/products.cfm/
    it work well on the Director on Mac OS7, but they only made
    it for Director & Authorware, not Flash :-( do you know
    something similar for Flash?
    this
    is the pop-up Print dialog box i meant (which i want to avoid),
    click to view
    or u can copy the URL to view there:
    http://photos-g.ak.facebook.com/photos-ak-sf2p/v193/184/11/743997016/n743997016_546542_881 6.jpg
    about the printer URL:
    [url=http://www.office.xerox.com/printers/color-printers/phaser-6360/enus.html]High
    speed color for high volume printing - Phaser 6360[/url]
    hope i'm able to get a solution here.
    thanks guys,
    cheers,
    tintoy

    quote:
    Originally posted by:
    actiontintoy
    so does anyone got any solution for this issue?
    which is:
    able to print without showing the "print dialog box" pop-up
    window,
    pr any other way to by-pass the pop-up window,
    thanks.
    BTW, i'm adobe Flash + mac OS X 10.4
    Hi...did you solve the problem?
    Would you mind telling me how to disable print dialog?
    Thanks!!!

Maybe you are looking for

  • Free goods Determination in Quotation

    Hi All, I found out from help.sap that free goods determination doesn't take place in quotations. (Reason: Free goods determination takes place only when document category is "C") please correct me If I am wrong. I have a user who is after my BLOOD n

  • I have a new iMac - how do file share my music and photos from my old mac to my new mac?

    I want to transfer my music and photos from one Mac to another - but I don't want to transfer anything else - what is the best way to do this? Thanks

  • No Images in Any Folders

    I am using Aperture 2.1.4 and when opening Aperture I see all of my folders and projects listed in the Inspector but now only outlines of the images. Here is what triggered this.  By mistake I transferred the Aperture Library icon in my Pictures fold

  • Redeem serial number

    I had registered acrobat pro X and then due to problem with my laptop I reinstalled again. The acrobat does not recognise my serial number which was registered at that time. how to redeem?

  • How do I get adobeacrbat to install?

    how do I get adobe acrobat  to install?