jquery

Using Jquery to display a modal "please wait" dialog box message

Hi, Is it possible to block a page when a user clicks on a link and only enable it once the response has come back from the server. I had a problem recently where a link was clicked on a page several times resulting in two simultaneous changes. The problem was that the page was allowing multiple submit. I have already resolved this ...

jQuery Template - Reverse Templating

Hello All, So i'm working on a document system with a templating feature built in. On one page you will create your template with 'tags' using the jQuery templating markup: ${RestaurantName} ${ContactName} Then on the documents page you would choose the template to use and then it would convert your tags into HTML markup. The docu...

Getting JSON data of JSTree, and it's metadata

Hi all, We're using jstree for a navigation menu editor, and have been assigning metadata to the nodes of the tree like this: var data = currentNode.data("jstree"); data.title = textBoxTitle.val(); data.linkType = textBoxLink.val(); I can see that the data object contains the relevant properties, but not too sure where jquery keeps t...

jQuery: tablesorter plugin, disabling sorting on some columns

Dear all, I'm trying to disable sorting of one column in my 3 col table. Following the docs I came up with this: $('table.sortable').tablesorter( {sortList: [[0,0], [0,0], [0,0]], textExtraction: myTextExtraction}, {headers: {0:{sorter:true}, 1:{sorter:true}, 2:{sorter:false}}} ); Official docs here ...

background switch page load

I've seen a lot of different background switching based upon link classes, however I just want a simple background switcher on any page load (no cookies) and not link dependent. is there a simple method for this? jquery? ...

Change <div> to <a>

I am a novice jQuery student and need a bit of help. Is it possible for Jquery to change a <div> to an <a> dynamically depending on what the class of the <div> is? I have searched and can't find any reference to doing something like this using .add(), .append() or .html() For example I want to change this: "<div class="item"><div clas...

call asmx via jquery gets wrong url

hi everyone 4 a few days now im trying 2 get an asmx webservice to work via jquery Heres my code <script type="text/javascript"> $(document).ready(function () { $("#btnTest").click(function () { $.ajax({ type: "POST", url: "/WebService.asmx/HelloWorld", cache: fal...

jquery: what does this mean?

function fkey(a) { a || (a = {}); if (!a.fkey) a.fkey = $("input[name='fkey']").attr("value"); return a } I guess a is actually a function, but how to understand (!a.fkey) ? ...

Show different arrow images for arrow up/down in jscrollpane

I need to show two different images for the arrow up and arrow down in a jscrollpane. In CSS I can set only one background for the arrows. How can I show two different images? ...

How do i call a php function inside the Jquery Code

I have a php function which get the Details when passed an number .So, i have a dynamic table where each row contains insert button which performs some action on the row record .Now Here i have to call php function getdetails and pass the data-number and get the details from the function and create an array insert in to session $(".b...

How to create thead and tbody in ASP.NET Table ?

How to create thead and tbody in ASP.NET Table ? I need those tags because of jquery and asp.net gives me only tr, th and td. ...

Calling javascript function with different parameters, depending on which page I'm on

Hey there! I'm trying to get to learn som javascript/jQuery stuff, and I'm really struggling with this one. It's basically a question of structure – how to do things in the best possible way. I've got this function that randomly picks out a list item from one of three unordered lists (where all list items have been hidden), and shows i...

jquery - Draggable image when image is larger than the container

Making an image draggable does some pretty wacky things when the image is larger than the container... Does anyone know a way around this? Here's my code... <script type='text/javascript' src="scripts/jquery-1.4.2.js"></script> <script type="text/javascript" src="scripts/jquery-ui.js"></script> <script type="text/javascript"> $(d...

MVCContrib grid - I need a better pagination control

Pagination with MVCContrib is easy, just follow the steps here; http://mvccontrib.codeplex.com/wikipage?title=Grid&amp;ProjectName=mvccontrib However the control render as "Showing 1 - 15 of 32 first | prev | next | last" This does not look very good. I would prefer a cleaner look with each page displayed as a link; "Pages: 1 2 3". ...

Finding an OPTION element in a SELECT element using jQuery

Using jQuery, what is the best way to determine if an OPTION element with a particular value or text value exists inside a SELECT element? I've seen all kinds of tips, blogs and howtos on how to find the selected item, but I want to find any item by value or by text value, regardless of whether or not it is selected. e.g. Given the mark...

File upload via hidden iFrame - form nesting problem

Hello, I assume this one is rather a JavaScript/jQuery/DOM question than a Rails question, but it's all due to the way I implemented it in Rails. I am trying to upload files while creating a new object (auction). While the user inputs some data, he shall also have the possibility to upload multiple photos. The main problem is, that th...

IE6 & 7 only - CSS/jQuery animation bug

Have been working non-stop for last 8 hours and so don't have enough energy to fix this IE6/7 only bug. Can some jQuery /CSS experts please help out? Access this url using any browser other than IE6/7: http://www.sumanasa.com/technews On the topmost right hand corner, a) click on the Quick guide link to show a quick guide and b) clic...

jQuery modal dialog button text

Based on the code below to show a JQuery dialog, the button text shows up as the literal "b" as opposed to the value of the variable b. Ie: showWarningDialog('myBody', 'myTitle', 'go') shows a dialog with a button labelled b instead of go. How can you get go to appear? function showWarningDialog(theBody, theTitle, buttonText) { ...

how to close parent window when colorbox is closed?

I'm loading colorbox on page load. parent.$.fn.colorbox({href: "#inline_example1", overlayClose:false, inline:true,width:'80%',height:'90%', onClosed:function(){} ,onLoad: function() { }}); I want to close the parent window when the colorbox is closed. Please tell me what should I write inside onClosed function. ...

Create more serious looking jQuery error dialog?

Is there a jQuery UI class you can use to create a more severe looking error dialog box than the one below? This is the HTML we use to create the dialog: <div style="display:none" id="div-dialog-warning"> <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span><div/></p> </div> And this is how we ...