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 code does not work in dotnetnukeJquery code does not work in dotnetnuke
Previous
 
Next
New Post
3/28/2011 1:53 AM
 

Hi,
I have added jQuery code in one user control file  for displaying effect of slid down and slid up on click of link button. But it gives me error as like : Property or method does not support.

My code is shown below;

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="JqueryControl.ascx.cs"

Inherits="DotNetNuke.iExcel.modules.JqueryControl" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>

<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>

<script type="text/javascript" src="js/jquery-ui-1.8.1.custom.min.js"></script>

<script type="text/javascript" src="js/JQuery1.4.1.js"></script>

<link href="js/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />

 

 

<script type="text/javascript" language="javascript">

$(document).ready

(

function () {

debugger;

$("#dnn_linkDropDown1_nu").click

(

function () {

if ($("#divNewAcc").is(":hidden")) {

$("#divNewAcc").slideDown("slow");

 

}

else {

$("#divNewAcc").slideUp("slow");

}

}

)

}

);

</script>

<div>

<asp:LinkButton ID="nu" runat="server" OnClientClick="return false;">click</asp:LinkButton>

</div>

<div style="WIDTH: 32%; HEIGHT: 20%; BACKGROUND-COLOR: #c0d7ff; display:none" id="divNewAcc" >

<asp:DropDownList id="drpPrefix" runat="server" Width="42px">

<asp:ListItem Value="1">Mr.</asp:ListItem>

<asp:ListItem Value="2">Mrs.</asp:ListItem>

<asp:ListItem Value="3">Ms.</asp:ListItem>

</asp:DropDownList>

</div>

 
New Post
3/28/2011 8:35 AM
 
jquery does in fact work perfectly well in dnn - the dnn widget engine is based on it - and if you have dnn widgets enabled then the jquery library will be automatically loaded at run time.

But lets first start with why you have script attempting to  load multiple versions of the jquery library ... and also attempting to load multiple versions of the jquery UI library - I would start by getting rid of all but the latest versions - any number of conflcts can be caused by this sort of thing attempting to override function layers.

Westa
 
New Post
3/28/2011 9:27 AM
 
How should I  enabled dnn widgets engin,so that I run my jQuery code in user control file
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesJquery code does not work in dotnetnukeJquery code does not work in dotnetnuke


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