jquery

jQuery: Showing a div if a specific a <select> option is selected?

I'm working on the address page for a shopping cart. There are 2 <select> boxes, one for Country, one for Region. There are 6 standard countries available, or else the user has to select "Other Country". The <option> elements all have a numeric value - Other Country is 241. What I need to do is hide the Region <select> if the user sele...

pagination script in jquery for table pagination

HI all I want to paginate with table i.e in one page have contain 5 data table, but i can not find the useful document in django template so now i want to implement it with jquery. sow how can i it implement??? ...

JQuery- hotkeys and windows prompt issue

By referring to http://jshotkeys.googlepages.com/test-static-01.html I try to implement this powerful tool and facing some issue. everytime when I click Ctrl S, it will popup a window prompt asking me whether I want to save my testing.html I want to ignore windows prompt. What I want is simple: 1. when people click save button/ use s...

Another jQuery noob question about functions

I want to "functionalize" more of my jQuery code, instead of writing little standalone snippets. Here's an example. Let's say I have some li's that I'd like to use as triggers, like so: <li class="alpha-init" id="a-init">A</li> <li class="alpha-init" id="b-init">B</li> <li class="alpha-init" id="c-init">C</li> And some stuff I'd like ...

Merge keys array and values array into an object in Javascript

I have: var keys = [ "height", "width" ]; var values = [ "12px", "24px" ]; And I'd like to convert it into this object: { height: "12px", width: "24px" } In Python, there's the simple idiom dict(zip(keys,values)). Is there something similar in jQuery or plain Javascript, or do I have to do this the long way? ...

ASP.NET - What is the best way to keep jquery from cluttering up my ASPX files?

I'm starting to use more and more jquery. I'm working with dialogs, and each dialog (including javascript) is taking upwards of 20-30 lines of code. There's a few pages where I'll have over 5 dialogs. This gets ugly fast. I haven't even begun to get into sliding interfaces or calendar controls yet. I have more of a PHP background... an...

Gradually posting data to view asp.net mvc

Hi, I am generating lets say a 1000 of records to a database. That means it takes some time. Now, a user can become impatient. So I want to show him a progress bar during the generation process, which happens in Controller. I have found pretty cool progress bars in jquery or flash, but I have no idea, how to use them, since after sending...

jquery GET request not working in IE

Hi, I have the following jquery code: function update(){ $.get("getlatest.php", { id: $.cookie('last_post_id') }, function(response){ $('#board_posts').prepend(response); $('.incoming_post').slideDown("slow").effect("highlight", {}, 3000); $('.incoming_post').toggleClass("incoming_post").addCl...

Jquery: slideup and down

How to make it sideup and side down when i use this it sides down then up?? $("button").click(function () { $("p").slideToggle("slow"); }); ...

How to retain checkbox state in jQuery

I have added the followng code to disable the dropdown on unchecking the checkbox in jQuery, but the checkbox is not retaining the value: $(document).ready(function(){ //on check of the checkbox,the dropdown is enabled or disabled. $("[id$=chkCashSettlementType]").toggle( function() { $("[id$=ddlSettlementCurrenc...

Few questions about auto fill search terms

Hello everyone, I am trying to make it easy form my end users to search through my sites by autofilling the search box when the user types in a word through using ajax calls. Now first I will show you my code so far and then I will add the questions I have. Here is the HTML: <input type="text" id="searchfield" name="q" > And the ...

resize Frame with jQuery

Hi, I'm searching for a possibility to resize frames (not iFrame) by jQuery. unfortunatly I can't find any hint how to do it. I'm truly grateful for any hint. ...

jQuery Append UL with LI with value from dropdownlist on button click

I have a dropdownlist: <select id="ContentList" name="ContentList"> <option value="">Please Select</option> <option value="TEST_TOP">TEST TOP</option> </select> I have a sortable list: <ul id="sortable"> <li class="ui-state-default">First</li> <li class="ui-state-default">Second</li> <li class="ui-state-default">Third</li> ...

carousel in jquery does not slide correctly in Internet Explorer but does in other browsers.

i created a carousel in jquery that slides an item or set of items up or down. the demo page i created uses 1 item per page/slide/visible section... but its not that hard to expand it to 2 or 3... it has some other features that i embedded, but those are not important for this question. using the carousel in Internet Explorer 6 or 7 ...

jQuery Sortable Connect Lists - store values in list items?

I am looking at the demo for sorting items here but I want the text in the list to appear as something but when I click save and it posts server side I want to use values. I know <li> doesn't support value so what options do I have? UPDATE: I assume the way to save the data server side is to have a hidden input, when the user clicks a s...

how to get the multiple values of a select box?

Hi, I have a multiple select box which appears when I click the link 'Share'. Now I want to get the values of the options selected. How do I do that? is it $('#userList').val()? And also I have a doubt whether I could wrote the value property of option like this: ? $(document).ready(function(){ var flag=0; $('#share_form').hide();...

Manager for folder of images

I am a big fan of jquery and PHP. I have already found a solution to batch upload jpg with resizing. I am now on a looking for a solution to MANAGE photo list must i need : view (thumbnail) edit name (simple) delete (single click) Will be cool : crop color correct sharpen So the question, does anybody know a framework or php script ...

[jquery.gridlayout] Node cannot be inserted at the specified point in the hierarchy" code: "3

Hey, it's me again with a question about jquery and that gridlayout I made a php template with switch and the code i am inserting is this <div id="wrapper"> <div id="grid"> <div class="box"><img src="img/an_005_BUR_thebeat.jpg" width="310px" height="438px" />3 index</div> <div class="box"><img src="img/an_014_GUE_homme_a.jpg" width="31...

"in" statement in Javascript/jQuery

Does Javascript or jQuery have sometime like the "in" statement in Python? "a" in "dea" -> True Googling for the word in is hopeless :( ...

Simple statement written with jQuery, How would I write this with PrototypeJS

statement written with jQuery, How whould i write this with prototype $("#productNav li a").click(function(){ $("#productNav li a").removeClass("selectedProd"); $(this).addClass("selectedProd"); $("#productListCntnr > ul").slideUp(300); $("#productListCntnr > ul."+this.id).slideDown(300); }); ...