Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a small button on a site which when i press should start a QuickLinksDialog and fill in some of the fields there.

Everything goes good and well except the fields (like: title and url) still stay empty.

Any idea how can i work this out?

Here is the js function for this:

        var args = new Array();
        args[0] = title;
        args[1] = path;
        args[2] = "";
        var features = 'resizable=no,status=no,scrollbars=no,menubar=no,directories=no,location=no,width=850,height=600';
        var redirectUrl = Sanco_GetBaseUrl() + '_layouts/QuickLinksDialog.aspx?Title=' + title + '&URL=' + path;
        if (browseris.ie55up)
            features = 'resizable: no; status: no; scroll: no; help: no; center: yes; dialogWidth: 850px; dialogHeight: 600px;';


        commonShowModalDialog(redirectUrl, features, null, args);

Any idea?

BTW also tried like that:

   var options = {
        title: "Add to My Links",
        showClose: true,
        allowMaximize: false,
        autoSize: true,
        url: siteURL + '/_layouts/QuickLinksDialog.aspx?Title=' + Title + '&URL=' + URL + '&Source=' + siteURL
    };
    SP.UI.ModalDialog.showModalDialog(options);
share|improve this question

1 Answer 1

I'm not sure what the QuickLinksDialog is but for my custom modals I always use Eric Martin's Simple Modal script. It's quick, easy, and fairly flexible with good documentation.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.