jquery

Jquery and Web services: Can I pass more than one array in data attribute

in something like : $.ajax({ type: "POST", url: "WebService1.asmx/SendValues", data: jsonText, contentType: "application/json; charset=utf-8", dataType: "json", success: function() { alert("it worked"); }, failure: function() { alert("Uh oh"); } }); how do I send more than one array to...

Can you explain this jQuery method?

Trying to understand how jquery works under the covers, what's the difference between: jQuery.fn and jQuery.prototype jQuery = window.jQuery = window.$ = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' return new jQuery.fn.init( selector, context ); }, and then: jQuery....

jQuery fadeColor problems

Hi I'm new to JQuery. I have an two issues that I can't figure out. I'm using copy and past code as I'm on a tight deadline. 1) When I hover over a link it doesn't fade back to the original color once I move my mouse away from the link. 2) If I move my mouse rapidly over the links they get stuck in a loop and fade in and out over and o...

jQuery wrap selected text in a textarea

how can i get the user selected text(just inside textarea) and apply actions to it something like wrap the selection [#bold]selected text[/bold] , thanks ...

using jquery how to change a model when the user clicks a radio button

I have a form which contains rows like this one. I need to be able to call a method on a controller using ajax/jquery when the user clicks the radio button. The method would change the underlying model, on return it would show a message in the flash on the client. <tr> <td><%= radio_button_tag 'primary', feature_photo.id %></td> <t...

Weird issue; Button click, Jquery to consume ASMX

I'm having quite a frustrating problem that I'm sure is TRIVIAL. Whenever I move this jQuery post inside the click function it sometimes works, but most of the time does not. If I move it outside it works and posts and gives a response like it should everytime.. ::boggled:: Someone please enlighten me. $(document).ready(functi...

Why can't I authenticate to Google Finance via ClientLogin by jQuery AJAX?

I can't seem to authenticate by making a POST request via ajax! I always get an HTTP 400 error. What could be the issue? ...

jQuery - How to sequentially run an animation * only once * after animation on a group (e.g. siblings)

Here's my dilema. I have 2 animations that need to run sequentially. The first animation runs on a group of elements acquired through jQuery's siblings() function. The second animation runs on a single element. (The one upon which siblings() was called.) This needs to take place after the first animation has finished. If I don't use q...

how to bind and unbind third party jQuery library function?

I've create code to add table row with formfield, and try to bind the 3rd party suggestbox function the each dynamic generate formfield <script type="text/javascript"> $(document).ready(function() { $('#form1').validationEngine(); var newRowNum = 1; $(".addRow").click(function(){ var $newTr = $("#tb1 tbody>tr:last").clone(true); ...

jquery hover parent div

hi to all I have a problem with the hover, I have a parent div and a child div. The problem is if i hover the parent div then the link "delete" appear in child div, but when I point my mouse in link "delete" it was blink. Maybe because mouseover and mouseout still work even I'm on child div. thanks in advance Tirso <div onmouseover="...

Can't hook form submit event

I'm trying to use jQuery to submit a form so the page doesn't need to be reloaded I cant get it to hook onto the form though. <form action="index.php" method="get" id="frmFilter"> and $("#frmFilter").submit( function () { alert('t'); return false; }); It just won't work though; when I use the submit button on the form it su...

find all youtube links with js (jquery)

Hello, Say there is a div that has content and a youtube link. I want to grab that youtube link and embed it. <div id="content"><p>Here is a cool video. Check it out: http://www.youtube.com/watch?v=oHg5SJYRHA0&lt;/p&gt;&lt;/div&gt; I want to grab the link and replace it with the embed code with js (jquery). Update 1: This is my j...

jQuery Coda Slider Last Slide is missing in IE 5,6,7

I am working on a site with the current working copy held at: www.OnlineUticaCollege.com/david I'm not all that familiar with the code slider in jQuery tools, but I know how to program so it's rather easy to make sense of. I've searched through multiple posts on here and other sites to find a similar problem (and hopefully a solution) ...

ASP.NET Ajax Dispose pattern equivalent in jQuery?

ASP.NET Ajax, has a dispose pattern by having a IDisposable interface which let you free up the resources. How the freeing up of resources should be done in jQuery? Is there any similar pattern? How / when the dispose function is invoked by the ASP.NET Ajax library? Do we have to worry about memory leak if the page will be reloaded af...

jquery scroll help

I have created a tab system that I want to be able to be scrolled. I am trying to implement the scrolling feature now. The only problem that I am having is that it will keep scrolling if they keep clicking the button and dont wait for it to finish. So I am trying to implement a variable that stores whether it is scrolling or not. Here is...

How to use not() selector in jquery

Hi, Below is html <div class="radio_tab"><span>Ad View</span> <ul> <li>Ad View</li> <li>Page View</li> </ul> </div> My javascript is $("div").not('.radio_tab').click(function(){ alert('hi'); }); and also i tried $("div:not(.radio_tab)").click(function(){ alert('hi'); }); I am showing dropdown on cl...

problem with jquery's clone in IE and Chrome

I am trying to copy the masterdiv contents including child divs. Below is the code implementation. <label id="lblMessage" /> <table width="100%"> <tr> <td> <div id="colorSelector"> <div style="background-color: rgb(0, 0, 255);" /> </div> </td> </tr> <tr> <td> ...

add class to all links that link to a certain domain with js (jquery)

Hey, If I have a bunch of links like this: <a href="foo.com">blah</a> and this <a href="example.com">one</a> and here is another <a href="foo.com"></a>. How would I add a class to all the links that link to foo.com? ...

Exporting HTML Tables

How can I export an HTML table in my page as PDF and/or XLS? (preferably using JS (+jquery)) ...

Jump to anchor tag after clone

Hi all, I have these hyperlink which will jump to anchor tags in UL some where <a href="#A">A</a> <a href="#B">A</a> <a href="#C">A</a> <ul> <li><a name="A"></a></li> <li><a name="B"></a></li> <li><a name="C"></a></li> </ul> This is to make sure I jump to the right alphabetical letter in the list (which is long and will have scrolle...