jquery

jQuery Selection doesn't work when TD element contains BR elements

Ran into a bit of an issue with some jQuery code, but in essence, I have a table that may or may not have BR elements in the first column. When there are no BR elements the following code works fine and a value is returned. However, when there are BR elements, the code values to return any values for most of the columns. Any ideas what m...

Get uploadify to work with cookieless session state?

I have an uploadify control working fine in a vb.net web application - however whenever I switch on cookieless session state in web.config (cookieless="true") - it stops working. In my upload IHttpHandler I can see that the data stored by uploadify is nothing: Private Function Process(ByVal context As HttpContext) As String Dim F...

How to slideDown a new DIV using jQuery ?

Hi. i want a jquery code which create a div contains a given content and then slide it down. currently i have this code : var newdivcontent = //ajax code here to bring new content var newdivname = Math.floor(Math.random()*11); $("#topofpage").after("<div id='"+ newdivname+"'>"+newdivcontent+"</div>"); $(newdivname).hide(); $(newdivnam...

how to detect iframe resize?

i have a page with a function to resize the height of iframe in this page as a height of content of iframe but whene the iframe has a toggle action the height change and the function dosn't detect the resize of the iframe. is there a way to detect if content of my iframe has change... ...

jQuery: check all checkboxes

Consider this scenario: <asp:CheckBoxList> in a master page. the goal is to have all checkboxes in this list to be checked on page load. there are many checkbox lists on the page. The markup: <asp:CheckBoxList runat="server" ID="chkSubscriptionType" DataSourceID="myDS" CssClass="boxes" DataTextField="Name" DataV...

[jquery] Regular expression matching and calculating

Hello, I have a input field in which users specify file size in Mb, so for gb they have to calculate right now. I want to change the input fields value automatically in calculated Mbs if users type gb after the number. Example: 1024mb = 1gb So if a user types 5gb in input field jquery takes the value onchange and updates the fiel...

Updating HTML via JSON/AJAX

I've been using JSON to handle AJAX functionality in my rails applications ever since I heard about it, because using RJS/rendering HTML "felt" wrong because it violated MVC. The first AJAX-heavy project I worked on ended up with 20-30 controller actions tied directly to specific UI-behaviors and my view code spread over controller acti...

Can someone explain this code?

Hello friends $.post("include/email_validate.inc.php", { email: $('#email').val() }, function(response){ if(response=="email_exits") { alert("E-mail Address Already Registered"); return false; } else if(response=="invalid_email") { alert("Invalid E-mail Addres...

jquery, timer or chaining functions?

how best to go about cycling through li's and repeating? should i use a timer or is there a better way? for example, i want to display li one at a time. when i hit the end i want to go back to top and start again. ...

Cufon line-height problem

Hi, When I apply line-height in CSS or in javascript, it does not do it. And if I apply in the script, I get the following error. Error: missing : after property id Line: 26, Column: 44 Source Code: Cufon.replace('#header .lists li a', {line-height: '120%;', font-size: '120%'}); javascript $(document).ready(function() { Cufon....

Replace highlighted text in an text area with jQuery

I want to make it so that if the user has "bold text" highlighted in a text area when they press the "Bold" button it replaces it with "[b]bold text[/b]". I would think that it would by placing "[b]" before the start of the highlighting and "[/b]" after it. I already have it so that the when the bold link is pressed it appends "[b]STRI...

Using object in the jQuery post parameter

I'm thinking this is not possible but I would like some insight as to why. I want to do something like this: var pVals = { ob1: "postvar1", ob2: "postvar2", ob3: "postvar2" }; $.post("php/dosomething.php",{pVals.ob1:"object 1", pVals.ob2:"object 2", pVals.ob3:"object 3"}); I get an error along the lines of: missing : ...

jQuery + <a> tag

Hi All, I've created a Facebook/Twitter style status update where the new Status' get added to an unordered list. I now want to add a "REMOVE" function to it, however, I'm not sure how to best accomplish this. In my list item, create my [a] tag with the unique ID of the status post ID and set a listener class Have jQuery listen for [...

Jquery next() Problem

Hello, i have this: <div class="selection"> <a class="current" href="#">1</a> <div class="class">text</div> <a href="#">2</a> <div class="class">text</div> <a href="#">4</a> <div class="class">text</div> <a href="#">5</a> </div> i want to select the very next a element after a.current. I did this, but it doenst work. ... $("...

Need some help writing a custom jQuery plugin

Please take a look at the following: jQuery.fn.jqPos = function(target, settings) { settings = jQuery.extend({ offset: [ 0, 0 ] }, settings); return this.each(function() { magic($(this), target, settings); $(window).resize(function(){ magic($(this), target, settings); }); }); ...

JQuery : selector chain with attribute filter : result does not persist?

I am pulling my hair out!! grrr... This seems to work: //get all the foo and bar links that point to a named anchor: $("a.foo,a.bar").filter("[href^=#]").click ( function() { doSomething( $(this).attr("href").substr(1) ); return false; } ); When I log the output of '$(this).attr("href").substr(1)' to the c...

Animated gif not animating on submit

I have a form where the submit function takes several minutes. I'd like to display an animated gif while the submit is cranking. The code below shows the gif, but it doesn't move. What can I do to get it going? <script type="text/javascript"> $(function() { $("#submit").click(function() { $("#wait").show(); ...

<option> tag, display:none and jquery

I have a div that is being used as a dialog with jQuery's .dialog(). This div has a select box with options. The options the user has already selected are displayed on the main page. They can remove options from the main page and can open the dialog multiple times to add more options. I populate the select box with all possible options ...

howto create an Ajax Popup Form and submit the form

Hello. I like to request a ajax-popup bij clicking on a link with variable. The popup will show some date requested from the server. After submit the data will be checked on the server and send a responce back. Depending on the responce, new content will be showed in the popup. The user can close the popup afterwards. I have searched a...

php and JSON help!

I have a script for updating a database table. I need to return a JSON array and to update some tables with JQUERY. my php script: $update = mysql_query("UPDATE PLD_SEARCHES SET STATUS = 1, TOTAL_RESULTS = ".$scrapper->getTotalResults().",RESULTS = $resultCounter WHERE ID = ".$searchId); $output = array("status"=>"COMPLETED","results"...