jquery

How to get round corner textbox using jquery without images

I try to get round corners for textbox. But how can i get it. Here is the class .tbox { float:left; width:200px; margin-top:10px; margin-left:10px; } when i call using jquery using $('.tbox').corners("4px"); it is not working. I already included Jquery.js and jquery.corners.js. But its not working. Any help would be appreciate...

Can someone provide a tabbed view plugin for jQuery?

Should be light in size and have an acceptable UI. ...

on hover thumbnails play

hi i have several videos on my server and three thumbnails for every video what i want is if i put mouse on the video it shows(play) all the thumbnails of that video thanks ...

How to apply css class to an html element using jquery in ASP .NET MVC?

Hi, Im trying to implement a tab menu just like the one in stackoverflow. I created html list and style them to look like tab menus using CSS. I put the html list on the master page. Now the problem is that How do you change the color of the list once it's clicked by the user? For example, If you click the stackoverflow "Users" tab menu...

Jquery.Live events for onadd to dom elements

What if I want not only to add events for all future added, but also want to put some data in them, execute it as an init event for them. Is there possible to use something from live tools? ...

How do you get a javascript function to only be running one instance at any one point?

I have some code that I'd like to run on a page. My problem is that I don't want it to be run more than once at any one point. It can run multiple times, but just not while another instance of itself is running. I'm using jQuery and loading ajax content. I just need something that prevents users from clicking hundereds of times and buil...

jQuery - Calling a function inline

I am trying to pass one variable to a jQuery function inline (ie: using an onMouseOver="function();" within the actual link (which is an area tag from an image map)). The function is only being called if I place it before the $(document).ready(function(){ line, but doing this is causing all sorts of problems with jQuery. All I want is ...

fetch stock quotes from google finance, yahoo finance or the exchange itself

hello all, I am building a web based trading system where buy and sell signals would be generated by reading quotes from either Yahoo finance, google finance or the exchange(NSE of India) itself.My first preference would be to fetch data from this url: http://www.nseindia.com/content/equities/niftywatch.htm the page on the site uses ...

How can I separate javascript from PHP when the JS needs a PHP variable?

Below is a small snippet from a code I saw with jquery and PHP. Notice the PHP part on line 5, I generally put my javascript into separate files so how would I be able to keep my JS in separate files but still use PHP when needed like below? //when the DOM is ready $(document).ready(function(){ //settings on top var domai...

How does codeandtheory's live search work?

I've been trying to figure out how the "live search" function at http://www.codeandtheory.com/#/work/ works. I've looked at in firebug, and have looked at a bunch of AJAX search tutorials but codeandtehory's seems to work a lot "smoother". Any ideas? ...

Blind with jQuery

I'm trying to write a blind function that would close a DIV in a display:none mode. The unseen DIV is inside a wider DIV, containing the blind trigger. This: $(document).ready(function(){ $("#toggle_blind").click(function () { $(this).toggle("fast"); }); }); Well, this blinds the button. How can I add a DIV to $this? Som...

How do I insert a lot of html into a page with jquery?

I am working on a comment script using PHP and jquery. My jquery post data to my php backend script, on success I need it to insert the results that the backend script sends back. Right now I have everything working except the part that adds the comment to the page I am stuck. I can use something like this; $('#comments').prepend(d...

return focus to contenteditable after execCommand?

Hi all, I have the following code demonstrating contenteditable property and a button that will inject bold text into the paragraph with contenteditable area. My question is how to return focus to where i left off after clicking on bold, if you highlight some text, and click bold, it'll bold those text, but the focus will not be there a...

jQuery/jqGrid: populate select boxes with multiple values

Hello! I'm setting up a jqGrid which needs to visualize multiple values in one cell. The input comes from a form where the user can select multiple choices. I am able to display the select box, but not populate it. I have tried to insert an array in the JSON object, but to no success. This is the model: index:'ship', editoptions:{mult...

Adding action to a delete event in jQuery

How can you add the class red to the class question_body when the question is removed? JS in HEAD jQuery('a.delete_question').live('click', function(){ jQuery.post('/codes/handlers/delete_a_question.php', { question_id: jQuery(this).attr('rel') }, function(){ $(.question_body).addClass("red"); /...

Advanced JQuery Validation: Avoiding Validations on Certain Conditions

I'm making a form that I'm using the amazing JQuery validation plugin for (http://docs.jquery.com/Plugins/Validation/). This form allows people to make donations and to specify if they will be paying by cheque or credit card. I use radio buttons to show either the credit card asp panel, or the cheque asp panel. My rules and messages...

Same JS function -- Many times?

I previously got this (useful!) answer about using .next() for same DIV blind effect. However, I can't seem to get this simple function to work for more than one DIV at the same time: $(document).ready(function(){ $("#closeButton").click(function (){ $(this).next().toggle("fast"); }); }); Any ideas? Thanks. ...

How can I insert this block of html into a page from a json response with jquery?

<script type="text/javascript"> var dataString2 = 'run=captchagood&comment=' + comment; $.ajax({ type: "POST", url: "process.php", data: dataString2, dataType: "json", error: 'error', success: function (data) { if (data.response === 'captchasuccess') { $('div#loader').find('img.load-gif').remo...

jquery each function and queue

i have an array: arr = ['a', 'b', 'c', ... ] i want it to be: <div> <ul> <li>a <li>b <li>c ... </ul> </div> so i'm trying: $('div').append('<ul>'); $.each(arr, function () { $('div').append('<li>' + this); }); $('div').append('</ul>'); but doesn't seem working... how can i queue this? ...

jQuery ajax load() java script not executing?!

Hey guys, I've read several posts about this issue but i can't solve it. I am loading an html file into a div. The file i am loading contains a unordered list. This list should be expanded (a menu with submenu items) and closed. Therefore i need js. But unfortunately this script isn't loaded. Can anyone help me? Would be so great! Th...