jquery

JqueryUi autocomplete problem

Hi, I've a problem with jqueryui's autocomplete.When i filter results.it's filtering word like it contains,but i want like startswith.How can i do that?(Words are coming from a xml file) Thanks. Edit:Here is my complete jq code: $(function () { function log(message) { if ($("#<%=From1.ClientID %>").val() == "")...

jQuery simple ajax request not working

Hi all! All I want to do is get a page and return the contents of it: $.ajax({ type: "POST", url: "alg.aspx", data: sqQstring, success: function(msg) { alert("Data Saved: " + msg); } }); This doesn't make an alert box and there are no errors i...

jquery select anything but this and its descendents

I am trying to figured out how to make a menu disappear when the user clicks outside of it. my approach is this : $(*).not(menu).bind('click', function() { $(menu).hide() }) for some reason this is not working. any idea what I might be doing wrong? thank you ...

Change the HREF of a link loaded through an XSL Variable? (JQuery)

Hey people. I have some JS/JQuery code that when a certain variable is present, to change the HREF of a button to an XSL variable call. It doesn't seem to be working, IS this even possible, or am I just doing it wrong? Sample: if(h == '2') { $('#nextBtn').attr('href', '{$next-file}'); $('#backBtn').attr('href',...

jQuery cycle plugin addslide function with random

Hello, When I attempt to use the random option with the addslide function (here) which progressively adds images to a slideshow after it has been started, I recieve the error: 'next is undefined'. How would I go about having the slides added progressively in a random order? ...

is there any jqeury carousel for content(text with links)?

Hi, I am trying to find a jquery carousel that can be used for showing text content and not images. I tried to modify an image carousel(jcarousel) but that has some width issues and the content overlaps. I am sorry if this it not a right question for this site. Something like what Google analytics has http://www.google.com/analytics/ ...

Jquery UI Framework

Hi - Thanks for looking into this. I'm looking to build a framework of apps which can be extended by third party developers. The goal is to load each frame via ajax - I need to know if there is a framework which can be help me position and resize various widgets just like this one. Example screenshot http://tour.netvibes.com/private...

jQuery zip masking for multiple formats

I have a requirements for masking a zip field so that it allows the classic 5 digits zip (XXXXX) or 5 + 4 format (XXXXX-XXXX). I could so something like: $('#myZipField').mask("?99999-9999"); but the complication comes from the fact that dash should not be showing if the user puts in only 5 digits. This is the best I came up with s...

Best practises javascript/jquery

On my work we discussed what is best practise. Consider we have one or more a tags. We want the a tag to fire an javascript function, when It gets clicked. To have this functionality we could bind an event to the a tags, through jQuery, or we could call a function inline on the a tag. What are the pros and cons for each of these solution...

Cufon jQuery Hover as a child element?

I'm having an odd problem with Jquery Hovers and Cufon. My Nav is setup like this: ... <li> <a class="title" href="#">Title Text</a> <a class="sub" href="#">Photo Gallery</a> </li> ... When I hover over the LI. I want the a.sub to turn white (which works by adding a class because its normal text.) and I ant the a.title to turn gre...

One click handler for multiple buttons and stop propagating event up to parent?

Hi, I'm generating a bunch of "li" items as a result of an ajax call. They look like: <li> <p>Hello result 1</p> <button>remove</button> </li> <li> <p>Hello result 2</p> <button>remove</button> </li> ... can I create a single click handler that will get called when any one of the "li" item "button" elements gets clicked, ...

Global jQuery `.click()`

I would like to fire an event when anything on the page is clicked, and then process normally. For example a click would be fired, I would see if the target matched something, alert if it did, and then have the click event continue (no preventDefault()). ...

Using Uploadify with Originally Codeback file Upload.asp.cs for ex.

Hello I'm using ASP.NET C# 2.0. So I'm find Uploadify in Stackoverflow... Then I'must control my uploading folder for some past posted ID's. At the end if a file(s) uploadded i must send them with mail attachment... I can't figure that in every posts they're using ashx file type. But as i said. I'm not Upload My files basicly i must con...

I want to display a circular progress indicator using jquery in asp.net when textbox textchange event occurs

I want to display a circular progress indicator using jquery in asp.net when textbox textchange event occurs.when user enters some value in a textbox and textchange event occurs or when user loses the focus on that textbox,system checks values in databases.I want to give user a progress indicator type when query is in progress, how can ...

Selecting an option in a dropdown menu based on node value?

Is there a way to set the value of a dropdown list in jQuery (or Javascript) based on the node value? <select name="ddlProperty"> <option value="1" selected="selected"></option> <option value="2">Animal Kingdom</option> <option value="3">Epcot</option> <option value="4">Hollywood Studios</option> ...

jquery clone multiple instances why

Hi folks, hope can help, trying out Jquery clone which seems to work, but I get "multiple" clones not single clones on "repressing" the button. e.g.: I want to clone this : echo '<select class="hello">'; foreach ($pageposts as $post): echo '<option>'.$post->post_title.'</option>'; endforeach; echo '</select>'; on clic...

Create master checkbox outside {foreach} tag

Hello, I have dynamic page under {foreach} tag something like this. <div id="c1"> {foreach} <input type="checkbox" name="checkbox" id="{$num}" checked/> {/foreach} </div> which in return prints something like this. <div id="c1"> <input type="checkbox" name="checkbox1" id="1" checked/> <input type="checkbox" name="checkbox2" id="2" c...

How to stop AnythingSlider on the final slide?

Hi Guys and Girls I apologise if this is a straightforward question. How can I make the slider stop playing once it reaches the final slide? We're running against a massive deadline at work and, tho I'll could work it out with the midnight oil burning, I was hoping this is a simple question for one of you. If anyone could help it woul...

Multiple replaceWiths in jQuery?

Why doesn't this work? What would be a plausible solution to get this effect? $(document).ready(function() { $('#myLink1').click( function() { $('#myLink1').replaceWith('<a id="myLink2" href="#panel2">#panel2</a>'); }); $('#myLink2').click( function() { $('#myLink2').replaceWith('<a id="myLink3" href="#pa...

what is the difference between .last() and :last ?

Can someone explain the difference between .last() and :last ? I can't seem to find a definitive explanation. Why Exactly does this $('td.cellsOfSpecificClass:last', '.table tr') return the last td in each tr instead of the last td in the whole table? ...