1

Is there a way to get web part property value using javascript in SharePoint 2007? Using web services and such is fine.

EDIT: I need this for my custom web part.

  • Is it the OOTB webparts or Custom Webpart? – Thomson Oct 1 '10 at 11:14
  • Custom web part. – Luc Oct 1 '10 at 11:40
2

If it's your custom web part, you could just output the web part properties in the render method. Either you directly render java script code, that sets some variables or you can output some html that you can access with your client side code.

0

Have a look at the source code for SharePoint LiveListData. I am reading the ListName property from ListViewWebParts on the page using jQuery and the Web Services.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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