SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 2 down vote accepted

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.

share|improve this answer
@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 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 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.