jquery

How jQuery Datepicker use in WebControl

I work on Asp.Net VS08 C#. i create a web control .How to use JQuery Datepicker on webcontrol. <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wcCalendar.ascx.cs" Inherits="Jquery1._8Version.wcCalendar" %> <link type="text/css" href="css/ui-lightness/jquery-ui-1.8rc2.custom.css" rel="stylesheet" /> <script type="text/...

Validate (bassistance plugin) required( dependency-callback ) question

On my client registration form I have the following rules // Define the div containing validation messages var container = $('#clientErrorWrapper'); // Start validation routine // validate the form when it is submitted var validator = $("#frmEdit").submit(function() { // update underlying textarea before submit validation tinyM...

parsing specific values in JSON for ajax

I was given this code earlier but am having a hard time parsing the correct data. I have the following JSON { flavors: [{"image":"images/bbtv.jpg", "desc":"BioBusiness.TV", "id":"1"},{"image":"images/grow.jpg", "desc":"Grow Staffing", "id":"2"}]} and I want to only show id:1 or id:2. I have the following code for Ajax $.ajax({ ...

jQuery: What does $("html") mean?

What does $("html") mean? i.e. $("html").scrollTop(0); ...

How to optimize this js (now CPU is over 40% when the page is opened)

I have this piece of JavaScript on my page and it loads the CPU considerably. Is there any way to optimize the code? ( I'm using jQuery, so jQuery solutions will be fine ) function Particle() { this.particleContainerWidth = $('#particle-container').width() - 100; this.particleContainerHeight = $('#particle-conta...

IE issue with jQuery masonry call

I have a masonry call which is working fine in all browsers but IE7 and below. Maybe its just a simple syntax issue, but maybe someone has had experience of this before. Code below: $(function(){ $('#mainContent').masonry({ columnWidth: 200, itemSelector: '.threadWrapper:visible', resizeable: true, saveOptions: true, ...

Javascript defaultValue property for use on SELECT?

Javascript has textObject.defaultValue=somevalue for retrieving the default value (stored value from page load) of an input even if you wipe the input and replace the contents, you can still get the default back. Like this: // in the html page <input id="addr1" type="text" value="21 Oak St." /> // the jquery myInput = $("#addr1"); // t...

jquery write html into variable

i am writing two list application where data from one list can be shifted to other list. i am using DIV like this <div id="all_users"> <div id="user1" userid="1" class="innertxt"> <img src="images/images.jpg" width="50" height="50"><strong>Test User 01</strong> <ul> <li>User ID: 1</li> <li>Email: u...

call future javascript function compatibility on all browsers?

let say i have function like below function doSomethingNow(){ callSomethingInFutureNotExistNow(); } at the moment doSometingNow() is created callSomethingInFutureNotExistNow() not exist yet. It will be created in the future, on firefox, this doesn't show any error on firebug. Will these kind of function compatible on all browsers ...

Unable to Validate XHTML without breaking jQuery references

Hello guys, my webpage is www.bodrum_dev.info (Remove the underscore character from two words). I am trying to validate my page, but featured news section (that changes article headline and image on the left when mouse over to titles) generates 30 errors. I know the reason. Because i have h1 h2 and div tags inside an a tag. So basicall...

USing jQuery modal popup

I work on Asp.Net VS08 C#.Click on Button i want to show a model popup.containing the bellow controls. <div> <asp:Button ID="Button1" runat="server" Text="Close" /> <asp:Button ID="Button2" runat="server" Text="Save" /> <asp:Button ID="Button3" runat="server" Text="Search" /> </div> Popup close o...

Using Jquery Jcarousel, I need help modifying the pagination

First as a note I am using this plugin in a Rails app. Ok I need to do two things. The first is that the pagination that I have working through: jQuery('.jcarousel-control a').bind('click', function() { carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text())); return false; }); needs to work without text. right now...

Select and disable each input field within a form, wrapped in a table in jquery

Hi, I am disabling a form based on a checkbox... I am having trouble adding the disabled attribute. here is what I got so far: HTML: <table id="shipInfoTable"> <tr> <td>Name:</td> <td><input type="text" name="name" /></td> </tr> ... </table> Javascript selector/attribute manipulation(jquery): $("#shipInfoTable tbody tr...

Adding a Value outside of the Auto Complete - jQuery Plugin: Tokenizing Autocomplete Text Entry

Hello, I'm using the following JQUERY Autocomplete plug-in: jQuery Plugin: Tokenizing Autocomplete Text Entry What'd I'm unable to figure out is how to add a value to the list from outside of the autocomplete dropdown list. The reason I want to do this is the autocomplete searches for locations, if a location is not found, there is an...

jquery and sliding/animated background

Hello, I want to make something like this site: http://www.lionite.com Check the header, the city slides, how can this be done with jquery ? Any plugin or tutorial would be great :) Thanks ...

event.target points to a child element

When a user clicks on a <li>-element or on a child element of it, I want to add a class to this <li>-element. This works fine, but for performance enhancement I decided to bind this event to the <ul>-element, so unbinding and binding this event is much faster in a list consisting of 1000 <li>-elements. The only change I thought I had to...

How is it done "Manage this list" on amazon ?

I'm specifically looking, how is the hover on done? and what did they use? JavaScript? Jquery, DHTML? and does anyone have example? Now, I'm new to web programming. (but not new to programming, I'm c++ and c# prg). I'm looking into getting web dev. for personal use. I saw this amazon feature and thought to myself that it would be nice to...

Using controls requiring different jQuery Versions

I am trying to use an Apycom menu requiring jQuery 1.3.2 on the same pages as Flexigrid for Rails which depends on jQuery 1.2.3. To add to the confusion I'm trying to include the Rails 'prototype.js' and use this as well. Here is my include order: <%= javascript_include_tag :defaults %> <%= yield(:head) %> <script src="/javascripts/jq...

Update Twitter with AJAX-powered form

I'm trying to make an AJAX form that will update a twitter status when updated. I have the form working currently with php, but am not sure how to add AJAX functionality. Here's the form: <form id = "yourwhisper" method = "post" > <label for="whisper">Enter your status update</label> <textarea id="whisper" name="whi...

jquery JSON Problem

I have following PHP code $val="<div id=user".$row['cid']." userid=".$row['cid']." class=innertxt><img src=images/images.jpg width=50 height=50><strong>".$uname."</strong><ul> <li>Email: ".$row['cemail']."</li> <li> <input type=checkbox id=select".$row['cid']." value=".$row['cid']." class=selectit /></li> </ul> </div>" ; $return["fo...