jquery

Can you insert a form onto a page using jQuery's $.load() function?

I have a page where there's a drag and drop table where the order of the rows determines the value of a subtotal. However, it's more complicated than just addition and I would rather not duplicate the logic in JavaScript to update the values. A simple solution would be to reload the whole page using Ajax and then replace the table from ...

Javscript / jQuery not executing in IE until the body of the page is moused over

I'm working on a new portfolio site at http://www.nitrohandsome.com, and am using the experience to cut my teeth on jQuery. I'm using the latest build and jcarouselite along with the easing extension on my main page for a nifty carousel effect. It works fine in most browsers, but when I started testing in IE (7 and 8, haven't started opt...

Why is the data from my html form not submitting?

I am developing asp.net mvc application. I have a section on the form where I add some text boxes dynamically when the user clicks a "Add New Part" button. The problem is when I submit the form I don't get the data from the fields I added dynamically. I am passing the FormCollection to my controller and stepping through the code in th...

jqGrid, ASP.NET, JSON is Driving me crazy. Please Help.

Hi there - I've been trying to get this to work for days upon days and it seems like one thing after another. Initially, I finally tracked it down to trouble passing ASP.NET dates in the JSON string back to the grid. I am now using JSON.NET and the dates are coming back the way they should be I'm stuck right back where I alwasy seem to b...

Why does my website crash in IE?

My site works fine in Firefox, but it crashes in IE. I am using alot of jQuery in order to fade in content. When the user clicks on one of the above links a few times, it will crash in IE. Here is my site: Idea Palette I have absolutely no idea why the site crashes in IE. I don't even know where to begin to debug my problem. I don't h...

create jquery cookie on form submit, then display it on the next page?

I am looking for some example code that does this, but am not having much luck. I'd greatly appreciate any help with this. Thanks!! ...

How do I find out with jQuery if an element is being animated?

I'm trying to move some elements on the page, and during the time the animation occurs, I want to have "overflow:hidden" applied to an elemnt, and "overflow" back to "auto" once the animation is completed. I know jQuery has an utility function that determines whether some element is being animated but I can't find it anywhere in the doc...

Some Parameters in $.ajax not passing

Hi there, I have this function $.ajax({ url:aurl, method:'GET', beforeSend:function(req) {req.setRequestHeader('Authorization', auth);}, cache:false, dataType:"json", error:function() {...}, success:function(t) {...} }); However, the parameters: method beforeSend Cache are ignored by my browsers FF3, IE8 and Chrome. So, whatever i...

Jquery append <select> not working in IE7, but works in firefox

I am getting data from a database through AJAX and appending tags to a select statement. The following code works in firefox, but only partially in IE. The problem in IE is that is creates the option elements in the dropdown, but the "text" attribute value is empty (the dropdown appears with 30 blank rows! However, the "value" attribute...

Jquery Position problem

hey well i am working on something that which will basically create a business card online here is a example. http://weblayoutsrus.com/draggable/example.html im basically trying to layout the div tags like fullname ect with css, then i want to grab the X & Y co-ordinates of the div tags relative to there container so that it can b pass...

Jquery Dialogue - Multiple on the same page

Hi all, I'm trying to implement a jquery dialogue box multiple times on one page - basically, I want to show further info about a person when a user clicks on their name. I'm generating the page with php. I've tried to do this, and got it partially working, but i can only make the first instance on the page work. Please can anyone po...

js/jQuery Drag'n'Drop, recalculate the drop targets.

I have the following issue, I have a large tree which has subnodes which can be folded and unfolded on demand (the data within nodes gets fetched with AJAX). However, I use jquery.event.drop/drag to create my drag/drop targets. However, when I fold/unfold the drop targets change position and I need to recalculate. This is how I wanted t...

Javascript: Easier way to format numbers?

I'm trying to format various numbers on my page. These numbers either represent a price, a change in price, or a percentage. I know Javascript has functions to limit the number of decimal places, but is there any support for other types of formatting, such as grouping numbers with commas, controlling whether or not the +/- is shown, et...

Unobtrusive jQuery autocomplete in Rails

I'm using rails, but doing all my Javascript unobtrusively using jQuery in application.js. Unfortunately, this makes it quite difficult to reference URLs. For example, if I want to give a field autocomplete behavior, I have to hard-code the autocomplete URL in application.js since the rails url_for isn't available. Is it possible to ma...

Stack overflow error when using JQuery/ASP.NET for simple ajax chat

Hello, I am trying to create a simple ajax chat using JQuery and ASP.NET. My code works like this: When the page loads it refreshes the 'chatbox' div with a request to the messages.aspx page, which handles getting new messages from the database and kicks off an auto refresh with the setTimeout(). Whenever the user clicks the send b...

Call backing bean method through XmlHttpRequest object

Is there a way to call a backing bean method using the javascript XmlHttpRequest object or through jQuery in JSF? ...

How do jQuery do it's cross-domain ajax calls and how can I replicate em with mootools

hi ! in my eternal internal fight on whether to stay with mootools or jump to jQuery I've found on the jQuery documentation something that got my attention and this is that jQuery can ask for a JSON to a different domain, which is usually forbidden by the browser. I've seen some workarounds for cross-subdomain, but never cross-domain, ...

How to write this in jquery "window.parent.document.getElementById('parentPrice').innerHTML"?

I have an iframe and I wrote this code window.parent.document.getElementById('parentPrice').innerHTML to access parent element. How to get the same result using jquery? UPDATE: Or how to access iFrame parent page using jquery? ...

jQuery lightbox plug-in bug

If you visit here: http://www.egyptevakantie.nl/dahab, click on the "andere plaatsen" tab, and then click on an image it brings up a magnified image, courtesy of the jQuery lightbox plug-in. However, if you do the same here http://www.egyptevakantie.nl/dahab?rhys=yes (essentially the same site except for a couple of stylesheets and one ...

can jquery ajax call external webservice?

Can jquery ajax code call a webservice from another domain name or another website? Like this: $.ajax({ type: "POST", url: "http://AnotherWebSite.com/WebService.asmx/HelloWorld", data: "{'name':'" + $('#price').val() + "'}", contentType: "application/json; charset=utf-8", data...