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

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.

share|improve this question
    
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
add comment

2 Answers

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

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.