SP.UI.ModalDialog.showModalDialog(options); pop-up not working in IE8

When i click a button, a pop-up should be opened. i have written below code into a function and called it to button... It works perfect in IW 9 and IE10. but its not working in IE8. please guid me to fix it.
var options = SP.UI.$create_DialogOptions(); 
        options.title ="CDP Access";
        options.width = 400;
        options.height =150;   
        options.html = createDialogElementCDP(); 
        options.dialogReturnValueCallback = dialogCallback;
        SP.UI.ModalDialog.showModalDialog(options);
function createDialogElementCDP()
here my content goes..
Please help me run the popup in IE8 also. 
Thank you!

What if you try something like below:
EnsureScriptFunc('SP.js', 'SP.ClientContext', function () {
EnsureScriptFunc("SP.UI.Dialog.js", "SP.UI.ModalDialog.showModalDialog", function () {
var options = {
title: "CDP Access",
html:'this is html',
dialogReturnValueCallback: callback
SP.UI.ModalDialog.showModalDialog(options);
Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com

Similar Messages

  • Pass QueryString to SP.UI.ModalDialog.showModalDialog(options)

    Hi,
    I need to get some value from the current page QueryString and Pass it as QueryString again to the URL of SP.UI.ModalDialog.showModalDialog(options).  How to do this? Thanks
    Regards, Vikram

    when you create the "options" object, put the querystring in URL parameter:
    to get the current querystring parameters, you can use the function: _spGetQueryParam("<lower case query key>")
    var a = _spGetQueryParam("key1");var b = _spGetQueryParam("key2");var options = SP.UI.$create_DialogOptions();
    options.url = "http://site.domain.com/page.aspx?a=" + a + "&b=" + b;
    SP.UI.ModalDialog.showModalDialog(options);
    if you want to pass the entire queryString:
    options.url = "http://site.domain.com.page.aspx" + window.location.search

  • In iTunes 11.1 (I26) , I cannot find how to delete podcast listings showing undownloaded podcasts. Delete does not work. Option Delete does not work.  Dragging to the trash does not work. Under Edit, Delete is greyed out. Mac OS 10.6.8

    in iTunes 11.1 (I26) , I cannot find how to delete podcast listings showing undownloaded podcasts. Delete does not work. Option Delete does not work. Dragging to the trash does not work. Under Edit, Delete is greyed out. Mac OS 10.6.8.
    Tom at the Genius Bar told me that Option Delete would work. It does not.
    I had to upgrade to iTunes 11.1.(I26) because it is required with OS7 on my iPod Touch (5th Gen). I have tried shutting down iTunes, then shutting down the entire system. This is the first in many visits that the Genius Bar gave me a solution that did not work.
    This is a big awkward computer locked to my desk. I would rather not unlock it and then carry it through a shopping center to the Genius Bar if i can avoid oit.
    When I installed iTunes 11.1, I discovered that Ihad to resubscribe to virtually all of the podcasts that I had previously been subscribed to. That was a surprise.

    Hello Achates:
    I did not read the rather long post. If you wish to reinstall OS X 10.4, use your software install DVD. Backup is essential. To minimize your risk, I would use an archive and install:
    http://docs.info.apple.com/article.html?artnum=107120
    In that way, you will have a fresh copy of OS X and your current settings will be preserved.
    Incidentally, I do not agree that the printer problem is best solved by reinstalling OS X. I have had HP printers for sometime and, on one occasion, had difficulty after an upgrade. HP technical support walked me through uninstalling all traces of the HP driver and then reinstalling.
    Barry

  • Lion 10.7 / pop mail not working...

    on an intel mac pro... pop mail not working... problems with 110 port connecting to server... any suggestions?

    The only possible way to get my mail working with Mac OS X 10.7.4 was to use Thunderbird (latest version, 13) instead of Apple Mail. I don't know if this was related to my ISP only but I'm surprised that there aren't more discussions about this problem. Apparently, it is very widespread from what my ISP said. They said there is a problem with (or change in) the way Apple Mail handles POP accounts under Mac OS X 10.7.x. They are getting dozens of calls about it every day. My POP account, which worked perfectly under Mac OS X 10.6.8, simply would not retrieve mail under Mac OS X 10.7.4 using the exact same settings. I tried absolutely everything that I could find on the Internet to resolve the problem in order to continue to use Apple Mail.
    So for anyone else experiencing this problem, forget Apple Mail. Download Thunderbird and set up your POP account exactly as it was set up under Snow Leopard and your problem will be solved. Looks like Apple has some fixing to do. This is unacceptable, regardless of what Apple's excuse is or whatever their reason was for making this change.
    I like Thunderbird. I'm actually kind of glad this happened now

  • IMac bocked on start up. Password forgotten. Command-option-p-r not working

    iMac bocked on start up. Password forgotten. Command-option-p-r not working

    "Bocked"? Is that a word?
    The key combination you mention is for resetting parameter RAM or PRAM.  Nothing really to do with passwords.
    At what stage is it asking for a password?

  • Commandmenu items highlight is not working in IE8 and firefox

    HI All
    i developed a menu for my project .
    in that menu i have some menuitems
    when i mouseover on commandmenuitem the item is highlighted .
    but this is not working in IE8 and firefox ..
    it is sometimes working in iE7 and some times it is not working.
    Can any one help me

    PDF documents are hosted in an ActiveX or netscape plugin control which have their own printing functions.
    Start>Adobe Reader>Edit>Preferences - to adjust what functionality the PDF document viewer addon displays (menus etc).
    Tools>Manage Addons>Show all addons
    make sure you have both the x86 and x64 versions of your PDF reader Active X control installed and enabled. I would recommend also that you update to the latest version of the vendors' (Adobe?) plugin.
    Possibly you have disabled scripting of ActiveX controls in the IE security zone that your parent page maps to. Also there is an IE security zone feature that prevents navigation to a domain in a zone of lower integrity.
    Tools>Internet Options>Security tab, click "Reset all zones to default".
    when asking developer related questions it is helpful if you can include a link to your website.
    Rob^_^

  • OBI 11g Enterprise Manager (EM Website) does not work with IE8 (v8.0.6)

    I am unable to login to the 11g EM website on Windows x64 2003 server. I get the below error:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0)
    Timestamp: Wed, 6 Oct 2010 10:41:18 UTC
    Message: Object doesn't support this property or method
    Line: 4354
    Char: 1
    Code: 0
    URI: http://YZU-1:7001/em/afr/partition/ie/default/opt/boot-11.1.1.3.0-0084.js
    Any help is appreciated.
    Thanks
    B

    Hi,
    OBIEE 11g does not work with IE8.
    Check this......What's wrong in OBIEE 11g
    Regards,
    Srikanth

  • CFGRID format=HTML not working in IE8

    I'm using Cold Fusion 10 and trying a cfgrid and it does not work in IE8.  It works perfectly in FF, of course. :-).
    It IS within a Cfform in my .cfm file.  Even when I take it down to it's simplest form to try to debug it doesn't work, but here is my original code:
    <cfgrid name = "FirstGrid"
            height="200" width="700"
            font="arial" fontsize="12"
            query = "Getdates"
            SORT="Yes"
            selectmode="edit"
            format="html"
            >
            <CFGRIDCOLUMN NAME="anumber" DATAALIGN="LEFT"
            BOLD="No" ITALIC="No"
            SELECT="No" DISPLAY="No"
            HEADERBOLD="No" HEADERITALIC="No">
        <CFGRIDCOLUMN NAME="schoolyear" HEADER="School Year"
            HEADERALIGN="LEFT" DATAALIGN="LEFT"
            BOLD="Yes" ITALIC="No"
            SELECT="Yes" DISPLAY="Yes"
            HEADERBOLD="No" HEADERITALIC="Yes">
        <CFGRIDCOLUMN NAME="doh" HEADER="Date of Hire"
            HEADERALIGN="LEFT" DATAALIGN="LEFT"
            BOLD="No" ITALIC="No"
            SELECT="Yes" DISPLAY="Yes"
            HEADERBOLD="No" HEADERITALIC="No" type="date">
        <CFGRIDCOLUMN NAME="leavedate" HEADER="Leave Date"
            HEADERALIGN="LEFT" DATAALIGN="LEFT"
            FONT="Times" BOLD="No"
            ITALIC="No" SELECT="Yes"
            DISPLAY="Yes" HEADERBOLD="No"
            HEADERITALIC="No">
        <CFGRIDCOLUMN NAME="Returnfromleavedate" HEADER="Return From Leave Date"
            HEADERALIGN="LEFT" DATAALIGN="LEFT"
            BOLD="No" ITALIC="No"
            SELECT="Yes" DISPLAY="Yes"
            HEADERBOLD="No" HEADERITALIC="No">
        <CFGRIDCOLUMN NAME="terminatedresignedretireddate" HEADER="Terminated/Resigned/Retired"
            HEADERALIGN="LEFT" DATAALIGN="LEFT"
            BOLD="No" ITALIC="No"
            SELECT="Yes" DISPLAY="Yes"
            HEADERBOLD="No" HEADERITALIC="No">
        </cfgrid>
    Thanks for any help!
    B.

    Sorry, I should have used the code tags. Let me ask that again.
    I have HTML formatted data stored in VARCHAR2 columns on the database for which I am using a stylesheet to format into XSL-FO to resolve the HTML tags. For example, my data template populates a field PARAGRAPH_TEXT with content such as
    <b>some bold text</b>and I am using
    <xsl:apply-templates select="PARAGRAPH_TEXT"/>in my RTF template to process the data using the stylesheet to convert it to
    <fo:inline font-weight="bold">some bold text</fo:inline>The HTML tags are corrrectly resolved when using the BI Publisher Word add-in and the output is correctly rendered in bold text but this does not happen when running on the server in an E-Business Suite environment due to the HTML tags in the output XML being generated as e.g. &lt;b&gt; instead of <b>. Has anybody experienced this and, more importantly, can anybody suggest a way of getting e.g. <b> in the XML instead of &lt;b&gt;

  • Option key is not working on PS4, mac OS 10.6.8

    Hi I'm having a problem with PhotoShop 4, the keyboard shortcut for a couple of tools is not working at all.
    1) The Zoom in and out function that uses the Option Key + Shift or Option to change the Zoom in or out is not working.
         I'm not sure if it's a conflict with the OS or an operator error of some kind.
    2) The Lasso Tool that uses the Option Key for doing a straight line is not working.
    3) The Clone Stamp Tool that uses the Option Key for selecting the area you want to clone is not working.
    Does anyone have an idea of what the problem might be?
    Thanks - Just Plain Bill - 

    It only works on 64-bit Macs.

  • Problem with combo in js IE - new Option(t,v) not working

    hello! Did somene had experience some problems with
    adding new options in select object (combo box) in javascript? I can change text or value property, delete option by setting it to null, but when I want to add new, there is a problem!?
    why this code doesn't work?
    <script>
    ref = window.document.frmExample["cbo1"];
    alert(ref.length);
    ref.options[ref.length] = new Option("text'","value1");
    alert(ref.length);
    </script>
    interesting thing is that this works in Netscape (6), but it is not working in IE(5.5), and this is my first and last example where Netscape is 'better'...
    Can someone help, please?
    regards...
    Vlada

    you are right, it works in the 'mother' page, but if I want to add some options from popup window (window.open...), and when I accessing combo throught opener propery, than I have problem, because it is not working!?
    code sample...
    ... 'mother' page function ...
    function fAdd(){
    var popupW;
    popupW = window.open("page.html","name",attr);
    if (!popupW.opener)
    popupW.opener = window;
    ... popup window function...
    function fClick(){
    var opt;
    var ref = window.opener.document.frmExample1["cbo1"];
    alert(ref.length);
    opt = "new";
    ref.options[ref.length] = new Option(opt,opt);
    window.close();
    I get alert with the number ofoptions in combo, so ref is OK. I can delete some of them, change, but not to add new! Then I get Error message.
    any sugestion!? Strange, but it works in Netscape ...

  • When I restart, previous tabs & websites open. I have selected open in new page in options this does not work

    When I start my computer and open Firefox, all the tabs from the previous session open. For now, I have to return each session to my home page (Google) prior to closing to prevent this from occuring. I have selected "When Firefox starts show my home page" this does not work. I have de selected and then reselected this option numerous times and it has now become a very big annoyance. I am about to uninstall Mozilla if this cant be rectified.
    Regards Tony

    Please try to troubleshoot preferences that do not save. [[How to fix preferences that won't save]]

  • Mail yahoo pop access not working.

    This has been going on for 2 days now. Re set up my account in mail but nothing just the ! next to the mailbox. Anyone else having problems?

    Sending an email is something totally different again - you can send yourself or anyone else an email to any email address.
    You can also send or forward any email while on your Yahoo account to yourself or anyone else.
    Setting up Yahoo to automatically forward emails to your home email address is something else. Here is an excerpt from Yahoo Help:
    +The ability to access Yahoo! Mail using an email reader program such as Outlook, Eudora, or Thunderbird is only available to customers of our premium Yahoo! Mail Plus service. To determine whether you have purchased this service, please visit the My Services page.+
    Although this does not mention Apple Mail, it functions exactly like Outlook, etc. so it will not work. Here is the link to the entire help page:
    http://help.yahoo.com/l/us/yahoo/mail/yahoomail/mailplus/pop/pop-35.html;_ylt=An EHIP08O6GRC7cEYzjbTbe7myN4
    I have no idea why it might have worked for you previously, but according to Yahoo, it cannot be done unless you pay for the service.
    So, unless I've totally misunderstood what you are trying to say, I do not have a different answer and it does not have anything to do with your Mac or OS.

  • Share - Burn option in IPhoto - not working like I thought it would

    Hi
    I have selected 67 photos in iphoto - totalling 206MB in size. I want to burn these to a CD Rom to give to a friend to use as jpegs
    I select Share - Burn and insert a blank CD ROM
    I get the error message "There is not enough space on the disc to burn all the photos you selected."
    But the disk can take 700MB????
    Then I try by exporting the same photos to a folder on my mac, and then burning these to the CDROM outside of iPhoto - and that works fine
    So why does the SHARE - BURN option not work in iPhoto in this way?
    Many thanks

    The Share -> Burn option creates a "mini" iPhoto Library on the disk, including all the versions, thumbnails, databases and so on. It's designed for sharing with another iPhoto user.
    If you just want to share the photos the File -> Export option is the way to go.
    Regards
    TD

  • Hosts.allow option spawn parameter not work

    Hi,
    I would like to use BlockHosts and spawn it with spawn keyword from hosts:allow, but option parameter does nothing for me.
    I tried several configurations with different sshd entries and results are below
    hosts.deny:
    ALL:ALL:DENY
    With hosts.allow:
    sshd:ALL
    I can connect to sshd.
    With hosts.allow:
    sshd:ALL:DENY
    I can still connect to sshd. But I do not know why.
    With hosts.allow:
    sshd:ALL:spawn (echo "some tries to log" >> /var/tmp/sshd.tmp)
    I can connect but nothing is written to temporary log file.
    With empty hosts:allow I cannot connect to sshd.
    I cannot find any clue, from man entry everything seems clear, but it does not work as it is written in doc.
    Thanks,
    Ondra
    Last edited by xnovako2 (2010-02-20 16:53:23)

    the Access files are read in order of /etc/hosts.allow, and /etc/hosts.deny
    by default, /etc/hosts.deny contains ALL:ALL:DENY, only the first two are important, then third DENY is the placeholder for shell scripts, only the first two are considered, so ALL:ALL means that all daemons for all connections will not be allowed access, you can specifically add a specific service like sshd using sshd:ALL in /etc/hosts.allow to allow access.
    sshd:ALL:DENY, the DENY part is the place where you should put the location of your shell script (absolute path), writing DENY will not deny it access
    http://linux.die.net/man/5/hosts.allow
    use the above link for a complete help on this.

  • Resize photos option in Preview not working

    I use Preview to resize my photos depending on where I'm posting or sending to. Since I've downloaded Yosemite I will resize photo  and it's not working. I have my photos in iCloud drive & am working between an iMac and a iMac Pro. I'm trying to resize to send out to  have printed vs. at home printing. This problem has only happened since upgrading to Yosemite. Any suggestions would be helpful.

    Resizing works fine here.
    Best practice is:
    Open image in Preview
    Tools > Adjust size;    enter the new values and click OK
    Press the option button then     File Save As give it a new name and save to desktop

Maybe you are looking for

  • Can't Share Photos in iPhoto 2 10.3 as I did with 10.2.8

    Can anyone help? I have searched the discussions an have not been able to resolve this issue. We had always been able to share one iPhoto library over our school network so that all teachers can add to it with the photos they have taken. We recently

  • Getting Photoshop CS3 deactivated to re-install

    We've had Photoshop CS3 running on two machines successfully for several years, one of the PCs was updated to Windows 7 yesterday but we couldn't find a 'Deactivation' option either. Support today claim the serial number is not valid and will do noth

  • HDR problems, inconsistant results and camera response curves

    So, I'm doing some HDR panoramas, and every once in a while I'll get one  set of merged files looking completely different than the rest of them, usually brighter and with higher contrast.  When I look at the 32 bit HDR processing option, I notice th

  • Display from MacBook Pro

    I want macbook pro sleep and close whole i use iMac display from macbook pro but cannont, I use thunderbolt core plugin of both. any one know ? how to solve it. Thank you for you time

  • Test my skills in Oracle

    Can any body tell me where can i get sample codes as i have bought oracle 10g pl/sql book.ineed the various codes given in book but i cant find them here. moreover can u all tell me the site or links for best coding practice