jquery

Jquery problem in IE

when i am using mbScrollable.js file,my buttons are not working.when i click on button it is giving me error "State information is not valid". when i comment this all buttons are working fine. Is this the problem of mbScrollable.js file.i am using mbScrollable.js version: "1.5.7".It is giving problem in IE only.in mozilla it is working ...

Jquery counters & variables and square brackets

Hi, I am new to Jquery A form with this hidden field is loaded <input type = "hidden" class = "counter" value="6"> I use Jquery to do this var counter = $(".counter:last").val() then a click event adds a row with this text field .append($('<input>').attr('type', 'text').attr('name', 'drugName["+counter+"]') this returns <inpu...

guidelines to convert xml into json using jquery

hi all, I have found so many questions on converting xml to json and vice versa. I am trying to convert xml into json using jquery and javascript. Can somebody tell me some guidelines for converting xml into json? ...

Remove specific inline style with jquery

There's an asp menu I'm using that is auto inserting style="width:3px;" into my menu table tds creating a nasty gab in between my tabs. I'm testing to remove this inline style with jquery instead of our developer customizing the menu just for this cosmetic blemish. below is a simple example: <table border="1" cellspacing="0" cellpaddin...

Emulation "writing-mode: tb-rl" using jQuery

Hello, I'd like to align text vertically, but some browsers (WebKit: Safari, Chome) fill svg object white background, if it is over the image. I think this can be done using jQuery without any SVG and so on. full example: here <style type="text/css""> .block { cursor: default; float: left; overflow: hidden; width: 1...

Jquery timepickr C#

Hello. I try to use timepickr plugin, from http://haineault.com/media/jquery/ui-timepickr/page/ my headers: <script src="<%=ResolveUrl("~/Scripts/jquery-1.4.2.min.js")%>" type="text/javascript"></script> <script src="<%=ResolveUrl("~/Scripts/jquery-ui-1.8.2.custom.min.js")%>" type="text/javascript"></script> <script src="<%=Resolve...

recursively loop over javascript object?

Hi there. I am trying to create a function which, When given an object will output something like <div> reason : ok status : 0 AiStatistics : null CurrentSeasonArenaStatistics : null <div> Player <div> CampaignProgressCoop : CompletedLegendary CampaignProgressSp : PartialHeroic <div> ReachEmblem <div> ba...

jQuery slider/carousel with interval countdown animation

Hi, I'm working on a jquery slider/carousel to rotate between a couple of promotions. What I'm looking for is a way to show the remaining time until the next promotion slides in. Exactly as the flash promo at: http://www.nordicbet.com Any ideas? ...

JQuery/JavaScript : refactoring nested functions

I have this interesting jQuery function. It basically adds a click handler to link, and when that is clicked, it will load a form to allow the user to edit the content. and the form is submitted by AJAX, and will display a success message when it's done. The outline is below; needless to say, this is messy. I could have each of the cal...

Jquery remove,add and find query

In the following code,after removing the checkboxes and adding it again.The alert always becomes true for "could not find checkboxes" <div id="r_n"> <div name="r_t"><input type="checkbox" name="r_name" />Name</div> <div name="r_t"><input type="checkbox" name="r_name" />Address</div> <div name="r_t"><input type="checkbox" ...

Jquery : delay fadeOut & clearQueue dosn't work ?

Hello, I don't understand why this code doesn't work : function Messages(type,text) { console.log("In function Message"); $("#message").clearQueue(); console.log("clearQueue :"+$("#message").queue("fx").length+" effet in queue"); if($("#message").length > 0 && $("#message").not(":visible").length == 1) { $("#...

Table border fade in and out

I have a table and I'd like to fade in and out the top and bottom borders of the table. Initially I just used css' hover feature, but I'd prefer jquery's more fancy fading. I know how to fade objects in general in and out, but haven't found any solutions for borders only. ...

javascript append appearing twice

Here's my problem I have this javascript if (exchRate != "") { function roundthecon() { var value = Math.round(exchRate*Math.pow(10,2)) / Math.pow(10,2); $('.tablenotes > p > strong ').append(value); } function addCommas(nStr) { nStr += ''; x = nStr.split('.'); x1 = x[0]; x2 = x.length > 1 ? '.' + x[1] : ''; var rgx = /(\d+)(\d{3})/; ...

Consuming a Microsoft Web Service with jQuery

Hi evertbody, I'm trying to consume a WCF webservice using jQuery. The returned Json data is: { "ListOfPersons": "[ {'Id':1,'FirstName':'Foo','LastName':'Bar'}, {'Id':2,'FirstName':'Hello','LastName':'World'}, {'Id':3,'FirstName':'Tanks','LastName':'Giving'}, ]" } These are the ...

Is it possible to have a change-event on a javascript-variable?

I declare a variable which gets it's value through another event out of a select-box. Since there are different events which change the variable (lets name it z), I want to get informed when the variable gets changed. So my question is: What is the best way to get informed when a variable gets changed? z.change(function(){}); throws an ...

jquery / javascript not picking up value on click

I need to dynamically alter a variable with the "name" attribute from a link - code below... <input type="text" class="datepicker" id="dp1"> <a href="javascript:;" class="tab" name="1,2">test button</a> and $(document).ready(function(){ var pickable = { dp1: [4,5,6] }; $(".tab").click(function () { v...

jQuery: Data on dynamic div's

In jQuery, I'm creating several div elements within a class: function class([..]) { this.par1 = par1 [..] // Create div $div = $('<div></div>') $div.attr({ 'id': 'someid' + this.par1, [..] }) // Assign data to $div $div.data['par1'] = this.par1 $div.data['this'] = this // Append to document $('#container...

How can I make jQuery Beauty Tip stay open, even when i click elsewhere?

I'm trying to use jQuery Beauty Tip as a "context menu". I want to open the beauty tip manually, and close it manually. I use the trigger: 'none' option: $('#example15').bt({ trigger: 'none', contentSelector: "$('#example-15-content')", width: 400 }); But when I click outside the Beauty Tip, it hides. How can I stop it from hi...

how to return false for function from each() method

I want to return false and return from function if I find first blank textbox function validate(){ $('input[type=text]').each(function(){ if($(this).val() == "") return false; }); } and above code is not working for me :( can anybody help? ...

Iframe onload when downloading file

Hi there! I've been pulling my hair out for hours trying to figure this out. I have an iframe with which I want to download a file. It all works fine, but the iframe onload is not called if my Response.ContentType = "APPLICATION/OCTET-STREAM"; My javascript function is as follows: function DownloadStuff(){ var DownloadSource = "http:/...