Stump the Panel » End Users and Information Workers

jquery webparts from SharePoint Superstar workshop

(4 posts)
  • Started 3 days ago by 27palms
  • Latest reply from AutoSponge
  1. Hey Paul, quick one for you which is probably just me being dumb!

    I have a screen with no quick launch > calendar view > preview pane across it. The calendar view is throwing up meeting info into the preview pane.

    One data item in my preview pane is a hyperlink to a list called 'client'. That list contains a bunch of other information that would be really useful viewed through the loadtip webpart. Ideally I don't want my loadtip firing on the calendar though (thats what the preview pane is for)

    I've tried to do this. while the preview pane operates exactly as you would expect the loadtip only works on the calendar. I've a screen shot, with comments, I can send if that helps.

    I guess my issue is that I'm trying to deploy aggregated functionality on the page. I should point out that 'client' is a content type rather than a standard list. I can live with the issue (the preview pane basically blew away people's expectation levels anyhow, but, y'know it would just be so cool!)

    Regards, Mick

    Posted 3 days ago #
  2. Mick,

    This is something you can do (rather easily) with the jQuery selectors in the code.

    Inside the loadTip, the selector for the dispform looks like this:

    `if (!group) group = "#MSO_ContentTable";
    var arrayList = $(group+" a[href*='DispForm.aspx']");

    Explanation: The if statement gives me a default group (a container I find by ID) to attach the event to. If the expanding groups button fires, I get the group name and pass it to loadTip to attach new loadTip events to the new dispform anchors.

    Solution: change the if statement to:
    if (!group) group = "#YOUR_PREVIEW_PANE'S_ID";

    If you used the code I provided, it should look like this:
    if (!group) group = "#jLoadMe";

    Let me know how that works out for you.

    Posted 2 days ago #
  3. AutoSponge,

    I noticed that the loadTip does not work for Link lists. Is this correct? Is there a work around?

    Also, lists that are viewed through the DVWP won't work with loadTip. Is this correct? and is there a work around?

    Thanks.

    Posted 2 days ago #
  4. loadTip searches the DOM for links to 'DispForm.aspx'. A links list displays links to anything--even cross-domain resources which we can't preview.

    So, the answer to the DWVP question is: if you make your links point to DispForm.aspx they will work. If you're using something else, loadTip will need to have the variable "arrayList" changed to account for it.

    Posted 2 days ago #

RSS feed for this topic

Reply

You must log in to post.