jquery

Include part of form in jQueryUI dialog box

I have code that looks like the following: <form id="MyForm" name="MyForm" method="post" action="index.php"> <input type="text" id="Input1" name="Input1"> <input type="text" id="Input2" name="Input2"> <div id="dialog"> <input type="text" id="Input3" name="Input3"> <input type="text" id="Input4" name="Input4"> </div> <button type="but...

Cross-browser method for getting width and height of a DIV?

This is my first post, so please go easy on me. I'm sure I'm doing everything wrong. However, I couldn't find any posts that answered the question above. I use jQuery. I'm trying to find a way to get the current width and height of a DIV element, even if they're set to "auto". I've found many ways to do this, but no method returns the s...

How to get form specific variable value using Jquery

Hi, How to get form specific variable value using Jquery. I have multiple form in same page and same variable name in each form, i want to read textfield value using form name. Please help thanks ...

Reading table values per column

I have two columns in my table and the rows are created dynamically. <table id ="datatable"> <tr> <td> <input type ="text"> </td> <td> <input type ="text"> </td> </tr> </table> For each row, I want to get the value of each table and insert them in an object as follows. var reading= new Object(...

Setting focus in textbox using jQuery

I am doing a small jQuery function. What this function should do is on leaving textbox it should display text from textbox as alert, clears textbox and again set focus in the same textbox. It is doing two of three tasks showing text in alert and clearing textbox but it is not setting focus back in that textbox. Please note this textbox ...

How do i add event to multiple field of same field.

Hi How do i add event to multiple field of same form. In Following code i want to add keypress event to userName also. $("#existingUserForm :input[name='userPassword']").keypress( function(e) { if(e.which == 13) { processLogin(); } }); ...

Problems with field validation script.

I have some javascript code that reads: $(this).keyup(function () { if(regex.test(this.value)) this.style.backgroundColor=config.validColor; else this.style.backgroundColor=config.invalidColor; }); This is supposed to provide a visual cue to the user, about the field he or she is typing in, however, this just flips the colou...

html control with image to get the click event using jquery

Hi All, In our application we are using set of images as slides. If we click one image we want to get the id of the in the same page. i have tried by using the following code. code: HTML: <a id="100" href="#"> <img scr="..."/> </a> ... JQUERY code: $("div.alb a").click(function() { }); Problem: Without href="#" the c...

Request URL encoding issue in $.ajax call and Max request URL length in $.ajax as compared to Ajax.ActionLink

I am doing a simple $.ajax request: $.ajax({ type: "POST", url: "/Run/" + param1 + "/" + param2, dataType: 'html', error: function(error) { }, success: function(html) { } }); If my param2 value is like http://localhost/pub/file?val1=Some Text&val2=Some Text then encoding done using esca...

run javascript at serverside

Is there any way to run one same instance of JavaCcript(jQuery) on the server side and call it from a Java method? :) I am interested to know whether it is possible to run it on the server side (not clientside), like Google app engine. ...

Jquery DropDownlist undefined item İE 8

Hi All; $.get("CallBack.aspx", { nm: StateTx, nm2: StateTx2 }, function(data) { $.each(data, function() { $('[id$=DropDown1]').append("<option value=" + this['I3D'] + ">" + this['prmv'] + "</option>"); }); }); İe 8 Mozilla Firefox my problem ie8 last ...

adding jquery to a facebook application

How do I include and use jquery in a facebook app that I am creating? ...

How to increse height and width of an image in jquery up to a certain limit?

Hi friends! I have two images and those are layered on each other using z-index. I want to increase there height and width by 20 from there current height and width whenever a button is clicked. I have assigned height and width to one image using a css class and for another image using style property in tag Friends! I increased the he...

Jquery ajax hash return page fragment

Hi, I have an application with URLs like this: domain.com/category1/category2/ etc. I see that ajax understands the # and can pass the params to my php script. I am wondering if there is a way in ajax to do the following URL: domain.com/#category1/category2/ If so, is there a function that I can use in jquery to do this? I have seen...

make the div content autoscrolling right to left with a nice animation

Hi everybody, How can I make a div content (any type of content: table, image, text,etc.) autoscrolling from right to left with an elegant animation? Thank you very much, regards. ...

jQuery vs. javascript?

I recently stumbled upon some javascript forums (sadly, link is lost somewhere in the universe), where you could feel real hate against jQuery for not being... any good? Most arguments seem to make sense actually. Now, I really like jQuery, mostly for letting me concentrate on things I want to do rather on browser inconsistencies and i...

Javascript trivia: check for equality against the empty object

Probably a duplicate of this question. Silly javascript question: I want to check if an object is the emtpy object. I call empty object the object that results from using the empty object literal, as in: var o = {}; As expected, neither == nor === work, as the two following statements alert({}=={}); alert({}==={}); give false...

Some ideas on indicating the active cells (or passive cells) of an HTML table (by coloring or by bluring or other)

Hello all, I have an html table, which includes let's say 1 row and 5 cells (C1, C2, C3, C4, C5). (Cells have specific content) C1 - C2 - C3 - C4 - C5 Usage 1: C3 is used with C1 and C2 at the same time, Usage 2: C3 is used with C4 and C5 at the same time, When I am using "C1, C2, C3" then C4 and C5 is not used or When I am using "C3...

Hide all select elements within a div using jquery?

How would I hide all of the 'select' html elements within a specific div using jquery? Thanks ...

jquery - select all checkboxes with js array name

Hey, I want to use a JQuery "check all" function in a form like this: http://jetlogs.org/jquery/jquery_select_all.html My problem is I am generating my form from a php script, and I don't know exactly how many checkboxes I will have in advance. I use the "array" naming convention to be able to get all the selected checkbox values in m...