I have the following ASP.NET markup:
<div id="myForm" title="My Form" style="display: none">
<span>You can see me!</span>
<div style="display: none">
<asp:Button ID="btnSave" runat="server" Text="Button"
OnClick="btnSave_Click" />
</div>
</div>
<!-- called by an element click event elsewhere -->
<script ...
I have a jqgrid whose html is displayed in the following way.
I build this myTable as a jqgrid using some custom javascript. This was working fine for a long time.
I made a change to collapse(in simple terms to hide) the div "tableSectionDiv" when the grid does not have any records.
In order to do this, on the grid complete eve...
Hi all,
<script type="text/javascript">
$(document).ready(function() {
alert("Hello jQuery.");
});
</script>
This works the first time I request /Home/Index, but if I navigate to eg /Account/Login then back to /Home/Index it doesn't work. Doing the same thing using a webforms project works everytime. What...
We are trying to extend CKEditor via a "Comments" plugin, so that our content team can collaborate on writing content. Essentially, users can add comments to sections of selected markup (in the WYSIWYG editor) which manifest in the form of spans which enclose the markup selection. The comment is stored in the title attribute and displa...
In an effort to keep code down I was hoping to use regular expressions with jQuery to switch the on and off states inside a hover for an image.
jQuery:
$(function(){
$("ul.dropdown li").hover(function(){
$(this).addClass("hover");
$('ul:first',this).css('visibility', 'visible');
}, function(){
$(this).removeClass("hove...
I thought I had this worked out, but unfortunately it does not work in FF or Chrome. I have a list of images that I would like displayed as a slideshow with carousel on my page. When the user clicks on the larger image I would like it to open a full size image in a lightbox. Here is the code that works in IE:
<script src="Scripts/jqu...
Does JQuery AJAX have a different User Session than a postback to the same website?
I am trying to send data to a MVC2 Controller through a Jquery Ajax POST with a querystring on it and then this MVC2 Controller will take the data from querystring and place it into the User's Session. Successfully while debugging I see that the Control...
Is it possible to alter css class with jQuery? For instance if i have this class defined:
.my-class{
right:10px;
}
and now I want to change it to
.my-class{
right:20px;
}
without having to select all the elements of this class with $(".myClass"). The reason i want to do this is that i am adding a lot of elements at r...
I want to create a div tag that has an icon to the left, and some text.
Now using jquery, if an event occurrs, I am adding a class to this div tag so that the icon is replaced with another icon.
I have the jquery side of things, but I'm not sure how to do this via CSS.
my css:
<div id="tag-user" class="usertag selected">Some tag</div...
Hi,
I tried to implement an autocomplete field using jquery:
$('.autoComplete').autocomplete({
source: function (request, response) {
$.ajax({
url: "keywords", type: "GET", dataType: "json",
data: { term: request.term, maxResults: 10 },
sucess:...
$.get("/student/Studentnumber.php", $("myform").serialize(),
function(data){
alert(data);
if(data.substring(0,7) == 'STDERR'){
//$("#MYSPAN").text(data.substring(8));
} else {
//$("#MYSPAN").text(data);
}
}
);
In the Above Script I have The PHP response com...
I have a project that is using both jQuery 1.3.2 and YUI 2.6, and it has come time to pick one or the other. I have a lot of developers that love jQuery and can't live without it, but I think some of the features of YUI 3 are a better fit for the project (e.g. the base widget).
I was trying to find a mapping of functionality between jQ...
I downloaded the script from emposha.com/javascript/fcbklistselection-like-facebook-friends-selector.html and made a few modifications, as the source wasn't working as required (When submitting the form, all of the values were being sent to the php handler, not just the checked ones).
My working example is in this Demo.
My issue is...
Hello,
I have been struggling with getting this work on Firefox. Hope there is somebody help me!
Basically; Firefox ignores the button click function and it's sub functions and the button posts the page instead of running the jquery code.
It works on IE and Chrome but not on Firefox.
Thank you for your help in advance.
Here is the ou...
Basically I am showing and hiding the Dialog manually via positioning so something like 'swfupload' works (dont ask hehe, the multi-upload flash control i use cannot be hidden or Flash does something funky... so I am using positioning to show/hide the Dialog).
So i set autoOpen: to true so when the page loads its not prehidden... and I ...
In jQuery, it is easy to select elements as array.
$("a"); // return as elements array of anchors
But is it possible to select matched elements' attributes as array?
Currently I need to do something like...
links = [ ];
$("a").each(function() {
href = $(this).attr("href");
links.push(href);
});
Are there any b...
$j('body').append("\
<style type='text/css'>\
.floatymessoge {\
webkit give me the error on the first line with the append to body.
how do I fix it?
I may or may not have the css jqueried into my file later... but the I'd like to be able to format what I'm appending to the document.
Full thing:
function f...
Hello everyone.
I just modified some functions such as extended drag and modify them to save a timestamp (start and end) into a hidden input (I send those information to MySQL). But one of the conditions is that event that I dragged can't exist with another event in one day. Is there any method in fullcallendar that can tell me if that ...
Hi,
Looking for a simple example of how beautytips can be used( HTML + CSS included)?
My requirement is this - I am displaying product names.On hovering of product name,I want to display products image in the tooltip.How can I do this?
thanks
...
Hello there!
js:
var paramStr = $('#id1').val() + '|' + $('#id2').val() + '|' + $('#id3').val();
paramStr = '{"searchCriteria": "' + paramStr + '"}';
$.ajax({
type: "POST",
url: "/MyService.asmx/MyWebMethod",
data: paramStr,
contentType: "application/json; charset=utf-8",
dataType: "json",
...