I'm currently working on a PHP project, in which i have a search form for users to set search criteria and displays the result. for each result row i have created a checkbox for the user to select that row such that they will be able to identify which rows to export out.
now, as this could be a potentially generate a huge list of results, individually selecting each checkbox can be a pain. so i created a "toggle" checkbox which will toggle the checkboxes "on" or "off" using a javascript function.[code]...
I have a form that I am trying to loop through the elements of and come up with a total, when the form is submitted. The goal is to alert users that they have not entered a minimum or maximum number of choices before letting the form submit. The fields in question might be checkboxes in some cases (with a value of 1) or textboxes in others with user-submitted values. Here is a stripped down example...The html
There are two input fields in a form, but only one of them is required, they are not required at the same time. Either A or B is required. ( A is required OR B is required). In other words, a user can input data to field A, or he can input data to filed B, but he can not input data to Both A and B at the same time. How to implement this constraint in Jquery form validation?
I need to loop through all form elements such as text, radios, check boxes and the like and to save their state in a file. does anyone have JS code to do this ?
I'm relatively new to JavaScript. I would like to loop through all the elements within a form and grab their values and what type of input they are. So far I came up with:
I am trying to set up a looping structure that tests to see if the user enters a value. If the textbox is null then a global variable is false otherwise a checkbox is checked and the global variable is true.below is what i have done so far.
var isValid = false; window.onload = startForm; function startForm() {
I have been looking for the past 2 days for a script that I can add and delete table rows.
I have found a lot but so far all of them add an input field but I desperatly need a textarea or ideally a section of input fields.
I have tried to change the code from input to text area but none of them worked.
Have you come across to a similar script.
I would appreciate any contributions.
What I am trying to do is a page where the user will add their employees details so we can order business cards for them. So I have fileds such as, Name, Tel Num, Email, Cell etc.
I have this order form where the customers can change the quantity by intput in a text field.I would like to have the text field changed with select fields, but doing so in the form, the script is not doing anymore.Can anyone have a look and tell me what to change in the scritp to accept select fields in place of the text fields.
I would like to loop through elements that are NOT disabled. So far my code is:
$("#addlivestock :input").each(function(){ if($(this).find().attr('disabled','disabled')) { var getAttr = $(this).attr("name");
[Code]....
When I click a button that code fires. When that code fires all the elements that aren't disabled get disabled. My code does NOT work as expected and I found the problem, which is if($(this).find().attr('disabled','disabled')). how to loop through form elements that are NOT disabled.
I am trying to use "replace" to remove dollar signs and commas from input values by looping through the elements. I'm pretty sure I have to use an array in an array to do so but can't figure it out. Here's what I have:
i have created an option on a website to give the possibity to the user to change the font size (smaller, bigger, reset), like the famous x3 'A' that we see in most of the websites. the code i have is based on a plugin copywrite to [URL]. now i'm facing a problem with different font size for different elements. to make the text bigger and smaller works like a charm but to reset the font size is not working so good. here is the code of the plug in the reset part:
//on clicking default font size button, font size is reset jQuery(container + " .defaultFont").click(function(){ jQuery("#content *").css('font-size', defSize); // coockie to rememebr the selected font size updatefontCookie(target, defSize); });
here is how i'm calling the function: fontSize("#container", "#content *", 8, 12, 20); container is where i have the images to make the text smaller or bigger content is the div that has the content that i want it to be changed 8 is the smallest fonr size 12 default 20 max now the thing is that i have different font sizes in the page and some of them don't have a class just the <font> ....</font> when i'm clicking the rest button then i'm getting everything with size 12 and this is what i want to change. i want to remember the current font size and set it back.
I'm using the XMLHTTPRequest JavaScript object to fetch updated info from the server.
The problem I'm having occurs on Windows 2000/IE 6. There is a very long pause on readyState 3 (close to a minute, maybe more) but it eventually gets to readyState 4. I have no idea why. The page works just fine on Windows XP/IE 6.
There is no delay or hang up on the server side as far as I can tell (if we get to readyState 3 is because the server already sent its response).
Does anyone know what takes place between readyState 3 and 4 and why does this happen on Windows 2000 but not on Windows XP? Code:
but in Mozilla it prints out hello then hangs looking like it's doing something then I have to press back. In Explorer it works doesn't hang. Any ideas anyone why it's hanging in mozilla(linux)? Also if I change the document.writeln("hello"); to
We are using a javascript code which is setInterval("window.clipboardData.setData(' ')",20)in our application for managing clipboard content. While accessing our website via Internet Explorer 7, system will prompt a warning message �Do you want to allow this web page to access your Clipboard?�. This confirmation message will have two buttons �Don�t Allow� and �Allow Access� . Suppose if I click the input field in the Application, system will prompt this confirmation message , and I can continue by click on any of the button. but sometime it happens that the CUSTOMER NOT ABLE TO CLICK ANY OF THE CONFIRMATION BUTTONS, AND BROWSER WILL HANG ON. customer will not allow to disable/enable clipboard access properties via IE Tools->Internet options. THIS IS VERY VERY URGENT FOR ME.. Can anyone give a solution for this.
In one of my project I require to open new window on button click which uses images and CSS. After clicking on the button it shows all the things perfectly the only problem is the progress bar on on the window never show 100%. [code]...
XP IE6 virtual PC for test, latest version of jquery the browser hangs after an ajax request. $.get("/myurl", {random: $.random()}, mycallback); I read that IE6 hangs for some cache searching stuff, that is why I added a randomstring with my $.random() but keeps hanging the browser.
This code allows me to make a drop down menu when the cursor hovers over a link.
I have a horizontal menu, so when I hover over a certain link, I get a drop down menu, but the problem is that it won't go away if my cursor is still around the horizontal menu. It will go away if my cursor is outside of the menu.[code]...
I have a sidebar application, I am using an IM functionality inside this sidebar. When a user is logging in, the connection with chat server will generate on this sidebar.The sidebar itself acts as a parent window. When a user click on the IM icon inside the sidebar, a child Pop up window will open. The child Pop up window uses the connection objects from the Parent sidebar. When closing this child Pop up window, the sidebar hangs. When I tried to reopen the child Popup window, the Pop up window also hangs for a long time. But I can not find the exact reason behind this hanging of sidebar, after closing the Pop up window.
I am trying to get an exec to work on the following code: Code: i=0; alert("before exec"); while ((result = /\r\n ?w:/g.exec(lines)) != null) { i++; } //Counts number of lyric lines if (i > 1) lyricRegExp=/\r\n ?w:([^\]*)/ ; alert("after exec");
If I find more than one occurrence of a line starting with "w:" (or has spaces before the "w"), I will need to change a regular expression used. The exec() runs fine in Firefox but hangs in Internet Explorer. The whole script I'm trying to test is abctst.htm on line 494. If anyone tries to run this click on Submit, my testing code is already filled in. The alerts shown will run first followed by about six more alerts before highlighted code is created in the bottom textarea.
I am having a problem with the submit() method that is driving me nuts. I'm using document.form.submit() with large text fields (approx. 2000 characters) and am getting a "Invalid Syntax" error. If I do the same thing with a text field of under 1500 characters, it works fine.
Is there some size limit here that I don't know about?
We're using Malsup's form plugin v2.82 and jQuery core 1.6.2. We're having issues in IE7 where, on a form with file upload, form fields are being dropped before the form is submitted to the server.We tracked it down to the `fileUpload` function, specifically line 196 where each field in the form data has `.attr('disabled',false)` run against it. If we change this to`.prop('disabled',false)` it all works fine.I don't see a clearly marked place to submit bug reports for the form plugin, and wanted to verify that others see this as well,
I'm having trouble changing the font color of my labels ONLY when I stop the form from submitting due to blank fields. I'm not sure whether if just changing my CSS will achieve what I want, or am I going to have to add somethig to my if else statement, or both? I would think I would need to change CSS to :
label.onfocus { color:red; }
but a little confused on what else.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> [Code]...