jquery

Dynamic Jquery Tabs

I am building a site here but having a problem with linking to pages. This site is a one pager site that has a menue and a javascript that triggers it. Not if you visit the link I wanted to link the 3 green boxes to level1,level2,level3 like the main menu. But having a problem on how to do it. here is the code for the Top Menu <div cla...

Problem selecting element with jQuery

This code makes one comment box: <div class="com_box"> <div class="com_box"> <div class="com_box_text"> text </div> </div> </div> <div class="com_box_info"> <img ... /> <div> ... </div> <div> <a href="" id="quote"> text </a> </div> </div> When i click a#quote i want to do something with the div.com_box_text over. ...

jquery other page element inactive after $("#div").show()

how can i do. i have many html elements on page. after clicking on html button, i want that, my special div showed, but, other html are inactive. for example, textareas not editable, buttons are not clickable. thanks Forget say "SpecialDiv" also contain buttons, selects, textareas etc. they must be "abled". ...

Jquery Ketchup Form Validation not initializing required fields

We are trying to implement jquery ketchup demos.usejquery.com/ketchup-plugin/ and use required fields for the name, email and phone fields we have included all the markup and I think I have it setup properly but the form fields are not validating... You can see my sample here... thx for any assistance I have been staring at this for h...

how to avoid function conflicts between jquery plugins

I'm having an issue where I have ended up with two functions named the same (jquery.fn.filter). one is from a 3rd party plugin, the other is from one of my plugins. Obviously I can rename the function in my plugin, but how would it be best to go about about writing plugins to avoid the possibility of this happening? is it possible to ...

Data contained in an array/json, want to inject into page via DOM, does jQ have templates?

Say I have an array, that contains data that I want to display in a html table. (sort of how gmail has all the data in js objects) I have this data in an array so I can do ajax type operations like updating/deleting/sorting of the data. Does jQuery have templates where I can create a template for a given row, and then just loop through...

Programatically adding jQuery UI Sliders causing problems

I'm currently adding a div to use as a slider programatically, but when I apply the slider to it, everything appears but I can't drag the handle nor do any of the hover states work correctly. var container = $('<div class="container"></div>'); var slider_div = $('<div class="position_slider"></div>'); $(slider_div).slider(); container...

does javascript/jquery have an event model that you can create?

Does jquery/javascript have any event model that you can attach to your objects? Basically I want an object to have an event, and I want other objects to be able to subscribe to these events? ...

jQuery - Finding the row number of the current select element within its change handler

Hello, I have a table. In this table have select element. How can I find in which table row is select element, from within the select's event handler: $('#selectElemID').live('change', function(){...}); Thanks ...

Generating very big options list inside select box from jSon

Performance issue, when generating around 800~ options from jSon object via javascript. Any suggestion, what to change or use, to remove those freezes, when new list is generated? Using jQuery. http://www.copypastecode.com/24016/ Thanks. ...

jQuery - Fadein only once

I have the following jQuery: $("#toolbar").hover(function () { $(".logo").fadeOut("slow", function () { $(this).addClass("logohover") $(this).parent().addClass("logohover").fadeIn("slow", function () { $(".logo").fadeIn("slow"); }); }); }); <div id="toolbar"> <div class="logo"> &nbsp; </div>...

PHP, jQuery and .post(): mysql_real_escape_string messes things up.

Hi! I have been tearing my hair with this one for a while. index.php: $(document).ready(function(){ $(".index_login_subm").click(function(){ uid = $("input:username").val(); pwd = $("input:password").val(); $.post("backend/login.php",{ uid:uid, pwd:pwd },function(data){ ...

How to accept a JSON string array in an .aspx Page method

I am using jQuery ajax to pass a string array to a page method. I need to know what to do with that data once it gets to that page method. My goal is to insert it into a DB but before that I need to make sense of the array. As it is, it is coming over like this: { data : theArray} which correlates to {data: 1,2,3,4,5,6}. But 4,5, and 6 r...

How to return data from PHP to a jQuery ajax call

Hi, I am posting some data using ajax. I want to manipulate that data and return to to the calling jQuery script. Here is my jQuery: $.ajax({ type: "POST", url: "somescript.php", datatype: "html", data: dataString, success: function() { //do something; } }); Here is my somescript.php on the server: <?php //...

Pushing to Javascript Array from Jquery JSON request

Why does this code always return 0? var possibleMatches = new Array(); $.getJSON('getInformation.php', function(data) { $.each(data, function(i){ possibleMatches.push(data[i]); }) }); alert(possibleMatches.length); Though I can move or add "alert(possibleMatches.length);" inside the $.each and it will output the c...

php or perl javascript compression for jQuery

Anyone know a PHP scripts that done a good compression for jQuery? ...

delaying actions between keypress in jQuery

How can I delay actions between keypress in jQuery. For example; I have something like this if($(this).val().length > 1){ $.post("stuff.php", {nStr: "" + $(this).val() + ""}, function(data){ if(data.length > 0) { $('#suggestions').show(); $('#autoSuggestionsList').html(data); }else{ $('#suggestions').hide(...

Best way to add music to CMS-created sites without Iframes or ajax?

I'm doing some work on a site that let's users create their own mini-sites. My client wants users to be able to upload music and have it continuously play as visitors navigate the site. The only good way I can think of doing this is an Iframe, but obviously that will than get rid of unique URLs. I also don't want to use Ajax or a cook...

How to retrieve the value of a label/textbox etc., that has been calculated by jQuery

I have a GridView with a Label. The value of the Label can be calculated with a jQuery-Method. When doing this, the (.Net-)server does not realise the change of the label, but works with the old value from the database. I tried several approaches to fix it: a TextBox behaving like a label doesn´t change anything HiddenField: does´nt w...

JQuery: Slide left and slide right

Hello, First of all, I am not that much experienced with JQuery, i have seen slideUp and slideDown, what about are the functions/ways for sliding to left and right? Thanks ...