I want to access a Session value in jquery method in the ASP.NET MVC view page. See the below code,
$('input[type=text],select,input[type=checkbox],input[type=radio]').attr('disabled', '<%= Session["CoBrowse"].ToString() %>');
Please advice how can I get the Session value in jquery.
...
(Hope this doesn't get duplicated; second attempt at submitting this question)
I'm working on a form in which I'd like to give the user the ability to add an undetermined number of Contacts (Name and Phone Number). I only want to show one row of these form fields to start with, and allow the user to click an element which will add dupl...
If you look on http://soup.io or http://hashtags.org, and you scroll all the way down, you'll see how the page automatically loads MORE INFORMATION as you get to the bottom.
How do I do this?
...
I'm trying to get the jQuery slider to have set values to slide to as opposed to every number between the min & max amounts.
I'm wanting "0, 25, 50, 100, 250, 500" as the only amounts people can slide too but can't work out how it's done. Putting them in the "Values" part doesn't seem to do anything.
<script type="text/javascript">
$(...
This is in reference to jQuery 1.3 and jQuery Form Plug 2.25.
Hopefully this is a cakewalk for even an amateur, but I am clueless.
var x;
$('div#response').fadeOut(300,function()
{
// do something
x = this;
}
$('#myForm').ajaxForm({
target: x,
success: function()
{
// do something
}
});
What I'd l...
Hello,
Is it possible to unfocus a textarea. I couldnt find any $('#textarea').unfocus()?
Thanks
...
I am using plugin from here. Thanks for it.
I use it for multiple dropdowns. The thing is I want it to filter source list based on text, however plugin filters only by value. Believe it is set in this line:
.filter(function() { return opt.match.call(this, opt.getParentValue(parent)); })
opt.match.call - calls match method on dropdown...
I need a very basic client-side form validation: whenever an invalid field is encountered display a standard windows dialog box, stop checking the remaining fields, and cancel submission.
What is the easiest way to do the above with jQuery?
...
$.post(actionUrl, serializedForm, function(response) {
...
}
I need to check whether validation of form succeeded, or not (I don't need to know the exact validation errors). The validation is done by Spring, and I wouldn't like to interfere the process, because there's some annoying dependencies.
What would be the best approach? Is t...
I have an jQuery.autocomplete field presenting a limited range of decimal numbers. Ex:
var the_list = ['+2.23', '+1.10', '-1.10', '-2.00', '-3.00',]
But I allow the user to enter data like '2.3' and '-5'. At least I can get partial matches to help me when i start typing for these values.
But what if I (or someone else with clumsy fin...
Hello.
Don't let below code scare you away. The question is really simple, only two lines are making trouble:
Why do my code generated a NaN error code? I am trying to substract one variable value from another so position of elements will be correct.
The variables got their value from jQuery position() which is supposed to be integer ...
We are about to start a new Web2/AJAX app and are trying to decide if its worth the time and effort learning Ruby/RubyOnRails instead of PHP, CodeIgnitor and JQuery we currently use.
The key issues are clean/fast/modern AJAX UI, robust error handling, ans maintainability.
I would appreciate unbiased (if thats at all possible talking la...
Hi,
Does anyone know how I can go about hiding the tab selectors for the jQuery tab control?
I'm trying to do a wizard setup type thing by having multiple views that are hidden but only show up when I want them to.
Any ideas? Something else other than tabs i could use?
...
In my recent project, I am using the click event like so:
$(".nav-item").click(function(evt){
do something here...
})
Inside the event handler function, I want to look at the children of the event target using jQuery selectors. Something like
$(event.target + " > .subitem").html()
assuming .subitem was a childnode with a class ...
Hi,
I'm looking for a way to debug a dynamically loaded jQuery document.ready function.
Obviously I can't just bring up the script panel and add a breakpoint with the mouse since the function does not exist there.
I've also tried adding "debugger;" to the function (without the quotes), but that did not do anything. I have ensured t...
I have a form with 2 select options in it -- frequency and duration. When there are errors with the form, and it is returned to the browser, the select options are not re-populated with the selections the user made even though the returned values for those fields match the values of options in the selects. Also, when the form is returned...
I'm using JQuery to load controls dynamically in an ASP.NET development environment using JSON and WebServices. Within this solution I have a business logic layer which has a built in validation mechanism (i.e. validating properties and business rules similar to that of CSLA)
When requesting a new control to be loaded dynamically using ...
Hello there, first question here from me.
We have a users customization page which gives them the possibility to relocate different modules () into three different content blocks. There is two space content, and a four space content, then a pool of unused modules to use.
I'm using Sortables to be able to drag & drop these modules into ...
I tried putting this line but it doesn't work:
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
jQuery doesn't work in Greasemonkey at all. Is there other way to use jQuery in Greasemonkey?
--
For all the people who have the same problem, you must upload the file to greasespot then install it from there....
I have been looking at JSONPath and though it seems pretty well done, I wonder if anyone has worked with it and can comment on its usability, or can recommend alternatives? What would be really slick is if there was a plugin for JQuery that did something like this. I have been searching the plugins and coming up empty handed. Anyway, ...