jquery

What is Jquery's alternative to Mootools MochaUI?

MochaUI is very intuitive and the modal iframes almost perfectly replicate Windows. Unfortunately, I have scripts written in Jquery that I use, and I hear there are conflicts when putting both Mootools and Jquery on one html file (is this true?). How can I get the MochaUI features in Jquery? At the very least, is there a similar modal ...

jquery link tag enable disable

I want to disable the link during onloading, for the code given below <span id="addlink">"<%= f.add_associated_link('Add Task', @project.tasks.build, :class=>"add") %></span> please,suggest some answers if you have i tried with the below samples but not working $("#addlink").attr("disabled", "disabled"); and $("a.add").hide(); ...

adding content to a generated tab in JQuery

Hello, I added this to my already existing JQuery tab: function createTab(name) { // this will add a tab via the standard method $("#tabs").tabs("add", "#fragment-4", name); $("#fragment-" + name).css("display", "block"); } my question is, what is the syntax that allows me to create content inside the newly created tab? ...

jQuery dynamic event binding

I think this is a pretty basic question, but I'm struggling with this problem. On my form I have an option to dynamically add a new row to the table, which is simple enough to do with jQuery. On one of the elements, I need to bind an event, also relatively straightforward. The part I'm having problems with is the event that needs to be ...

jquery plugin custom methods

Hi I am trying to build my first jquery plugin, it basically creates a button from div with mouse over/click states etc, the following code works for the basic button, however I want to create a highlight method to assign a class to replace the 'normal' class. The method gets called however I cant seem to read the options? Also if I assi...

ASP.NET MVC with jQuery : catch exception + display error message

Hello, I have this code : $(document).ready(function() { $('.DOFFDelete').click(function() { var id = $(this).attr("id"); $.post("/Customer/DayOffDelete", { customerid: getCustomerId(), doffId: id }, function(data) { $("#myFormDOFF").html(data); }); }); }); In the Controller, I have th...

How to stop jQuery from matching multiple elements

I am trying to create a rollover effect with jQUery. I have similar things, however because I am trying to do a mouseover with a an object that has a link in it I am having problems. I have a level-2 nav bar. The placeholder's are table cells (bad I know - but it's already done this way). I want to change the background from white (#FFF...

ASP.NET MVC routing with jqGrid

I am trying to create a link to an url such as home/details/1 in a jqGrid column. The documentation shows : showlink {baseLinkUrl: '', showAction: 'show', addParam:'&key=2'} Note: the addParam should contain &. For example: formatter: ’showlink’, formatoptions: {baseLinkUrl: ’someurl.php’, addParam: ‘&action=edit’} This will output:...

Changing Slider handle image

Hi Guys, I wanted to customize the JQueryUI slider but am not able to find any way to change the slider handle images. The JQuery Themeroller also does not seem to allow the change of handle images. Does somebody know how to do this? ...

jQuery hover : fading in a hidden div while fading out the "default" one

Hello guys, I have two divs (one of them hidden with CSS), which I'm fading in and out in alternance inside a common space, on hover. This is the markup : <div id="wrap"> <div class="image"> <img src="http://domain.com/images/image.png"&gt; </div> <div class="text hide"> <p>Text text text</p> </div> </div>...

jQuery toggle() not working in FF3.0.12

Hi All, I have a jquery code(toggel) which is working fine in IE6 but not in FF3. what can be the reason or workaround. <button>Toggle Me</button> <p>Hi</p> <p>Learning JQuery</p> Jquery: $(function() { $("button").click(function() { $("p").toggle("slow") }); }); CSS: p { background:#dad; ...

Pass in jQuery/plainJS variables/functions of a current scope to anonymous function called from current scope

How to pass current scope variables and functions to the anonymous function in plain Javascript or in jQuery (if it's specific for frameworks). For example: jQuery.extend({ someFunction: function(onSomeEvent) { var variable = 'some text' onSomeEvent.apply(this); // how to pass current scope variables/functions to this functi...

jQuery - Supersleight & filter through background-image properties

Hi I want to apply Supersleight to my transparent png images on my site, so far I only apply it to images with a PNG image in the src attribute. Now I want to filter through all elements with a background-image property which contains '.png'. Can someone please suggest a query? Thanks in advance. ...

Running jquery script block with a MVC PartialView

So I'm loading a partialview using an ajax actionlink, but need to embed some jquery as part of the partialview that returns. What i'm strugling with is how to fire the script once its finished loading. ...

Jquery: Adding a class to even an odd List-Elements

I have the following jquery-code: <script type="text/javascript"> $(document).ready(function() { $ ('ul.image-list li:even').addClass ('even'); $ ('ul.image-list li:odd').addClass ('odd'); }); </script> and the following html: <ul class="image-list"> <li>first element</li> <li>second element</li> ... <li>last ...

jQuery, string manipulation : find a tag

After a post with "$.ajax()", I sometimes receive an exception from the server. You can see a part of the returned HTML below: <html> <head> <title>MyMessage</title> <style> /* ... */ </style> </head> <body bgcolor="white"> <span> <H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> <h2> <i...

problem with mouse event for absolute position div

Hi, I have list of images on mouseover on those have to show some information. Problem is mouse events are not trigger for the info div. #team_div{ display:block; position:relative; } #pop_div{ width:300px; padding:5px; height:200px; overflow:hidden; border:2px solid #ccc; background:#fefefe; position:absolute; dis...

Jquery, XML and Google Map

Hi, I'm integrating a Google Map in my website that user could add some thumbnails and details of their own house. Here's a code preview of what I want to happen. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; Jquery and Google Map // ...

JQuery, XmlHttpRequest and Status Code 0

Hi All, I've recently been doing some Cross-domain javascript using JSONP, and ASP.NET MVC. The particular Controller action will only respond to a POST request, this is by design. In IE8, I can see (via Fiddler2) that the response is correct, and returning a HTTP 200 response, along with the JSONP javascript. In Firefox, Safari and ...

Using jqGrid on IIS7

I have jqGrid running fine locally in VS 2008 in a ASP.NET MVC project. When I upload the project to the server (W2008, IIS7) I get an error in IE 8, Object doesn't support this property or method on the call to jqGrid. In Firebug - jqGrid is not a function. All other JQuery plugins works fine (before and after the upload). Any ideas wh...