Pass a JS boolean when changing text in a input field?
How do I pass a JS boolean to hidden CFINPUT field when a user has edited text in a specific input text field? ...
How do I pass a JS boolean to hidden CFINPUT field when a user has edited text in a specific input text field? ...
Hello, I have been trying to do the follow: Form gets showed inside jQuery Dialog When form gets submitted, jQuery dialog should close I am trying the following code: $('#RegisterDialog').dialog({ autoOpen: false, closeOnEscape: false, position: 'center', modal: tru...
I have a form and I want it to not be displayed on submit - how is this possible? :) <body> <form method="POST" action="test.php" name="_navn"> <input name="txt" id="input" type="text" value="Write here" onFocus="noValue()" onBlur="changeValue()"> <input type="submit" value="Submit"> <input type="hidden" name="_submit_check" value="1"> ...
I'm sure this is a simple problem, but I'm comparing negative numbers in javascript i.e.: var num1 = -83.778; var num2 = -83.356; if(num1 < num2) { // Take action 1 } else { // Take action 2 } This script will always take action 2, even though num1 is less than num2. Whats going on here? ...
a video element that was appended will not honor transforms. $parentDIV.append('<video id="myvideo" src="http://site.com//video.m4v"></video>'); this transform fails to work on the iPad (but works on the desktop)... $parentDIV.css('-webkit-transform', 'translateX(100px)'); ...
Refer to previous: http://stackoverflow.com/questions/2365994/display-a-warning-when-leaving-the-site-not-just-the-page/3442524#3442524 I'm needing something very similar, however, instead of relying on any rel, id, or onClick designations in the html's anchor tag, I need a way for the javascript to popup a warning if it's determined th...
I'm working on a project where a SWF will play (as sort of a splash), followed by JS. After the video plays, the navigation and content will appear, and the video will fade out. I'm just wondering what would be the best way to accomplish this? Play the video first and then load everything via ajax behind the scenes? The goal is to be as ...
Hey all, (edit) It is supposed to rotate the fade between 3 images every 5 seconds. But rather it just fades the same one over and over every 5 seconds, never going to the next image. Here's mote context because maybe the error wasn't caused by anything in the initial post: $(".paging").show(); $(".p...
New in JS, How do I check if one of my querystring has a value? Example: I have result.aspx?loc=3. How do I check this in javascript if my querystring loc has a value. I need to do this because I will use $('#target').css({'display':'none'}); to a certain div ...
I am trying to place a link inside a tooltip (qTip) that when clicked shows the content of a hidden div inside a lightbox (nyroModal). Regular anchor tag not in a tooltip links to the div opening content in a lightbox successfully. Code: http://jsbin.com/omafe/2/ Might need to copy code to notepad, save as html and open the file. (jsbi...
window.localStorage.setItem("Georgia","Atlanta") var x=window.localStorage.getItem("Georgia") I have a list of 50 states and the largest city stored in localstorage. Using the code above I can easily retrieve that Atlanta is the largest city for "Georgia". Is there an easy way to do a reverse lookup and search for "Atlanta" and get "G...
I copied the code from the example in the sdk, and made a few small changes, (and the following error occurs even without the changes) and the script logs me in correctly. It recognizes that I'm connected, produces the appropriate session information, etc. However, the logout link facebook.com/logout.php?next=http://www.stockyardmagazin...
I'm trying replace the index of form elements. I have the following var test = "<input name='[1].Id' value='598' type='hidden' /><input name='[1].OrderItemId' value='867' type='hidden' />"; alert(test.replace('[1]', '[2]')); I'm getting curious results. The first hidden field is replaced by the second is ignored ie my respons...
Here's a sample table <table width="580" height="217" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="334">Website</td> <td width="246">Category</td> </tr> <tr> <td>http://www.google.com</td> <td>Search Engine</td> </tr> <tr> <td>http://www.gmail.com</td> <td>Web Mail</td> </tr...
I am trying to create a secure login for my site, who's form logs in with AJAX. Unfortunately, as it currently stands, I am sending the username and password using http completely unencrypted. After looking through basic encryption methods in Javascript that I can port to Codeigniter to decrypt, I've read that the best thing to do is j...
I have a "Saving..." overlay that occupies the center of an invisible div that covers 100% of the screen. I would like it to be impossible to interact with the elements behind it, i.e. clicking the buttons, selecting form inputs, etc. Ideally it would not only catch all mouse inputs, but also ignore the mouseover effects(namely cursor ch...
Hi, I'm looking for a way to let user upload a config file (text base, no encryption), then parsing that file (either line by line or separating fields by commas,...) to pre-fill textboxes field on the same page using javascript. Thanks for your help :) ...
Hi, I have a jQuery dialog showing a few items, with a link to open the item's order information in another window. This works fine on a regular view, but when I use target=_blank on a jQuery modal dialog, it does not open another browser window and instead navigates the page under the dialog to the URL. Any ideas how to work around th...
In a JQGrid grid, when you select a row and press the edit button, a dialog box pops up to allow you to enter information in the fields of that row. How do you specify a default height, width, and location of the dialog box that pops up? ...
Please help, I have been looking at this all day and I know there must be a simple fix! How do I pass results back to textService so that I can make a call such as textResult = textService(text to pass in); I don't want to use a global variable if I can avoid it. This is the code function textService(text){ req.open("GET", "http://.....