jquery

How might I simulate a backspace action in a text field?

When a button is pressed, I simply want to simulate a "backspace" in a regular text box, deleting the character to the left of the cursor. Google and various forums are producing really random results on this. What's the proper way to do this? ...

Accessing ASP.NET MVC Model Data from external Javascript file

Hi, I'm trying to use JQuery's $.getJSON to access Model data from the Controller, and build a JSON object in the javascript to use as the user adds and removes items from a list. All JS is done in an external file. The hit to the server for the Model data is done only once after the page first loads so I can get the full list of option...

fail to get yahoo stock quote by Ajax

I am trying to get Yahoo stock quote in the following way. but it does not work, can anyone tell where is wrong. Thanks! <html> <head> <script type="text/javascript" src="jquery-1.3.2.js"></script> <script type="text/javascript" language="JavaScript"> $(document).ready(function(){ $("#btn").click(function(event){ ...

Using JQuery to manipulate HTML elements created from XSLT

Sorry if the title doesn't explain things well. I have a situation where I am using DHTMLX AJAX component to display XSLT out to HTML. So the idea is this: There is a containing HTML page with a DIV which the xslt will be displayed into. The xslt file of course which is very simple.. just display a couple of XML elements into <p> tag...

37 Signals Style Lightbox | How to do this?

Does anyone know how 37 Signals built the pop ups for image previews that are now in basecamp? I really like how quickly they load and the fact that the whole page doesn't get "light-boxed" and there is a minimal border It's very snappy. You can see this effect on the marketing page for campfire: http://campfirenow.com/?source=37signals...

Why is the jquery multi upload plugin not uploading?

I am using the multi-upload plugin found at: http://www.fyneworks.com/jquery/multiple-file-upload/ This is what I am doing: These steps will reproduce the problem: Create a file input field, add 'multi-upload' as the class and 'images[]' as the name Use the input field to select an image and redirect to upload.php page via the action...

How do I best prioritize HTTP requests on a web page?

I need to prioritize the downloading of (in my case) images. To do this I would prefer to use some kind of plugin (preferably for jQuery) that lets me do this without having to build my own downloadqueue mechanism. Consider this scenario: You have a web page. Your web page is able to show a given user three images. These images are on...

Slide between frames using JQuery?

I'm trying to build a site like http://justinouellette.com/. The only problem here is I'm confused with the code. I'd like to use JQuery instead of MooTools. Can somebody here be an angel and write up a demo? I'd like to be able to switch between frames using hyperlinks. A frame would be a class. Thanks! ...

Make images load when they enter visible section of browser?

I was browsing around the web and I saw something I've never seen before. on this site: http://blogof.francescomugnai.com/2009/04/mega-roundup-of-geektool-scripts-inspiration-gallery/ When you navigate down the page, the images only load when they are in the visible portion of the browser. I have never seen this before and was wondering...

How to use live event bindings with jQuery UI Plugins like sortable, draggable?

How to use live event bindings using jQuery UI Plugins. The scenario I have is that I dynamically create UI controls based on jQuery UI using AJAX calls. As a result all the events are not attached. For e.g. If i use jquery ui "sortable" and I dynamcially add a list item to the <ul>, this new <li> is not sortable. Any hint in this di...

search tags like stackoverflow?

how do you code a search box like the one in Tags where you enter a tag name and all tags are showing immidiately without you press enter. can someone link me a script or tutorial for that. is it javascript or jquery? does it involve ajax? and does it search in the database for tags? or is it searching through a xml file with tags? ...

jqGrid row IDs and custom info with JSON data

Hello, I am having an issue with the using jqGrid with JSON data returned from the server. I have a grid that is displaying different types of objects – and since the objects are different types, two could have the same ID. jqGrid seems to use the id field if the data to set the dom id of the row, so I end up having two rows with the s...

create a "show up" window when you click register?

hi. im a backend programmer who wants to have a window that appears in front of the current window when clicking "register". so that you dont have to redirect to another page. i think u guys know what i mean. how do i do that? is it with jquery or javascript? is ajax involved? and what is that kind of popup box called? ...

how to use lightbox(jquery) in gridview or datalist control

hi, i have an requirment where i need to i display a thumbnailimage in datalist control. and once user clicks the thumbnail image new pop up show come showing image. along with the data [ that comes from Database] so any one have done concept using lightbox with asp.net any idea how to slove this thing. i am new to jquery co...

Form Inputs updated via JS don't get submitted

Hi, The invoice input values which hold the totals of invoice line items that get updated via JS return a NULL value when they are submitted. <span class="sublabel">Subtotal</span><input type="text" class="total-box" id="product-subtotal" readonly="true" /> <span class="sublabel">Tax</span><input type="text" class="total-box" id="produ...

How to remove the last <li></li> using Jquery?

<div id="q"> <ul><li> <table><tr><td>Question 1</td><td><input type="text" name="question1" size="60" /></td></tr> <tr><td>Answer:</td><td><input type="text" name="answer1" size="8" /></td></tr> </li></ul> </div> <input class="btn" id="addquestion" type="button" value="Add Question" /> <input class="btn" id="removeque...

Convert local (JQuery) link to CDN link at deploy time

Hello, I am currently developing an ASP.NET web application and do most of my development on the road, i.e. offline. I plan to use Google/Microsoft/an-other CDN for JQuery and a couple of other script resources. My question is, is there a straightforward way to develop with a link to a local file within the solution, but to point to the...

Debug, what's wrong with "$('#q li:last').remove();"

I want to remove the last <li></li>, below is the code: <div id="q"> <ul><li> <table><tr><td>Question 1</td><td><input type="text" name="question1" size="60" /></td></tr> <tr><td>Answer:</td><td><input type="text" name="answer1" size="8" /></td></tr> </li></ul> </div> <input class="btn" id="addquestion" type="button" v...

Validating all entries in Input Boxes.

I want a class in JavaScript through which I can validate all the Input Boxes on a form. I just want to supply the form name and it must validate the input boxes there in. Is there any class or something other through which I can achieve this? ...

jquery how to select this.parent?

The snippet below repeats many times per page. When I click .load_comments, how I can select .answer_comments? I guess the easiest way to do it is to select first the parent (.single_answer) and then just use descendant selectors to select the div I need. I'm having problems selecting the .single_answer parent. Using $(".single_answer:p...