I have a bunch of rows in a form like this
<tr>
<td nowrap><input type='checkbox' name='approve_DTC0F00EFAA43A8'</td>
<td nowrap><input type='checkbox' name='deny_DTC0F00EFAA43A8'</td>
<td nowrap><textarea name='isonotes_DTC0F00EFAA43A8'></textarea></td>
<td nowrap><input type='text' value='' name='secplan_DTC...
I have a page that contains multiple textarea elements. These textareas and the IDs are generated dynamically when originally rendered to the screen.
I know that the selector for the textarea have to be identical.
I can loop through my original data that I used to generate the elements to create a variable that contains the actual id ...
I'm using this code:
$newFilter = getNewFilter();
$fieldDropdown = getFieldDropdown(fieldData.field);
$newFilter.append($fieldDropdown);
$typeDropdown = getTypeDropdown($fieldDropdown.data('zenfilter').fieldId, $fieldDropdown.val(), fieldData.type);
$newFilter.append($typeDropdown);
$inputBox = getInputBox($typeDropdown.data('zenfilt...
I have a Json object in which I would like to fill a drop down list with distinct values selected from a field of my Json object
...
I have the following jQuery (service name altered):
var url = "http://localhost/services/MyService.svc/addentrant";
var stuff = $("#signup-form").serializeArray();
$.ajax({
type: "POST",
url: url,
contentType: "application/json; charset=utf-8",
data: stuff,
timeout: 10000,
success: function (obj) { alert('yay!')...
I wonder why the code below isn't working?
$(document).keypress(function(e){
if(e.keyCode==27 && popupStatus==1){
disablePopup();
}
});
Here's the full code:
var popupStatus = 0;
var buttonDivID = "";
var conDivID = "";
//determine which div is clicked
function setDiv( div ) {
if( div==1){
conDivID = ...
I have a number of jQuery scripts that select elements within the area that I run a partial page refresh on.
I am using this css tricks code snippet to refresh that part of the page:
$('#refreshbutton').click(function() {
var url = "http://myUrl.com/indexTest.php?ID=" + Math.random();
setTimeout(function() {
$("#maindispl...
How is it possible to execute JavaScript code on a specific page through a Firefox addon. I know I can use Greasemonkey but since I'm porting one of my Chrome extension, I want it to have the exact same features. So my question is, is it possible to execute JavaScript through a Firefox addon as if that JavaScript was executed in the page...
I have a textarea that I want to block input on if the entered characters reaches a max-length.
I currently have a Jquery script for the textbox that calculates the characters entered and want to add something that will block input in the textarea once 150 characters are entered.
I have tried using max-length plugins in conjunction w...
I am using the hover function for mouse over in a menu. I have selected a particular element using it's class. To make changes to only that element and not all the elements with that class I can use 'this'. But I wanna make changes to the h3 tag inside that class element. Again the one I have hovered on and not all elements with that cla...
firebug is complaining its there is a syntax error
if (document.getElementById("fromAddress").value == "") ||
(document.getElementById("fromAddress").value == "Enter Address, City, Directions") {
...
I want to populate a gridview by using jQuery and AJAX. From my calling page jQuery will call a handler (.ashx) that will deliver XML data or HTML markup for the gridview. As I see it I have two choices: 1) deliver XML which is then bound to the design-time gridview on the calling page, or 2) deliver HTML for the gridview. My first que...
I am using the Jquery/Jqtouch libraries for an iphone compatible site. I am now stuck with a problem just in iPhone 4 (not in 2g, 3g or 3gs) where the text becomes blurry on one specific scenario. Below is how it happens
The site has one common div container.
The container is filled with content dynamically based on the user action....
I need to replace a slash with a hash in a URL. Everything else stays the same.
e.g.:
this:
www.example.com/main/events/event-1
needs to be changed to this:
www.example.com/main/events#event-1
(jQuery solution is optimal, plugins OK)
Update based on OP's comment:
Using this code:
function outputStatus(e)
{
if (e.succ...
I have a a handful of dynamically generated inputs. Some have IDs, some do not.I also have an array of IDs. I need to loop through the array of IDs and input the next available ID into the next input without a value.
I have tried
$.each(event_array, function(intIndex, objValue){
$('.event-data').find('.event-id').each(function(i){
...
I'm using carabiner for CodeIgniter which can minify all the javascript files it loads. Well, I have about 10 files that work fine, then when minified, they don't... I'm not sure exactly what doesn't work, there are no errors, just certain features that don't work. Is there any particular reason why minifying JavaScript would cause it t...
What is the best way to ensure that events are rebound after an UpdatePanel callback?
Suggestions I've seen:
function pageLoad(sender, args){
//bind events here.
}
or
use the .live(eventType, handler) method to initially bind the events
or
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function() ...
Right now I have a loop that is going up by one until it hits its page limit. (this is a mini book/magazine)
I have them inserted into a drop down so a user could select the number they want and it will jump to that page.
Is there any way to instead of use numbers, somehow get titles into it instead? Like Front cover, table of contents...
OK, so, I use livequery() to bind a function to the click event of all links of class 'ajaxLink'. The function fires perfectly...once. After the first successful ajax call on a click, subsequent clicks don't fire the ajax, which means (I'm guessing) they aren't being bound by the livequery() code anymore.
I saw where others who had a si...
Rather than simply dumping the HTML into the page I want it to be animated, how can I change the jQuery below to either animate or slide down as the HTML is inserted?
$('.button').click(function() {
j('.tweets ul').prepend(j('.refreshMe ul').html());
});
...