Hi Guys, I have a quite perflexing problem that I have researched and come up blank;
Scenario:
I have a form, with the jQuery bassistance.de's validate() plugin (http://docs.jquery.com/Plugins/Validation).
Does the job on submit perfectly, however; I two types of submit button.
One submits the form as usual, triggering my back-end v...
Hi folks,
I have a script that generates a modal dialog and inside of that, I would like to put a jquery ui datepicker. I'm currently using the following code:
$('#datepicker').live('click', function() {
$(this).datepicker({showOn:'both'}).focus();
});
Which works just fine the first time I open the dialog and click on the input bo...
I'm a bit new to the Ajax thing and am hoping you all can suggest which of these two methods is most efficient. Both approaches seem to work, but perhaps there is some better way altogether?
thisPage.html wants to display a blob of html drawn from thatPage.html (on the same host) in response to a click on a link. I'm using Shadowbox's ...
I'm trying to execute two events using the same class in jquery... having one heck of a time getting this working?
I need the id from the class so I can't use that instead... theres gotta be a way to do this!
$(document).ready(function() {
$("a.comm_link").anchorAnimate()
});
function open_Comm(id) {
$('.comm_link').live("click",funct...
I have this snippet of jQuery used to get an ID number from an input field
$('table th input').change(function() {
var id = $(this).attr('id');
id = parseInt(id);
id = isNaN(id) ? 0 : id;
alert(id);
});
the ID's of the fields are along the lines of 'col2Name' etc, and I want to just grab the 2 from there, for some reas...
I have a search action that returns a json response object which is basically serializing an object using json.net's lib.
My collection has a SearchResult object that has 3 properties (rowID, Title, Url).
Should I create another object instead of SearchResult to use with autocomplete plugin?
http://docs.jquery.com/Plugins/Autocomplete...
I'm using the jQuery validation plugin on a form loaded via ajax.
For whatever reason, it isn't working. Is there something special I need to do b/c it's loaded after js is initialized? Any ideas?
Edit:
Using the code from the plugin site:
$().ready(function() {
// validate the comment form when it is submitted
$("form").va...
I have the following JSON:
var json = {
"system" : {
"world" : {
"actions" : {
"hello" : {
"src" : "hello world/hello world.js",
"command" : "helloWorld"
}
}
}
}
}
I have the following javasc...
I want my autocomplete to be very user friendly.
I have products that people will search for by:
part#
manufacturer
e.g. searches
HND123
Honda 123
So basically each manufacturer has a short form and a long form.
How should I build my search index so when the autocomplete needs to fetch the data from the db, it will return result...
I have a controller method "SaveFile" that attempts to download a binary stream to client's PC using the FileContentResult. If I make the call as a post from the controller corresponding view everything works OK. I want to call the same controller method "SaveFile" from a jquery function via an .ajax call, when I do the function returns ...
<input type="radio" name="sort" value="2" id="myradio">
How do I make this checked in JQUERY?
...
HI, using C# I am saving formated HTML data in MSSQL such as:
<div>\n\t<p>x</p>\n</div>
I am than populating it into a textarea to display. I understand that I can use the .val() method in jQuery to pull all of the ASCII characters out of the textarea, however, I can't seem to figure out how to get the "\n" and "\t" characters to show...
Hi, i have discovered quite an odd behaviour of jquery. I have two lists here, where i drag and drop li-elements from one to another, the current sortings is being saved by ajax-mysql. Now this afternoon i noticed that sometimes, just sometimes the position of the last dropped item wasnt saved properly, it was saved as "0" when it should...
The text is not getting displayed on my modal window. I do see a blank space but when i highlight it with mouse i see the text and when i click anywhere on the screen the text becomes invisible. It works in firefox, IE 6.0 and IE 8.0 but not in IE 7.0. Any suggestion is highly appreciated. ...
How do I speed it up?
I get the results from JSON web service (lightning fast). Adding nodes to the tree using
something like
parentNode.addChild({
key: key,
title: value,
addClass: cssClass
});
Unfortunately, a tree with 100+ elements takes 1.5 minutes to load.
I am disappointed...is it not made to be us...
I've created a plugin and I have my defaults set but when I change the parameters in the calling script, they are not reflected, the defaults are always taking precedence. What am i missing here?
calling script in my .html file
$('.inputBox').validate(function() {
rounded: true
});
Stripped down plugin. Even though i'm setting ro...
I recently aquired an old website (we're talking tables, image maps, you name it).
I was asked to make an old link to a Flash gallery into a lightbox. I simply used a javascript: openLightbox() on the gallery link (top right corner). I know, I know, but it doesn't seem out of place on this site.
Anyway, I also include a JavaScript file...
I am trying to handle the same onSelect event on a jquery datePicker object twice. From what i understand the event can be handled multiple times, but when i try this only one of the event handlers gets fired. It seems to fire the second handler, but not the first. How can i handle the same onSelect event twice without overriding the fir...
In a sort of follow up to this question, I have another problem in IE8.
When clicking the gallery and the lightbox appears, the images are overflowing their containing element (by the looks of things).
Has anyone ever experienced this before? Of course, the good guys (Firefox/Safari/etc) display it perfectly.
How do I fix this?
Tha...
<div>
<a>
Text1
<img alt="" stc="" />
</a>
<a>
Text2
</a>
</div>
I want to select all a elements that have text=text2. I looking for something like that:
$('a[text=Text2]')
Edit: Why this is not working? (from some reasons it's need to be in this format).
$('div').find('a').find(':conta...