Is it possible to query results in a data view web part with javascript? If so, how do you reference the DVWP in the syntax?


You'd use it like any other HTML on your page. Since you'd have control over the DVWP, it'd make sense to properly set IDs and classes for things you want to hook into on the client side when the DVWP is loaded.

And to further add, I've done this on numerous occasions where I get the DVWP to output the content I want in the format I want to utilize jQuery tools like jQuery UI.

  • @pirateEric...thanks for the reply.....could you possibly point me to a reference for learning how to do this? I am new to this....or provide an example please? – Justin Jun 12 '12 at 22:12
  • What does your dvwp output and what are you trying to do with javascript? – Eric Alexander Jun 13 '12 at 1:21
  • well the first scenario I would try is this calendar recurrence issue. I can create a current view which shows 'today's events', so I can create a web part that references that view (this seems to be the ONLY way I can get those My Start and My End times that SP creates for the events that occur that day whether they are recurring or not). So a simple use case to start is I would like to be able to query and filter that web part...plus a larger goal is learn how to do it for other uses. Like I said I am just starting out so I am sort of learning the context; greatly appreciate the help!! – Justin Jun 13 '12 at 12:01

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.