Open popup window and redirect user to home page in sandboxed solution

i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
clicks ok button in popup window i want user to be redirected to the home page of the site.
i tried to open popup and showed success message by below code
 string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
'" + gotohomepage + "';", true);
but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solution

Page class and script manager are not supported in sandbox solution
You can create model popup to achieve this
below are the reference links
http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution

Similar Messages

  • Open popup window and bring text to opener window jsp [help~]

    how to click a button then open popup window.
    and add somthing in the popup window, that can bring the text in the popup window to opener window in jsp.

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • How to create a button to get File Open popup window and select a file

    Hi,
    I have an applet that contains Browse button. When user clicks on that, a File Open popup window should be displayed to enable user to select the input file. This file path should be given back as parameter.
    How to do this? I have tried using LoadFileData but not able to get the desired result.
    Any pointers would be helpful.
    Thanks,
    Lalitha Dandibotla

    Do you need only the path or also the file back into Siebel?
    If you need both, the have a look at any attachment applet, that will give you a good start.
    Are you using Siebel in High Interactivity (HI) Mode or Standard Interactivity (SI) Mode?
    If you are in SI Mode have a look at the html type
    <input type="file">
    http://www.w3.org/TR/html401/interact/forms.html#h-17.4
    Axel

  • Javascript to open popup window and disable parent window

    Hello,
    Can anyone please help me the javascript issue.
    I have a button which opens up a pop window and when this popup window is opened i want to disable the parent window and enable it when i close the popup window.
    can anyone please help me with a possible approach.
    Thanks,
    Orton
    Edited by: orton607 on Aug 25, 2010 2:19 PM

    jari,
    I have a problem with this modal window approach and I have noticed. The thing is I am able to open up a popup window which is a simple data entry form. In this form i have the button Create which calls a javascript function and then an pl/sql insert process.
    Below is the javascript function for the button create
    function createNew()
    doSubmit('CREATE');
    alert('Successfully inserted the record. Click OK to close popup window and to \n view details of the new inserted record please select the table on parent window.');
    window.close();//close the popup window
    window.opener.doSubmit('REFRESH');
    //call doSubmit function on the parent window to cause the page to refresh.
    }The problem, i have is when i open up a popup window in this window when I click on the create button, its again opening up a new empty window. i don't understand what might be the problem.
    can you please help me out with this one.
    thanks,
    orton
    Edited by: orton607 on Aug 25, 2010 4:19 PM

  • Open popup window and passing parameter to the popup

    Hi, I want to open a popup whenever a button is pressed (the page number is 10)
    my first attempt was to make a process which have a button condition (after submit)
    BEGIN
    htp.p('<script type="javascript/text">');
    htp.p('javascript:popupURL(
    "f?p=&APP_ID:12:&APP_SESSION.::NO::P12_PERSON::PERSON_ID")');
    htp.p('</script>');
    END;
    I want to pass the value
    from
    page 10 item :PERSON_ID (initial page)
    to
    page 12 item :P12_PERSON (this is the popup page)
    I also made a branch for the button which redirect to page 10, since no button can be left without any branch or redirect.
    the problem is, I dont see any popup was opened. Is there something wrong on my syntax?
    thanks for your attention, I appreciate any suggestion
    danny

    Thanks many many thanks for your help Varad, I'm still having problem with the JS though
    About the popupname I found another function on apex js documentation, the function name is popUpNamed(url,name). Now I don't have any problem with the date picker anymore.
    My JS look like this now
    <script type = "text/javascript">
    function buildURL()
    var pg = $x('P10_SHOWROLLELIST').value;
    var prsn_id = 'P'+ pg + '_PERSON';
    popUpNamed('f?p=&APP_ID.:' + pg + ':&APP_SESSION.::NO::' + prsn_id + ':&PERSON_ID.', 'Rolle' );
    </script>
    but still it seems like this line" var pg = $x('P10_SHOWROLLELIST').value;" still produce an error on my side. I tried to change pg into a fix value for eg: '12' and it works.
    P10_SHOWROLLELIST is a select list which return a value
    this is the query of the select list
    SELECT 'Mitarbeiter' AS D, '12' as R
    FROM persrollemitarbeiter
    WHERE person = :PERSON_ID
    UNION ALL
    SELECT 'Student' AS D, '13' as R
    FROM persrollestudent
    WHERE person = :PERSON_ID
    UNION ALL
    SELECT 'Mentor' AS D, '14' as R
    FROM persrollementor     
    WHERE person = :PERSON_ID
    UNION ALL
    SELECT 'Korrektor' AS D, '15' as R
    FROM persrollekorrektor
    WHERE person = :PERSON_ID
    UNION ALL
    SELECT 'Tutor' AS D, '16' as R
    FROM persrolletutor
    WHERE person = :PERSON_ID
    danny
    Edited by: user8241814 on 26.06.2009 07:56

  • I downloaded the most recent version of Firefox and now once I open the internet and bring up my home page....it becomes "not responding".

    I downloaded the newest version last week of Firefox and now I cant use Forefox. When I open the internet it comes up fine to my homepage (MSN.com), but after 5 seconds or so it locks up and I get "Firefox is not responding" and I cant shut it down or anything....... I have had to use Internet Explorer to do my job and I like Firefox (when it worked) SO much better. Anybody suggest anything???

    P. S.  Just got brave and uninstalled iTunes and re-installed it.  Got the same error message:  Entry Point Not Found - The procedure entry point ADAdPolicyEngine_DidEnterStation could not be located in the dynamic link library iAdCore.dll
    Now I can't get to iTunes at all.  Help, please!
    Littleredz24

  • Popup window and navigate to home page visual web part SP 2013

    I've a visual webpart where i am inserting items in the list in the button click event as below
    protected void btnSubmit_Click(object sender, EventArgs e)
    SPSite site = new SPSite(SPContext.Current.Site.OpenWeb().Url);
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists["Request"];
    SPListItem item = list.Items.Add();
    item["Title"] = txtBoxTitle.Text;
    item.Update();
    Now after items is being added in the list i want to show popup window with message showing that
    "item has been inserted and click here to go to home page of the site"
    how do i achieve this can anyone help in this
    Note:there is a restriction in our requirement so only sandboxed solution can be used so i want resolution for sandboxed solution 

    You can' t use criptManager.RegisterStartupScript for redirection in sandbox solution.
    Please find the below reference
    http://social.msdn.microsoft.com/Forums/office/en-US/bd37b640-e225-41c0-8344-9f3b52fe0434/open-popup-window-and-redirect-user-to-home-page-in-sandboxed-solution?forum=sharepointdevelopment
    You have one more option to open a popup SP.UI.ModalDialog
    Please find the below reference
    http://msdn.microsoft.com/en-us/library/ff798375.aspx
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx

  • Why does selecting a web link open 2 windows, one with the link and the other the home page? This is a single click of the mouse.

    When I single click on a weblink (usually in an email, Firefox starts up and opens two windows; one with the selected web page and one with my home page. If Firefox is running, it opens a new tab which is what normally occurs. It is only when it is not open that I now get the 2 windows. I have an imac running OSX 10.6.3
    == This happened ==
    Every time Firefox opened
    == In the past couple of weeks.

    Hi,
    The rolling over from radius servers only occurs on the same wlan and only when the controller deems the radius server being dead. However, if you get rejected from one WLAN but then you reassociate to another WLAN there is no mechanism in place in rejecting the attempt because they previously failed on a seperate wlan. This happens all the time with users connecting on incorrect wlans.
    The failover feature is for when you have multiple servers (usually for redundancy) on the same WLAN. So when user is rejected but radius server 1 the process stops there and the request isnt sent to radius server 2.
    Hope that helps!
    Tarik Admani
    *Please rate helpful posts*

  • I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • Close popup window and refresh the parent window

    Hello,
    I have a button in a normal report, when clicked opens up an popup window which is a form containing some items and here in this form (i have some editable text items) I make some changes and click on the apply changes button -- this should update the form, close the popup window and should refresh the parent window.
    can anyone please help me out with this issue.
    Thanks,
    Orton

    you have your popup window. When they apply the changes you want it to close the window, right?
    Modify the button (save, apply changes) and give it url redirect to the custom function you create (See below): javascript:saveChanges();
    in the page header, add a new function:
    <script type="text/javascript">
    function saveChanges(){
         doSubmit('SAVE');//this is the line to save the current form on the popup window. (This assumes SAVE is the request value that should udpate the db)
         window.close();//close the popup window
         window.opener.doSubmit('REFRESH');//call doSubmit function on the parent window to cause the page to refresh.
    </script>

  • Safari opens a blank window in addition to normal home page Window

    Recently when opening safari, some times I get two windows, one with my normal home page, the other is blank and has focus.
    Also when closing one of the open safari windows these all close.
    Any ideas on how to cure?
    Steve

    Steve,
    Quit Safari, find the com.apple.Safari.plist file in your Macintosh HD/Users/yourusername/Library/Preferences Folder, drag it to the Desktop, log out/in or restart and let us know what happens.
    ;~)

  • Why does Firefox not open my windows and tabs from last time until I have tried starting 3 or 4 times?

    I have this problem with opening Firefox:
    My Startup options are set to "When Firefox starts: Show my windows and tabs from last time"
    However, each time I start Firefox, by clicking the icon in the Taskbar, it opens with a single blank tab.
    I repeat this using "Open New Window" and when I have up to 3 windows, all with single blank tabs open, I close them all. Once more I use "Open New Window" which only then opens with my windows and tabs from last time.
    Naturally, this induces initial panic each time, because I dread the thought of losing all my current tabs.
    What is going on here?
    How can I fix it?
    < Firefox 27.0.1 with Windows 7 Home Premium.>

    This started happening to me with the upgrade to v30. Previously, new windows did the proper thing of showing previous tabs/windows.
    I have history on, not in private mode, and have cleared cache.

  • How to automatically open browser window for getting user id & password

    i have created a jsp page, that page cannot be open by anyone anyway, it should be only visible to me only.
    how do i achieve this.
    my requirement is that whenever any one request for that jsp page, browser should automatically open one window and ask for user id & password, if it is right then the page should be displayed else error should be shown.

    Adding the following to web.xml will define security constraints for all resources under the /admin directory, also only a user in the manager role will have access to these resources.
    For tomcat you can look at the conf/tomcat-users.xml file for setting up users and roles
         <security-constraint>
              <web-resource-collection>
                   <web-resource-name>Secure Pages</web-resource-name>
                   <description></description>
                   <url-pattern>/admin/*</url-pattern>
                   <http-method>GET</http-method>
                   <http-method>POST</http-method>
              </web-resource-collection>
              <auth-constraint>
                   <description></description>
                   <role-name>manager</role-name>
              </auth-constraint>
         </security-constraint>
         <security-role>
              <description></description>
              <role-name>manager</role-name>
         </security-role>

  • Error: Open popup window failed

    Hi,
    I'm opening a web page in an StageWebView and by trying to click a link that should open a window, I receive this error:
    [StageWebView] Error: Open popup window failed
    This is the link "Invite your friends" at Google:
    https://developers.google.com/+/web/share/interactive#myBtn
    How to fix that? I hope anybody got an idea!

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • How to export for both windows and mac users

    I'm new to the video stuff, so i have a few questions. i am planning to post videos on my blog. I want to have them in a format that both windows and mac users can play. is this a possibility or will i have to export .wmv for windows and quicktime for mac? i realize that windows users can download quicktime, but i either want the video to be viewable in a format that can be read by all without having to download anything (might be too big a wish :o) ). if i can't do that, then i'd like to have 2 links - one for quicktime and one to the .wmv. in this case, how to i export a .wmv file? i don't see that option anywhere on the share menu? do i need to buy quicktime pro? that leads me to another questions - if i have imovie, do i need quicktime pro? so far i'm having a hard time figuring out what quicktime pro has that imovie doesn't....thanks in advance!

    I'm new to the video stuff, so i have a few questions. i am planning to post videos on my blog. I want to have them in a format that both windows and mac users can play. is this a possibility or will i have to export .wmv for windows and quicktime for mac? i realize that windows users can download quicktime, but i either want the video to be viewable in a format that can be read by all without having to download anything (might be too big a wish :o) ).
    Posting to YouTube and providing a URL link might be the most universal method of playback although quality may be on the weak side.
    if i can't do that, then i'd like to have 2 links - one for quicktime and one to the .wmv. in this case, how to i export a .wmv file?
    WMV is a proprietary compression format. You will either have to purchase the authorized QT components from Flip4Mac or purchase a separate open source converter application like Visual Hub.
    i don't see that option anywhere on the share menu?
    Any you won't even if you purchase and install the QT component -- iMovie '08 only exports to QT compression formats.
    do i need to buy quicktime pro?
    It wouldn't help. Getting QT Pro only unlocks editing and conversion features. It does not add any additional codecs which don't already have installed.
    if i have imovie, do i need quicktime pro? so far i'm having a hard time figuring out what quicktime pro has that imovie doesn't.
    As indicated above, QT Pro allows you to convert to/from any compression formats for which you have working import/export QT components. This can already be be done using GarageBand and iMovie. GarageBand allows you to access any installed QT import/export component while iMovie '08 restricts you to Apple QT components. In addition, QT Pro allows you to create player displays with multiple audio/video tracks, gives you ability to layer graphic elements (e.g, create watermarks, create pictures-within-pictures, etc,), allow the viewer to switch between alternate audio and/or video tracks, and may other things.
    ADDED: If you really want to see what QT Pro can do, check out QTKirk's examples on his DotMac account.
    Message was edited by: Jon Walker

Maybe you are looking for

  • Batch  Determination With out characteristics ..?

    Dear Experts I have finished the batch determination for the SLED but i had to create characteristics for it refrence to VFDAT field in MCHA table but I need to knowhow to refer direct to the field with out refering to the characteristics for example

  • NOTE TO PAYEE

    Hi The requirement is as below EBS is loaded into SAP and when it is processed, the open item gets cleared automatically and a clearing document is being generated. Client requires that the NOTE TO PAYEE info to be captured in the TEXT field of the c

  • Help with Preferences in Dreamweaver Please

    Is there a setting that determines how Dreamweaver writes CSS code? Forenstence, I would like it to remove the white space that it creates by default. So instead of p { line-height: 1.2em; } it writes it like p { line-height:1.2em; }. Notice no space

  • Cannot Even Safe Boot Up

    This happened after watching a movie using an external LCD TV (Samsung LN-S40920) first time ever. Than unhooked in sleep mode and from that point on hooked or stand alone I can never have my Macbook Air boot up. It is less than a year old and I am n

  • Adobe print form margin problem

    Hello, I am trying to print a Adobe print form on Kyocera printer(Using HPLJ4 device type). I want to print content from 0.5 CMs, but if i give no margin in the design,Output is being Cropped.Print preview is okay. Can any one help me? Thanks, Guru P