jquery

jQuery looping my fadeIn/fadeOut

I've done some easy .hover(function() statement in jQuery. When i hover over a text i simply want a #div.fadeIn, and on non-hover fadeOut. It works. But it's just if i spam the text-trigger with hover and un-hoverring really quickly and then stop the animation begin to give a blinking effect. It just kind of loops, really annoying! ...

How to I convert html data in table to a input form?

Hello, I have a table that is passed via ajax and displayed. When the code is passed, it also passed all the javascript associated with the pass, as the code doesn't seem to work if I just put it in the page that it is being passed to. When I click a in the table that has been passed, I would like to take the data convert it to a inp...

Jquery conflict

Hello, I have a website based on a joomla template. I want to add the dock from ndesign-studio.com/blog/mac/css-dock-menu I've built a sample page for this. Here is the code : <script type="text/javascript" src="images/eklenecek/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="images/eklenecek/interface.js"></scrip...

Does the jQuery hoverIntent plugin work in Internet Explorer?

Is the hoverIntent plugin compatible with Internet Explorer? I'm having trouble plugging it into the following JavaScript: if (jQuery.browser.msie === true) { jQuery('#top_mailing') .bind("mouseenter",function(){ $("#top_mailing_hidden").stop().slideDown('slow'); }) .bind("mouseleave",function(){ $("#top_mailin...

Submit problems with jQuery validation plugin

Hey! Im having a master page form which i validate. I add code inside the asp:content tag (validation rules code). The validation is working correctly, the only problem i have is that when i click my "save" button i can see the validation errors come up (correctly) but the button still causes a postback and performs its server side code...

Iterating over element attributes with jQuery

I know individual attributes can be retrieved with the attr() method, but I'm trying to iterate over all of the attributes for an element. For context, I'm using jQuery on some XML... <items> <item id="id123" name="Fizz" value="Buzz" type="xyz"> <subitem name="foo"> <subitem name="bar"> </item> <item id="id456" name="Bizz...

Fancybox with images and youtube

How to set fancybox with multitype objects? I have this: $("a.fancybox").attr('rel', 'gallery').fancybox({ 'type' : 'swf' }); youtube works fine, but all images goes flash format. When i remove type, images works fine, but youtube dont load. I figured out this. If links are $("a[href$=.jpg],a[href$=.png],a[href$=.gif]") type...

Strange visibility behavior CSS and jQuery

I have a navigation bar that is fixed position top. Inside it is a mailing list signup field. When hovering over the containing div. jQuery slideDown is invoked revealing more input fields in the previously hidden DIV and then SlideUp is invoked when mousing out. The trouble is that everything behaves in Firefox, but in IE7 the bottom...

JQuery 101 - Changing text value

I have a link to hide/display some text: <a href="javascript:void(0);" id="toggle_status_history">show/hide history<a/> The corresponding JavaScript looks like this: $(document).ready(function() { $('#toggle_status_history').click(function() { if ($('#status_history').is(":hidden")) { $('#status_history').slideDown("fast"...

isFunction() always false in jQuery

so I'm using qtip for a super simple tool tip implementation. I'm not including qtip on every page, only the pages that needed, so I'm trying to check for qtip's existence before calling it. /* * Tool Tip * inits qtip on any link with class="tt" */ if( $.isFunction( $.qtip ) ){ $(".tt").qtip(); } I've no idea what this i...

jQuery Text in in hidden DIV showing as a blank string

I'm not sure why the following wouldn't be working. I am getting a blank string when I attempt to retrieve the text from the FirstName textbox in my HTML. The DIV is currently hidden, would that make any difference? Any ideas? jQuery: $.ajax({ url: 'go.aspx?FirstName=' + $("#FirstName").text()}); HTML: <input name="FirstName" ty...

Can jQuery listen to a click event on a youtube / vimeo movie?

I have a jQuery slider filled with movies and I would like jQuery to stop the slider on a click event for either the embed / object. I have tried to no avail to get this to work. I have tried this: $("embed").click(function() { alert('Handler for .click() called.'); }) $("object").click(function() { alert('Handler for .click() calle...

jquery help with if statement

I'm trying to scale images that have a width greater than 100. I'm using the code below, but it scales images that are even below 100px... What am I doing wrong? if($(".image-attach-body")) { if($(".image-attach-body a")) { $(".image-attach-body a").each(function() { var width = $("span span img").width(); ...

navigate a table in selenium

Suppose I have a simple table, like this: Smith | Select Jones | Select Johnson | Select And I need to write a Selenium test to select the link corresponding to Jones. I can make it click the "Select" in the 2nd row, but I would rather have it find where "Jones" is and click the corresponding "Select". I'm thinking I may n...

Sending a multi-level javascript object to the server with AJAX fails

I have a javascript object that looks somthing like this: var obj = { "name": "username", "userid": "9999", "object1": { "subObject1": { "subArray1": [], "subArray2": [] }, "subObject2": { "subArray3": [], "subArray4": [] } }, "object2"...

jquery CSS calc() function

i came across this page CSS LINK i could't help but love the idea of that to calculate the outcome of different units... however i tried this : $('selector').css({'width':'calc(100%-20px)'}); but it doesn't work... anyone has any ideas how this works , or why doesn't this work? ...

javascript jquery iterate simple XML

Hello i need to iterate xml items Sample xml <items> <name>234</name> <email></email> <phone></phone> <phone2></phone2> <phone7>33</phone7> </items> i tried lot of combinations but no success :( for example var xml=' <items><name>234</name> <email></email><phone></phone></items>' $(xml).find('items\').each(f...

jQuery ajax problem with div refresh and new content

I would like to refresh the #calendar div with the new content sent to calendar.php I'm getting a success alert, but the content isn't refreshing. How do I get the new calendar.php to show up with the POSTed data? $(document).ready(function(){ $('#next').click(function() { $.ajax({ type: "POST", url: "calendar.php", ...

Preselecting values in mulitselect with jQuery

I have a set of values that are present on the page loading: eg [1193,1184,2372]. I have a dropdownchecklist which can take a single value like so $(".ddl").dropdownchecklist().val(1193); When I rebind the dropdownchecklist this selects the value correctly. However I've tried passing my array containing multiple values to the val() met...

ASP.NET Web Method that accepts a List<CustomObject> is failing with "Web Service method name is not valid."

I want to create a web method that accepts a List of custom objects (passed in via jQuery/JSON). When I run the website locally everything seems to work. jQuery and ASP.NET and everyone is happy. But when I put it on one of our servers it blows up. jQuery gets a 500 error after the ajax request with the response being: System.In...