Submitting variables to an ASPX file WITHOUT opening new window

Hello,
I'm trying to submit some variables from my flash to an aspx page on a different domain which will handle them and put them in a database.  I've tried a number of options, but the only ones that have worked also result in a new window/tab being opened, and I am trying to avoid this. 
For example, I tried a loadVars with the sendAndLoad() function, but it did not work because the "load" portion requires the aspx page to be on the same domain as the swf- which it is not.
the send() function does not work either, because it requires you to specify a target (_self, _blank, etc) and that causes a new tab to open, or a redirection on the current page- both unacceptable, as I am trying not to interupt the user's experience on the page the swf is featured on.  send() does succeed in submitting the variables, at least, but as I said, it opens a new tab/redirects current tab.
One solution is to enable outside domains access on the server-side, but this is not ideal.  I'm hoping for a flash solution.  Any thoughts?
here's the code:
var dataLoader = new LoadVars();
var junkLV:LoadVars = new LoadVars();
junkLV.onLoad = function(success:Boolean) {
    if (success) {
        trace("We are in business.");
        greenLight_mc._alpha = 100;
    else {
        trace("FAIL");
        redLight_mc._alpha = 100;
dataLoader.firstname = firstName;
dataLoader.lastname = lastName;
dataLoader.email = emailAddress;
dataLoader.dest = destination;
dataLoader.sendAndLoad("url.aspx", junkLV, "POST");

Oh I'm sorry now I understand why you were asking.  the "url.aspx" is not the actual URL.  It will be a full url in the form http://www.domain/directory/file.aspx, which will indeed be on another domain.
Sorry for the confusion. 

Similar Messages

  • Download a file without opening new window

    Hi everybody,
    I need to save a file to local PC into a certain predefined file in such a way that user does not get any pop-ups or new windows - i.e. 'in background'.
    I have tried 'FileDownload' - this get file content displayed in new window and if saved is to be allowed - a save pop-up is displayed.
    If I try attach_file_to_response of cl_wd_runtime_services - it also gives a pop-up.
    Does anybody know a way to download a file to local PC in such a way that the content of the file is not displayed in the new pop-up window and save dialog does not appear?
    Thank you for your help.
    Helen

    Hi Olena,
    You will not be able to download a file in the background due to the browser security defaults. All browsers always prompt the users to accept files otherwise viruses and trojans would be able to be installed on your pc without you accepting them.
    I know it is possible to write via SAPGui without a prompt but not from a browser.
    Sorry.
    Richard
    PS Dont forget the points!

  • Display Archived Document in Abap Webdynpro without opening new window.

    I would like to create a wd4a application that receives the parameters of Archive ID and Doc ID and displays the archived document.  The document is stored as a pdf on SAP's content server.  Currently the webdynpro will open a separte blank Window.  I have not defined any view elements to the embedded view because I do know which view element I should to display the archived documente.  I have a url to the document and it will get displayed by creating an new window by executing  the code below to launch the file in a separate window.   The Adobe Viewer creates a new window to view the document.  Does  anyone know what view Uielement I should use to view the document in the main window and main view?
    Thank you
    Tom
    data ld_url type dms_url.
    data ls_message type bapiret2.
      call function 'SCMS_AO_URL_READ'
        exporting
          MANDT               = SY-MANDT
          arc_id              = id_archive_id
          doc_id              = id_arc_doc_id
          COMP_ID             =
          DOCUMENT_TYPE       = ' '
          PDF_MODE            = 'A'
          HTTP_URL_ONLY       = ' '
          DP_URL_ONLY         = ' '
           loc_info            = 'F'
          LIFETIME            = 'T'
          NO_CACHE            = ' '
       importing
         url                 = ld_url
       exceptions
           error               = 1
           others              = 2
    assert sy-subrc = 0.
    added by YINS Mar.05 2007
      if sy-subrc <> 0.
        ls_message-type = 'E'.
        ls_message-id = sy-msgid.
        ls_message-number = sy-msgno.
        ls_message-message_v1 = sy-msgv1.
        ls_message-message_v2 = sy-msgv2.
        ls_message-message_v3 = sy-msgv3.
        ls_message-message_v4 = sy-msgv4.
        append ls_message to wd_this->mt_messages.
       wd_this->flush_messages( ).
        return.
      endif.
      data:
        lr_api_comp_controller  type ref to if_wd_component,
        lr_window_manager       type ref to if_wd_window_manager,
        lr_window               type ref to if_wd_window,
        ld_url_str              type string.
      lr_api_comp_controller = wd_this->wd_get_api( ).
      lr_window_manager = lr_api_comp_controller->get_window_manager( ).
      ld_url_str = ld_url.
      lr_window = lr_window_manager->create_external_window(
          url   = ld_url_str
      lr_window->open( ).

    I found a solution after much troubleshooting including uninstalling/reinstalling Office 2010 which didn't solve the issue. 
    Here it is:
    When Outlook or some other Office program is minimized in the taskbar and won't open, right click the taskbar to bring up task manager. 
    Right click the program in the task manager list that is giving trouble and click Maximize.  You should now see a full screen.
    This worked for me and solved the "open and stays minimized" delima.  Hope this helps you too.  Cheers :)
    Thanks a bunch this saved me a potential headache!

  • HTTP form post from Web Dynpro Java Application without opening new window

    Hi Experts,
    We are trying to submit form data to an external URL from Web Dynpro Java application. We are achieving this with the following piece of code.
      try
       strPrintContent="<html>"+
         "<head>"+
         "<script type=\"text/javascript\">"+   
         "function myfunc () "+
         "{"+
         "var frm = document.getElementById(\"paymentForm\");"+
         "frm.submit();"+
         "}"+
         "</script>"+
         "</head>"+
         "<body onLoad=myfunc()>"+
         "<form id=paymentForm  method=post action=\""+merchantURLPart+"\">"+
         "<INPUT type=hidden name=username value="+userName+">"+
         "<INPUT type=hidden name=pass value="+passWord+">"+
         "<INPUT type=hidden name=senderid value="+senderID+">"+    
         "<INPUT type=hidden name=dest_mobileno value="+mobile+">"+
         "<INPUT type=hidden name=message value='"+msg+"'>"+
         "<INPUT type=hidden name=response value="+response+">"+
         "</form>"+
         "</body>"+
         "</html>";    
      IWDWebResource webResource = WDWebResource.getWebResource(strPrintContent.getBytes(),WDWebResourceType.HTML);
      IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(webResource.getAbsoluteURL(),"WBSEDCL");
      window.show();
      catch(Exception e)
      wdComponentAPI.getMessageManager().reportException("Error : "+e.toString(),false);
    But it opens another window. We dont need that. We have to stay on the same window.  Please suggest what can be done.

    Hi,
    You can create a HTML file with the request post parameters and the external URL something like this:
    public java.lang.String GetRedirecturl( )
    // External URL
    String html = "<html><head></head><body onload=\"load()\"> " +
    "<form id=\"form1\" action=\"https://www.abc.com/xyz.jsp\" method=\"POST\">" +
    // Post Parameters
    "<INPUT TYPE=\"HIDDEN\" NAME=\"Param1\"VALUE=\""+Param1Value+"\">"+
    "<input name=\"sap-wd-resumeurl\" type=\"hidden\"/>" +
    "</form> " +
    "" +
    "<script>" +
    "function load(){" +
    "var loc = window.location.search.substring(1);" +
    "var queryString = loc.split(\"sap-wd-resumeurl=\");" +
    "if(queryString.length > 0)" +
    "{" +
    "var resumeURL = queryString[1].split(\"&\");" +
    "if(resumeURL.length >= 0)" +
    "{" +
    " document.forms['form1'].elements['sap-wd-resumeurl'].value= unescape(resumeURL[0])" +
    "}" +
    "}" +
    "document.getElementById('form1').submit();" +
    "}" +
    "</script>" +
    "</body> </html>";
    String redirectUrl = "";
    byte[] byteArrayHtmlData = null;
    try {
      byteArrayHtmlData = html.getBytes("UTF-8");
    } catch (UnsupportedEncodingException e) {
      wdComponentAPI.getMessageManager().reportException("Internal error occurred. Please try after some time",true);
    IWDResource htmlResource = WDResourceFactory.createCachedResource(new ByteArrayInputStream(byteArrayHtmlData), "Redirect.html", WDWebResourceType.HTML, true);
    redirectUrl = htmlResource.getUrl(WDFileDownloadBehaviour.AUTO.ordinal());
    return redirectUrl;
    Hope this will be helpful.
    Regards,
    Anurag

  • Safari always opens new windows/tabs

    Every time I click on a link Safari opens a new window or tab instead of just going to that link in the window that I am in. So when I close Safari I have multiple pages/tabs open.  It used to just go from page to page without opening new windows or tabs. What setting needs to be changed to get back to the single window?

    I figure out what the problem is. I set the Google search to open link in new window, and then it can be opened in tab with one tap. Thanks for help!

  • Every each click on mp3, audio, video, photo open new window...

    hi
    i have problem with my KDE, when i open some folder with for example music... i have 100 track, and click on any one, KDE open window of player, good... but when i click on other file, KDE open NEW window of player, don't use currently open window but open new, same problem i have with video and photo files, and this not confortable to use because all the time i have to close first existing window of player before click on other file... maybe someone know how i can fix this problem ??
    thx

    its not work, same problem, dosent meter about player... in GNOME its fine, but only in KDE the problem existing.

  • In Snow Leopard, there was a quick look feature that allowed you to look at files without opening the program.  It doesn't show up in Lion on my iMac.  Any ideas?  Thanks

    In Snow Leopard, there was a quick look feature that allowed you to look at files without opening the program.  It doesn't show up in Lion on my iMac.  Any ideas?  Thanks

    While in Finder, select the file (click on its icon once) then press the Spacebar.

  • How can we get the artset from a .ai file without opening it?

    Hello All,
    I have one .ai file, lets say sample.ai file. located in C drive. so the complete file path is "C:\Sample.ai".
    and lets assume the sample.ai file has one traingle shape(3 path type arts) in it.
    Now I want to get the 3 path arts (artset)  from sample.ai file without opening it in AI.
    The function protoype is like below
    AIArtSet& artSet GetArtSetFromAFile( ai::FilePath& filePath );
    Is there any API like above function in AI? or is it possible to get the art(s) from a file without opening it in AI?

    Not to my knowlege. The API only operates on active documents as far as I know.

  • Print pdf files without open them

    i am using gnome and adobe reader to open pdf file. however, is there anyway i can print the files without open them ?

    lpr somefile.pdf - as long as cups is configured correctly.

  • How can I save an indd file as an idml file without opening the document?

    I cannot open an InDesign file that was made in a later version of InDesign because I don't have the right plugins. How can I convert this indd file to an idml file without opening it?

    Well..... sort of depends on your version.
    If you have any version as part of CC subscription, the latest updates are supposed to be using a cloud-based service to generate the IDML for you so that you can open the newer files seamlessly.

  • My pc files are open with windows media player

    hello,
    My  computer's all files are open with windows media player. i've done every thing i could & still the same.  when i try to open file, it opens with widows media player. i'm so confussed.
    Thank You

    Harisarah,
    You can change the default program for opening files with the following:
    Set your default programs
    Open Default Programs by clicking the Start button , and then clicking Default Programs.
    Click Associate a file type or protocol with a program.
    Click the file type or protocol that you want the program to act as the default for.
    Click Change program.
    Cheers, Curt Winter Certified Microsoft Professional Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied. If you found my post helpful, please mark it as the answer.

  • Cannot delete exe files - The action can't be completed because the file is open in Windows Explorer

    We have received 3 new computers with Windows 8.1. All of us 3 have the same problem: we cannot delete exe files with message "The action can't be completed because the file is open in Windows Explorer"
    For example, I download skypeinstall.exe on desktop, install the program correctly and then try to delete the file: file is in use by Windows Explorer, cannot be delete.
    We reboot computer, we are able to delete the file. But, if I restore the file from the recycle bin on the desktop, I cannot delete it again until I reboot the PC. I used ProcessExplorer to see what is locking it and I can see 5 instances of explorer.exe
    locking the file.
    I can always reproduce the same way:
    1-Reboot
    2-Delete exe file
    3-Restore file
    4-Delete stop working and 5 explorer.exe handle are locking it.
    I have tried the following so far after reading multiple threads:
    - De-activating Windows Search service
    - Activating User Experience service
    - Deleting from command prompt (no success)
    - In folder options: inactivate display icon on thumbnail and activate always display icons, never thumbnail
    - Changing folder view (contents, detail, small icons...)
    - Using Lock Hunter - not working until reboot
    None of these worked.
    We all have Windows 8.1 with Crucial SSD drive, could the problem be linked with the SSD drive incompatibility?
    Any help would be appreciated.

    Hi,
    Please try to make a clean boot for your system, then check if this problem resolved.
    Clean Boot: http://support.microsoft.com/kb/929135
    If problem persists, try to open Resource Monitor to check handle of Explorer.exe, if there any exception, end them for test.
    Roger Lu
    TechNet Community Support

  • How can I put OSX 10.7 on a new Macbook Air. Maverick no longer allows "open file in a new window" and I really miss it. At the Apple Store they told me it can't be added to the new OSX 10.10 so I  want to change the OSX on the new Macbook Air and it

    I have been using a 2012 Mac pro to do HD video editing. I bought a new portable Macbook Air only to find that Maverick no longer has "open files in a new window" which I use all the time in the very large folders of video clips and royalty-free music. I asked at the Apple Store how I could get this back on the Macbook Air and they said it couldn't be done so I thought I would re-format the HD and install 10.7 on it and was notified by the Macbook Air I can't put 10.7 on that computer. Apple use to give this as an option but now they have gone more to the attitude of "Do it our way or go to ****!" In anger I went out and bought a Dell Laptop and Pinnacle Studio 17 which I have been learning to use. I have been an Apple/Mac user since 1979 and would still rather do my video editing on a Mac. Is there any way that I can force the Macbook Air to let me load in OSX 10.7 where there is still the option to  "open files in a new window" or is there a way to add this to Maverick? The experts at the Madison, WI Couldn't give me any help on this.

    Choose Preferences from the Finder menu, click on the General tab, and uncheck the box to open folders in a new tab.
    (117195)

  • Open file in a new window

    Hi All,
    I am adding a file item to a folder in a content area. The folder is published as a portlet on a page. Now when the user clicks on the file item, I want the file to open in a new window. I know its possible to do it when you add an URL item where there is a option where you can select the item to open in a new window. But in case of a file item, I did not find any way for openiging it in a new window. I would like to know how to open the file in a new window and if there is a workaround for the same.
    I am using portal version 30.6.6.5.
    Thanks
    null

    Here's a solution for Portal 3.0.8 or later that allows you to open a file in a new browser window. It requires that you create a custom item type, and use a procedure to display a link to the file.
    1. Create the following procedure. You can create it in any schema, but the schema has to have select privilege on the view 'WWSBR_ALL_ITEMS' in the portal schema. In this example, the portal schema is PORTAL30. If you're running version 3.0.8, you'll also need to apply the patch to bug 1724250.
    Create or Replace PROCEDURE OPEN_FILE (p_itemid IN NUMBER) as
    fileURL varchar2(1024);
    baseURL varchar2(256) := '/pls/portal30/docs/';
    begin
    select baseURL &#0124; &#0124; filename into fileURL
    from portal30.wwsbr_all_items
    where id = p_ItemId;
    htp.p ('Open File');
    EXCEPTION
    when NO_DATA_FOUND then
    htp.p('Document not found or access denied');
    when others then
    htp.p(sqlerrm);
    end;
    The procedure generates a link to the item filename with a target of "_blank", which opens the file in a new browser window. Replace the baseURL attribute value with the correct Database Access Descriptor (DAD) and Document Access Path ("/docs") for your site.
    2. Grant execute on the procedure to the portal public schema. The name of this schema is <portal schema>PUBLIC. So if your portal schema is PORTAL30, grant execute on the procedure to PORTAL30PUBLIC.
    3. Create a custom item type, using the base item type of "File". I recommend that you create the type in the Shared Objects content area, so it can be used in other content areas (from the Navigator, go to the Content Areas tab, select Contents for Shared Objects, Custom Types, and Item Types - Create). Edit the new type and go to the Procedures tab.
    4. In the Procedure Call Properties, enter:
    [list]
    [*]Type: PL/SQL
    [*]Procedure Call: <your procedure schema>.OPEN_FILE
    [*]Link Text: Open File (it doesn't matter what you put here - it only displays if "Display Procedure Results With Item" is unchecked.)
    [*]Check "Display Procedure Results With Item"
    [list]
    5. Under "Pass Attributes as Parameters", enter:
    [list]
    [*]Attribute: Item Id
    [*]Pass As: p_itemid
    [list]
    (Notice how you can pass most of an item's attributes to a procedure. You can take advantage of this feature to write procedures that give you precise control over the rendering of your items).
    6. In the properties for the content areas in which the new type is to be used, go to the Items tab. Specify that you want the new type to be visible. You may want to hide the base File item type, so users won't be confused by two different item types for files.
    7. Edit the folder style for the content area. Go to Folder Layout. Edit the region properties for each region in which you will be using the new item type. For each region, replace "Display Name or Image" with "Display Name". "Display Name or Image" will render the Display Name as a link to your file that opens the file in the same browser window. "Display Name" simply renders the display name as text, with no link.
    8. Now you can create items of the new item type. Each item's Display Name will appear next to a link that says "Open File". Clicking the link will cause the file to open in a new browser window.
    Hope you find this useful.
    Regards,
    Jerry

  • Open file in a new window thru custom global link

    Hi All,
    I have created a custom global link. I want to open a PDF file (present at OA_HTML) from that link.
    So, I created a function for that link having below properties:
    Web HTML : file_name.pdf
    Type: SSWA plsql function that opens a new window (Kiosk Mode)
    File is opening successfully but in the same window. I want to open that file in a new window.
    Please suggest some solution for this.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I have created a blank page and write logic to download file in that.
    Later, on click on global link, navigated the same to that blank page. So, open save dialog is coming on click of custom global link.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for