jquery

Jquery tabs next button

How can I create a button that will scroll to the next Jquery tab. I want to have a next button within the tabs that will scroll to the next tab, sort of like a step-by-step tutorial. How can this be done: <script> $(document).ready(function() { $("#tabs").tabs(); }); </script> <div id="tabs"> <u...

dynamic link_to_remote in rails with jquery

Hi I'm trying to pass a string with a link_to_remote call as the :id, and the string should be collected from an input field with and id of "movie_title". <div id="search_list">Nothing here yet</div> <br /> <% semantic_form_for @movie do |f| %> <% f.inputs do -%> <%= f.input :title, :class => "movie_title" %> <%= link_to_r...

jQuery Tools - make tabs collapsible

I'm using a basic integration of jQuery Tools "tabs" function and it's working perfectly for me, but the one thing it seems to lack over jQueryUI is that there's no way I can find to make the tabs collapsible. By that I mean all you need to add is collapsible:true to the jQueryUI tabs function. Does anyone know of a way I could appen...

Remove all child nodes from a parent?

Hi, I have a list, I just want to remove all child nodes from it. What's the most efficient way using jquery? This is what I have: <ul id='foo'> <li>a</li> <li>b</li> </ul> var thelist = document.getElementById("foo"); while (thelist.hasChildNodes()){ thelist.removeChild(thelist.lastChild); } is there a shortcut rather th...

Getting all the style properties using JQuery. Basically I want an equivalent of getComputedStyle() and I dont want to handle cross-browser stuff.

Hi everyone, I would like to get the currentStyle/computedStyle object and I dont want to manually check for the type of browser. (I wanted to get rid of cross-browser handling that is why I came to Jquery). Actually I want the style object returning all the style-property: value map. Please help. ...

I want to get the value of an id from a nested div - jquery

Hello I want to obtain the .text() of #inner2 <div class="outer" id="outer"> <div id="inner1" class="inner">test1</div> <div id="inner2" class="inner">test2</div> <div id="inner3" class="inner">test3</div> </div> This is the jquery function I am using $('.outer').bind('click',function() { var one = $('#inner'+x).attr('id'); ale...

change checkbox border color.

can i change border color of checkbox by use css or jquery. i want change only border color of check box. ...

jQuery noob: transfer not transferring..

I made an example, I copied it straight from the jQuery website yet, it doesn't transfer.. HTML: <div class="addToCart"> BLAHHHH </div> <br> <br> <br> <br> <div class="handelv"> MORE BLAAAHH </div>​ jQuery: $(document).ready(function() { $(".addToCart").click(function () { var ...

What things should I be aware of before moving to extJs as an asp.Net developer?

Hi, In the development environment where I code, there is a recent discussion on using extJs JavaScript framework in one of our upcoming project. My question is: As an asp.NET developer who is more or less familiar with JavaScript and jQuery, what critical points should I be aware of to not to be surprised or upset in the middle of my...

Putting Javascript source, then immediately the page not working

Hi there, When I put the following code on my page. <script type="text/javascript" src="../../Scripts/jquery-1.4.1.js" /> Then anything below will became nothing, can anyone tell me why? Thanks alot. Sorry, I am very new in web development. Thanks ...

How do I put my return data from an asmx into JSON?

I want to return an array of javascript objects from my asp.net asmx file. ie. variable = [ { *value1*: 'value1', *value2*: 'value2', ..., }, { . . } ]; I seem have been having trouble reaching this. I'd put this into code but I've been hacking away at it so much it'd probably do more ha...

Has flashLightBoxInjector been ported from Prototype to jQuery?

Hi guys, Has anyone come across a port of the flashLightBoxInjector code from Bramus? Currently it's in Prototype, but I really need to get it working with jQuery as the whole site I'm working in is running on this - not an option to use noConflict(). I'm ok with jQuery, but certainly no guru, can anyone help? The purpose of the code i...

find() or children() to search top-level children only for a style?

Hi, I'd like to find if a child element exists which has either of two class styles applied. My code looks like this: var listOfMatchedResults = $("#parentList").find(".myStyle1, .myStyle2"); My styles are defined like this: .parent li, .myStyle0 { } .parent li.myStyle1 { } .parent li.myStyle2 { } I don't need to traverse more t...

Save a tab in a jQuery Modal Window for future Display

Hello, long time reader, first time poster. I’m coming with an issue that many of you will find trivial but I’m bashing my head against it for too long time and I can’t seems to find any clue on the internet. As a total scrubs with JavaScript, I’m trying to use JQuery.ui smartmodal windows (v 1.8.rc1) for displaying two football teams ...

Triggering jquery event when an element appears on screen

I want to show a fade effect as soon as the element appears on screen. There is a lot of content before this element so if I trigger the efect on document.ready, at certain resolutions the vistors wont´t see it. Is it possible to trigger an event when, after scrolling down, the element becomes visible? I am almost sure I have seen this ...

jQuery AJAX Web service works only locally

Hi, I have a simple ASP.NET Web Service [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.Web.Script.Services.ScriptService] public class Service : System.Web.Services.WebService { public Service () { } [WebMethod] public string SetName(string name) {...

Partial view postback from a standard Html form with MVC

I have a file upload button on my MVC view. After the file is uploaded, my FileList partial view on the page should refresh. I tried to upload with Ajax.BeginForm(), but have discovered that Ajax will not submit file data. I've got the file upload working now by using the jQuery Form plugin, which lets you ajaxify the normal Html.Begi...

navigation with jquery

Can you do this, like you can with MooTools http://ryanflorence.com/slideshow/#navigation-demo in jQuery? So you can navigate like that and use left/right keys? ...

jQuery youtube dimming effect

On some pages youtube uses "Turn off the lights" feature. The same can be done in jQuery. Example The example dims the entire page background but the video player remains on the top. Why is it so? And what is the simplest way to dim all divs except the video one explicitly? ...

JQuery Media plugin (Malsup) doesn't work with querystring arguments

I'm using Malsup's JQuery media plugin to try to launch a file with the following format: /StreamBinary.ashx?FileId=9&Type=2 This results in a dead (and invisible) player...I have noticed that the output of the player URL encodes the file attribute...that may be the problem. When I url-decode the result and paste it into the address b...