PDA

View Full Version : Javascript issue



saicvs
09-30-2011, 12:35 PM
I am using your dropdown menu in sharepoint 2010 in search core results page.
It works very well. I have configured it in xslt page using table I am displaying it in each row.

When I click on ex: view properties(see below I have attached screen shot) it should pick up the id and show properties according to id.

If I see code in “view source” it rendered code properly but if I select “view properties” from UI

Always it shows last record.

Question 1: why always it shows last record though I am passing id?

Question 2: how do I show url like below? See code example. It opens up url in modal window.

<a href="#" onclick="javascript:void(SP.UI.ModalDialog.ShowPopupDialog('http://ecm-aadev4b.sharepoint.adpcorp.com/sites/mysite/My%20Library//Forms/DispForm.aspx?id=16'))">

Any help is very much appreciated.

This url I used to configure my dropdown menu.
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm