jquery

jQuery Date Picker where text input is read only

Hi all, I want to use the Jquery datepicker. I've got it setup using an the alt field option. I'm displaying Y-M-D in the text field, but submitting Y-M-D. Everything works fine so far, sending the correct data, etc. However I want to stop the user from being able to manually type a date. I add originally set the INPUT field to disable...

AJAX CascadingDropdown - Setting the selected index

I have a CascadingDropDown on an ASP.NET page. Now, the prompt text is "Select State". (list of states). However, on a different version of this page (ie querystring), i might want to set the selected index to "California" for example. How can i do this? The web service used by the ajax control (ie GetStates) gets invoked at the same...

ajaxStart() showing loading message doesn't seem to work....

I user jquery.ajax call to controller of asp.net mvc... I would like to show a loading indicator.. I tried this but that doesn't seem to work... <div class="loading" style="padding-left:5px; margin-bottom:5px;display:none;"> Loading...&nbsp </div> and my jquery ajax call looks like this, function getMaterials(currentPage) { ...

jquery slider jerky in chrome and safari

Does anybody know why this slider works well in every browser except for safari and chrome? www.aus-media.com/dev/site_BYJ/about-bikram-yoga/postures-benefits.html Let me know if seeing the code will help. Thanks Nik ...

Using non W3C valid attributes on HTML elements

Hi, What is your opinion about using non valid attributes on html elements for easier jQuery selectors etc ? Eg. <div name="myDiv"></div> According to Visual Studio the name attribute is not valid for a div element. ...

Split date in javascript

How to split the following date in javascript, var date='2002-01-01'; The result should be as 20020101 Thanks.. ...

How to make this toggle effect possible?

default condition After clicking on Sitemap link How to write HTML to get footer links after the sitemap tree upon clicking on Sitemap link? ...

Jquery Ajax Problem

Hi all; var v_name = null; $.ajax({ type: "GET", url: "Testpage.aspx", data: "name=test", dataType: "html", success: function(mydata) { $.data(document.body, 'v_name', mydata); } }); v_name = $.data(document.body, 'OutputGrid'); alert(v_name); first alert undefined before alert work why ? ...

changing text periodically in a span from an array with jquery

I have a span, eg: <p>Here is a sentence <span id="rotate">this</span> is what changes</p> and I'd like the contents of that span to change every few moments between a list of terms, so the contents might change to be: <span id="rotate">then</span> <span id="rotate">thus</span> and so on. I'd like the text to fade out and then the ...

How to count li which does not have ul ?

Hi I want to count LI which does not have the UL , for the first level only, but when I count this it shows size 4 instead of 2, its count the inner LI also. <div class="navigation-container"> <ul class="first-level"> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a> <ul> <li><a href="#">Link2...

Download content of the page using ajax jquery

Greetings, how can I download some page content using ajax and jquery: I am doing something like that (2 versions inside one script): $("p").click(function() { $('#result').load('http://google.com'); $.ajax({ url='www.google.com', success: function(data) { $("result"...

Rebinding jQuery qtip tooltip on images in bxcarousel

I'm using bxcarousel to show a bunch of images. Each image has a tooltip, which I display using qtip. This works fine for the first round, but when the images come round a second time the tooltips don't show anymore (because bxcarousel removes an element that slides out and puts it back at the end) An example of the carousel can be fou...

Storing arbitrary data in HTML

What is the best way to embed data in html elements for later use? As an example, let's say we have jQuery returning some JSON from the server, and we want to dump that datat out to the user as paragraphs. However, we want to be able to attach meta-data to these elements, so we can events for these later. The way I tend to handle this...

auto reload: how it works?

i need to change something in my site, if some fields changed in database, but without reloading the page! but i have no idea how i can do it. could you give me an idea? thanks example: for example, i have a forum, and i need to show a image, if new comment resieved! i can write all functions, but i don't understand when i must call ...

How can i disable drag event using jquery?

Hi, i wan to disable drag event using jquery and want to bind one another event with same mouse event, but it will shows an error i have attached drag even to <div class="mydiv"></div> and i have used jQuery('.mydiv').draggable("destroy"); it is disabling the drag event and attached one more functionality on mouse down but whe...

What does this jQuery code mean?

Can anyone explain the meaning of this code? if (data.result) { $('ul#intlist').append(data.content); } ...

How to find input element id by value?

Hello all, How do I get the id of an input element based on its value? The values will always be unique and there are only 7 of them. I have tried this: $('#wrapper').find("input[value='"+value+"']").each(function(){ return this.id; }); But nothing is returned! Thanks all for any help ...

Created function not found

I'm trying to create a simple function, but at runtime firebug says the function does not exist. Here's the function code: <script type="text/javascript"> function load_qtip(apply_qtip_to) { $(apply_qtip_to).each(function(){ $(this).qtip( { content: { // Set the text to an image HTML string with the ...

How can I load a web page inside of a jQuery dialog box?

Hi, I am designing a wordpress template, and I would like to use jQuery ui to display each of the calendar links in a dialog box, when they are clicked. What I want, is when someone clicks on a link in the wordpress calendar, the content will load in the dialog box, and display over the calendar. I would appreciate any help on this, th...

Jquery incrementing number +1 0n page refresh.

Hi guys i am trying to modify this code here. $(document).ready(function() { var randomImages = ['img-1','img-2','img-3','img-4']; var rndNum = Math.floor(Math.random() * randomImages.length); $("div#bg-image").css({ background: "url(http://example.com/images/" + randomImages[rndNum] + ".jpg) no-repeat" }); ...