Show the custom popup window on clicking the people name in sharepoint people search result

Show the custom popup window on clicking the people name in sharepoint people search result
We are doing the below code to open a popup but while clicking on name link its postback the page and not opening the popup in first click but opening in second click.The same issue occurs while navigate to second page using pagination
The below code used to show name in item template
<button id="NameFieldLink" class="temp" style="font-size: 12px;text-decoration:none;color:#0072c6;border:0px solid #fff;background:transparent;margin-left: 1px;height: 15px;padding: 0 10px 17px 0px;text-align: left;cursor:pointer;font-family:
Arial, Helvetica, sans-serif;" title="">_#= DisName =#_</button> 
The below jquery code used to open popup in control search template
ctx.OnPostRender = []; 
ctx.OnPostRender.push(function () {
$(".temp").on("click", function(event)
event.preventDefault();
$('#fadeout').show();
$('#pop1').find('.tab-content-people').html($(this).closest('.emp-card').find('.pop-content').html());
$('#pop1').show();
return false;

I believe the issue is that you are not actually searching against the result source you made in step #1.
It's not enough to make a result source, you have to tell the search results web part to use it.
Try this:
1. Go to the Pages library of Search Center
2. Create a new Search Results page
3. Edit the page, then edit the search results web part
4. Change the source for the search results web part to your source
5. Add the page to your Search Center navigation
6. Run the search on that page
Scot
Author,
Microsoft SharePoint 2013 App Development
Author,
Professional Business Connectivity Services
Author,
Inside SharePoint 2013
Blog, www.shillier.com
Twitter, @ScotHillier
SharePoint Trainer, Critical Path Training

Similar Messages

  • Open a popup window by clicking the icon on the datagrid

    I am using PopUpManager class to displayed the popup. While clicking the datagrid popup will display.
    Now i have a change in requirement that i need to open popup window when the user clicks the icon on the datagrid itemrenderer. Expecting valuable response to complete the requirement.

    Hi David,
    Thanks for the prompt response.
    In our application, while clicking the datagrid column, we have calculate
    some values based on the datagrid and show the results in the another
    datagrid placed below. Also if the user wants some info about the customer
    we have some it in a popup by
    private function custPopUp(event:ListEvent):void {
    if(event.columnIndex==3){
         hiddenActionpopup = "OpenPopUp";     
         requestPopUp.send();                    
    }else
              // when the user clicks the column other than columnIndex 3,
    we      //have show the calculate results in another datagrid.
    Now what we r going to do is, instead of protecting a column, we have an
    icon for customer details, other than that If an user clicks anywhere it
    will show the calculation.
    For that, I need to set action for the icon in the itemrenderer.
    Thanks in Advance.
    Jude Paul
    hi
    If you want have an action dependendant on a cell in the grid you can use
    itemclick rather than doing the operation from renderer.
    protected function dataGrid_itemClickHandler(event:ListEvent):void
       if (dg.columns[event.columnIndex].dataField =="whatever the datafieldname
    is") doPopup();
    <mx:DataGrid x=0" y="0" width="100%" height="100%" id="dg"
    itemClick="dataGrid_itemClickHandler(event)"/>
    David.

  • Submitting values to the same popup window and closing the window after upd

    hi,
    i have a jsp page called index.jsp.
    in that jsp page i have an hyperlink..if i click on this it opens a popup window.in this popup window we have some values allowed to user to modify.after entering the values in popup window he clicks update then the values are updated and the window is closed and the index.jsp page is refreshed.
    how can do this.
    i want tried in this way but i failed..
    first time when i open the window i kept a flag as hidden field false..
    once the user clicks the update button after entering the value then i make the flag as true and submitt to the same page..now iam updating after immediate update i want to close the window..its not closing.
    if(!flag)
    display fields with update option
    }else
    rtreieve the values
    update in database.
    <script>
    window.opener.refresh;
    window.close();
    </script>
    }

    I had a similar problem. I resolved it by making use of IFrames.

  • Can not select a PDF file in the file uploader window after clicking the Browse... button for a file type input element.

    After upgrading to 5 (this worked in 4) I can not select a PDF file in the File Upload dialog that appears when I click the Browse button next to an HTML file type input element. The specific HTML element source code has the attribute: ACCEPT="image/*". I can select image files such as jpg, png, tiff, etc. But not PDF. This worked great in Furefox 4 and works in the latest version of Safari.
    The HTML code for the form element is:
    INPUT TYPE="file" NAME="file_1" ACCEPT="image/*" SIZE=35
    The File Upload dialog lists all files with PDF extension as dimmed and not selectable in Firefox 5.
    Can you help?

    Hi Purush
    Unfortunately we couldn't solve the problem. Our IT specialist checked it with SAP directly. SAP doesn't support the SAP KW solution anymore. Therefore we checked-in the document in ".doc"-Format.

  • Datepicker PopUp opens in the calling PopUp window

    Hey Guys, I need some help on this...
    I have a button that opens a PopUp window, and in this PopUp I have a "Date Picker" item,
    And when I want to select a date, the calendar shows up in the same PopUp window, and I m loosing the calling PopUp(the first one).
    How can I do so, that to have my PopUp window, and the calendart to show up in another PopUp?
    Thanks in Advance

    Hi,
    that's because of the Window Name you specified. Specify another one or use the popUp2 method which will create a unique name.
    Hope that helps
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

  • Why doesn't the download popup window do what I tell it to?

    In most cases when I download files, I want the popup window to ask me how to handle them - and it does. However, I have a subscription to the NYTimes crossword puzzles. For this type of file only, when I click on a file I want to open it immediately.
    The popup window knows how to open these files: it says
    You have chosen to open ....
    What should Firefox do with this file?
    Open with _Across Lite_
    Save File
    Do this automatically for files like this from now on (This option is checked, but I get the popup window anyway. Does automatically mean something different for you than it does for me?)

    The server could be sending the ''Content-Disposition: attachment'' header. Install the InlineDisposition add-on and see if makes a difference.
    * https://addons.mozilla.org/firefox/addon/inlinedisposition/
    If that doesn't help, the server could be sending the ''Content-Type: application/octet-stream'' header.
    # What is the file extension for the crossword puzzles that you download?
    # Click the ≡ Menu Button and choose Developer, then Web Console (or press Ctrl+Shift+K).
    # Load the web page with the file download link.
    # Click the Clear button in the Web Console.
    # Click the download link.
    # In the Web Console, click the file request in question to examine it. In the little window that pops up, in the Response Headers section, what is the Content-Type header? It would be helpful if you'd [[How do I create a screenshot of my problem?|provide a screenshot]].

  • Is there a way to open a new tab/window by clicking the Safari dock icon?

    Is there a way to open a new tab or window by clicking the Safari dock icon? Right now, the default behavior seems to be that Safari simply un-minimizes or displays the last window in focus.
    I want to be able to quickly fire up a new tab or window in Safari when it is out of focus, such as when Finder is in focus. The workaround right now is to right-click on the Safari dock icon, and select "New Window", or to allow the last window in focus to appear, and cmd+t or cmd+n. But this is too many steps over the course of a day for a highly frequented task like this.

    I'm glad that helped. Thanks for posting back.
    ... when I save this as an application as "run only", it's relatively quick to run, but there's a delay to load... I assume it's opening Script Editor every time?
    As long as the script is saved as an application -- Run Only or not -- it should definitely not cause the Script Editor to open. You can verify this by closing the Script Editor application altogether prior to clicking on the docked script icon that you saved. You should notice that the Script Editor does not open when the script is run.
    FWIW, I went back and saved a version of the script as a Run Only app, and I didn't notice any difference between it and the original, which was saved without the Run Only option checked. The delay that you're noticing might be accounted for by the fact that the script, because it was saved as an application, will be activated just as any other standalone application would be. This happens prior to Safari being activated. Watch your menu bar when clicking on the docked script icon and you should see the name of the saved script app appear for a split second before Safari gets activated.
    The only time I can think of that you might wish to save the script as a Run Only application would be if you wanted to conceal the script for some reason. If, for example you were publishing the script as a part of an application release and didn't want its contents known, or you didn't want an end user to be able to edit the script, you might select the Save As > Run Only option. To illustrate this, try dragging and dropping a script saved as a Run Only application onto the Script Editor's icon. You should see a warning dialog to this effect:
    *Unable to read the file because the script is not editable (it was saved as run-only).*
    Whereas if you drag a script that was not saved as a Run Only app onto the Script Editor's icon, the script should open in the Editor, and it can be edited.
    I played around with the "stay open" option for saving the script as an application, but it appears I have to close the app and reopen it before I can get it to work a second time.
    The Stay Open option is appropriate for scripts which use an "On Idle" handler, which really wouldn't apply in this case. Check out more on Idle Handlers here and here.
    Is there a faster way to use this multiple times throughout the day?
    One way you might speed up the action would be to save the script +as a script+ by choosing Save As > File Format: script from the Script Editor's File menu. The resulting script can then be activated by assigning a hot key to it using one of several 3rd-party keyboard shortcut programs available on the Internet. (I used Spark, assigned a function key to the script I posted earlier, and found the action to run significantly faster.)
    Good luck.

  • Customizing request window when save the alert category

    hi,
    i create an alert category in the solution manager and try to save it, but the customizing request window pop up, and i have no idea what is that for.
    anyone knows how to save the alert category i created?
    Thanks a lot
    Jessica Ding

    hey, don't want to transport this alert category to prod ?? ,request is for that purpose...

  • Since upgrading to Mail 7.0 the menu popup from right clicking an element in an email has changed.

    Since upgrading to Mail 7.0 the menu popup from right clicking an element in an email has changed.  There is now only a short three item menu:
    Previously there was a longer menu (like the one when right clicking an item on a Safari page):
    I've looked in Preferences and at all the Mail dropdown items but can't find any way to get the old menu back (or why it changed).  In particular, I miss the "copy image" item which allowed me to copy an item image into a new email for forwarding.  I've got two email accounts, an IMAP and a POP.  The behavior is the same with both.
    Any ideas?
    Thanks,
    Richard

    Your screen shots are not visible to me.  But I think I understand your question.
    Several thoughts come to mind:
    rbhix wrote:
    In particular, I miss the "copy image" item which allowed me to copy an item image into a new email for forwarding.
    You can still, of course, simply forward the entire email message containing the image.
    You could also use the "Save Attachment ..." feature available when you right click and copy and paste from there once the image is saved.
    Less likely, you could also use the "Share" feature available when you right click, though I suspect it may not offer sharing options that you would like.

  • What happened to the "Block Popup Windows" menu item in Safari 6?

    What happened to the "Block Popup Windows" menu item in Safari 6?  Seems to be gone.

    Shheesh!  Loki is saying that this was a very useful tool/option.  Is there any way to BRING IT BACK TO THE SAFARI MENU?  Not how to do it in Preferences.
    What I am saying is: What incompetent is responsible for this build of Safari?  There was no reason to take that out... plenty of room in the Safari menu.  But if you REALLY want to know why I'm ******, Older people can no longer go into "Appearances" and change the Fonts and Size without knowing how to use terminal or how to make .css files.  (which doesn't work well anyway)
    This build is infuriating.

  • Ven though i have a year student subscription with creative cloud when i try to open the programmes a window comes up for free trial or to buy the product. I was clicking the free trial option but i guess thats over now so it won't allow me to access the

    Even though i have a year student subscription with creative cloud when i try to open the programmes a window comes up for free trial or to buy the product. I was clicking the free trial option but i guess thats over now so it won't allow me to access the programs. Any suggestions?

    Hi natasachara,
    Please refer to the details about the student plan below:
    Creative Cloud Help | Creative Cloud for Students and Teachers / Common Questions
    Regards,
    Sheena

  • Can i delete the new feature that shows your recent calls when double clicking the home button?

    Can the feature in the new IOS8 that shows your recent calls when double clicking the home button be deleted?

    settings - mail,contacts,calendar - show in app switcher - OFF

  • I have uninstalled Lightroom and need to re-install it on the same computer. I cannot find where to re-install it. The CC popup window says that it is installed and Up to date.

    I have uninstalled Lightroom and need to re-install it on the same computer. I cannot find where to re-install it. The CC popup window says that it is installed and Up to date.

    CC desktop lists applications as "Up to Date" when not installed
    http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html

  • Has Safari 5.1 broken the Block Popup Windows feature?

    I like most of the changes in Safari 5.1, but the Block Popup Windows feature doesn't seem to work any more. Is anyone else having this problem?

    Same problem on windows 7 64-bit i3-based machine.

  • Forefox won't start in windows XP: I get the message that windows "cant' find the exe file" even when I click from the program file, rather than the shortcut.

    Forefox won't start in windows XP: I get the message that windows "cant' find the exe file" even when I click from the program file, rather than the shortcut.

    Delete the current Firefox shortcut on the desktop and create a new desktop shortcut via the right-click context menu on the Firefox.exe program (Send to > Desktop)

Maybe you are looking for