jquery

jQuery and LinkButtons, or Regular Buttons and CSS

I've got a small login control on my master page. On the login control, I'm using a LinkButton for the Submit button because I like the way it looks. However, I'm also using jQuery to capture when the 'enter' key is pressed in any of the login control text boxes. It's difficult to trigger the click event of a link button with jQuery in ...

How to remove a div if it contains a certain string in it?

Hi there, there's a list of items on a page, some blank, with one example being: <div class="item itemask"> <div class="tophead"> <div class="itemnumber">30</div> <a class="article" href=""></a> </div> <div class="bottomhead"> points by <a class="userlink" rel=""></a> ago&nbsp;&nbsp;&nbsp; <a href="/item?id=">discuss</a> ...

Passing multiple checkbox values to action with Jquery

I have a bit of a problem that's been driving me batty. I have a page which generates a list of checkboxes based on a search. Also within the page is a dialog box designed to show up when a button is pressed. What I'm trying to do is get values from the checkboxes and pass them to a controller action which then returns the partial for t...

calling user defined function with params

hi I am defining function func1(); I want it to take some param(s) ie var func1(aaa, bbb){ //do something, anything! }; then i want to call it later in the doc something like this: $('#some_id').click(func1($this)); but its not working. I've been messing with it for a while but its very strange the way jquery/javascript handles u...

Problem when using Javascript to redirect user on form submit

Hi, I have a webpage on which I have a form. This form contains a button and a textbox. When the button is clicked or when the form is submitted I would like to take the text from the text box and append it to a url. The code looks like this: <form name="askaquestion" id="ask-a-question" onSubmit="window.location.href='http...

Mustache.js - accepts inputs as vars, but not as ajax gets: How to import or troubleshoot

Using this as the example: http://mustache.github.com/#demo, the template and json can functionally be moved to a var: template = '<h1>{{header}}</h1>{{#items}}{{#first}}<li><strong>{{name}}</strong></li> {{/first}}{{#link}} <li><a href="{{url}}">{{name}}</a></li> {{/link}}{{/items}}{{#empty}} <p>The list is empty.</p>{{/empty}}'; Thi...

jQuery.proxy() usage

I was reading the api about jQuery.proxy(). It looks promising but I was wondering in what situation is this best use. Can anyone enlighten me? Thanks. ...

What issues cannot be solved by jQuery as compared to JavaScript ?

Possible Duplicate: Is jQuery always the answer? Now-a-days everyone is talking only about jQuery at my work place, there are some Sr. Developer who work mostly with JavaScript and they have their rights reserved for jQuery. I am kind of little confused between jQuery vs JavaScript What are the programming challenges which ca...

jQuery submit handler for form with single input field doesn't trigger on IE

I have a form with an input element but no submit button. I use jQuery to attach an onsubmit handler: $('#tickerbox-form').submit(function (ev) { alert('submit'); // I have other code that actually does something... return false; }); I want the (anonymous function) handler to be invoked when the Enter button is pressed in the ...

Getting the left property of an LI element in jQuery?

I have a dynamic list of LI's inside of a UL. I am trying to somehow be able to 'track' the last LI of the UL which has a class of Last. I thought if I could test for the left property of the actual LI against some number, say -500, then I could do what I need to do. The issue is I can't seem to get that property. Is this even possib...

Adding jQuery modal dialog in an accordion

Hi folks, I have just started using jQuery in the past couple of weeks and am really enjoying it - damn fantastic thing! I have one problem at the moment though. Here's the basic structure of my page: <body> <div id="accordionContainer"> <div class="accordionSectionHeader"> Some header label... </div> <div class="ac...

Galleria Jquery Transition Effects

Hey guys, So I am using galleria to show a slide show. I have it set to autoplay, so it shows a new picture every 3 seconds. Currently, the transition seems to be the picture sliding in from the right. Is there a way I can have it fade in? Pretty much any transition other then the sliding. Thanks! Kevin ...

How to check which one is checked or not using jquery

I have two radio button in my view.. something like this.. <input type="radio" name="ObnCategory" id="Obncategory" checked="checked" />X</div><br /> <div> <input type="radio" name="ObnCategory" id="Obnsubcategory" />Y</div><br /> I need to see which one is checked or not using jquery? thanks ...

Debugging jquery exception with Firebug

I am receiving a javascript error whose source line is in the jquery javascript library: uncaught exception: Syntax error, unrecognized expression: # I know what this error is: it usually happens if you try something like: $('#'); However, I am struggling to debug it. It should be straightforward if I could just get a stack-trace. B...

Any way to override .blur() if .submit() is called upon in jQuery?

I'm writing up custom code for a CMS for a website. When a user clicks on the submit button (created with jQuery UI), it calls the click event on the button, which in turn calls a submit event, which submits the form. Said form also checks specific fields to see if they have text, and will show error messages and deactivate the submit b...

javascript jquery show/hide of columns

<table id='mytab'> <tr> <td colspan="6">OS</td> </tr> <tr> <td></td> <td>Fedora</td> <td>Cent Os</td> <td>Ubuntu</td> <td>Suse</td> <td>Redhat</td> </tr> <tr> <td colspan="6">Versions</td> </tr> <tr> <td></td> <td>6</td> <t...

swfupload - multiple instances and setting dynamic data with setPostParam

I am using swfupload, and have a bunch of 'Attach File' links and each one of them opens up the same Jquery Dialog which is associated with 1 swfupload instance. I tried to set custom post params but it fails: www.arianhojat.com/temp/code/swfupload/index.html if you remove the 'setPostParam' line its fine but id like to set params... It...

How To Breadcrumb Menus

Hi, Hoping someone can assist with how to incorporate a breadcrumb menu into my website. I basically have a sidebar menu with submenus, which I also want to setup as a breadcrumb menu. Would appreciate some help on how to achieve this. Any "how to" urls would be great. Thanks. ...

jQuery Grab Value of Dynamic Textarea

Suppose you have a textarea (id="fred") that appends (.append()) or replaces (.html()) another element. The textarea's submit button is called via delegate to send the modified text blurb in the textarea... How do you select the modified textblurb, as opposed to what was originally put in the textarea via the first delegate? ...

JS restrict mouse movement with axis when shift pressed (for draggable element)

When shift button pressed I want user to be able to only move mouse strictly up/down or left/right. My current rough idea is to intercept all movements when shift is pressed and use events simulation to pass needed event (which will contain only needed axis movement) further. I use jQuery Draggable so other idea is to determine when shi...