Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesJQuery UI Datepicker in moduleJQuery UI Datepicker in module
Previous
 
Next
New Post
8/4/2011 8:37 AM
 
Hi,

I am new to module development and am not sure how can I call the JQuery into my module and make use of the datepicker. I tried to add in the following code in my module user control but I am unable to get the datepicker working.

<script type="text/javascript">
    $(function() {
        $("#tbStartDate").datepicker();
        $("#tbEndDate").datepicker();
    })
</script>
 
New Post
8/6/2011 12:09 AM
 
2 questions

1. Have to always ask:  Is jquery ui referenced?

2. Is tbStartDate and tbEndDate asp:textbox controls?   If so then your jquery needs to reference them as such:

<script type="text/javascript">
    $(function() {
        $("#<%= tbStartDate.ClientID %>").datepicker();
        $("#<%= tbEndDate.ClientID %>").datepicker();
    })
</script>

as you need to get the ID as the control is pushed to the page.


Andrew Walker

Learn to make your own beer and wine at homeIf you enjoy making your own beer and/or wine - be sure to check out http://www.ForemostBrewing.com
 
New Post
8/6/2011 1:10 AM
 
hi, jquery has been referenced in the site settings using the hosted jquery. and yes, I am using asp.net textbox controls.
 
New Post
8/6/2011 1:22 AM
 
Andrew Walker wrote:
2 questions

1. Have to always ask:  Is jquery ui referenced?

2. Is tbStartDate and tbEndDate asp:textbox controls?   If so then your jquery needs to reference them as such:

<script type="text/javascript">
    $(function() {
        $("#<%= tbStartDate.ClientID %>").datepicker();
        $("#<%= tbEndDate.ClientID %>").datepicker();
    })
script>

as you need to get the ID as the control is pushed to the page.

 I have used the code that you provided and it is working fine. But why is the ui interface not working? Do I need to reference or link it in any way?

 
New Post
8/6/2011 7:32 AM
 
We'd all love to help you - but you really need to describe the issue better.

What do you mean by "not working" - got some code you can show us too?


Andrew Walker

Learn to make your own beer and wine at homeIf you enjoy making your own beer and/or wine - be sure to check out http://www.ForemostBrewing.com
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesJQuery UI Datepicker in moduleJQuery UI Datepicker in module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out