jquery

XMLHttpRequest xml response woes with jQuery 1.4.1, how to force the request response to be processed as plain text?

Hi, I'm just playing around with jQuery and trying something that ought be simple, but it just ain't working. $(document).ready(function(){ $.ajax({ url : 'http://soiduplaan.tallinn.ee/', data : {a : 'p.routes', transport_id : 'tram', t : 'xml', l : 'ee'}, error : function(xhr, stat){ alert('error'); }, success : func...

Prevent download of .mov videos

Hello. How do I prevent download of .mov when using JQuery Media Plugin to show .mov vidoes? ...

Microsoft JScript runtime error: Object expected

Hello all I have honestly tried several different avenues from google on this erro but I am hitting my head against a brick wall. I have this bit of jquery in my code behind: tbxProdAC.Attributes.Add("onclick", "$('radProdAC.ClientID').attr('checked', true); $('ddlBuyer.ClientID').val('--Choose Buyer--'); $('ddlSub.ClientID').val('--C...

jQuery read xml error

I am trying to write a simple location lookup call with jQuery and the yahoo maps service. i.e. A user puts a location into a search box and as they are tying jQuery calls a page on my site that returns the XML from yahoo. Geocode.aspx.cs protected void Page_Load(object sender, EventArgs e) { var url= "http://local.yahooapis.com/Ma...

Does the use of AJAX increase memory usage of PHP??

Hello all, I think the answer to this question is no but I do not have anymore leads of the problem I am trying to figure out. I initially had a single script that did some database queries via SQLCMD. I have now decided to initiate this script via AJAX and wait for the response. But I get a fatal error of: Fatal error: Allowed memory...

Inline jQuery script not working within AJAX call

Hi. I have a issue: while i call a inline script (wich uses jQuery too) from another page with ajax - it seems, that jQuery is no more defined (?), and I cannot use any of jQuery functions, that should be applied (according to inline script) to content. It's basically a news list, which holds links to particular news items. I prefer us...

Cannot make FadeIn and FadeOut act synchronously?

Hi guys, I'm trying to use jquery to animate between two images, fading one out then fading the other in. However, I cannot get them to act syncronously, the fadeIn() always gets called before the fadeOut() is complete: $(function() { var tabContainers = $('#tabwrap > div'); var listItems = $('#tabwrap ul.tabna...

jQuery - I need a more efficent way to write my forms.

//Set default values $('#name').val('First Last'); $('#email').val('[email protected]'); $('#subject').val('Subject'); $('#message').val('Message'); //Change style when user types $('#name,#email,#subject,#message').keypress(function() { $(this).css({ 'color':'black', 'font-style':'normal' }); }); //Check each in...

jQuery Plugin Authoring - Set different options for different elements

I have created a jQuery plugin that works great with the exception of being able to call the plugin on different objects and each object retaining the options it was given. The problem is that if I call the plugin on one object, say: $('#myDiv1').myPlugin({ option1: 'some text', option2: true, option3: 'another option value...

Using jquery plugins inside prettyPhoto

I have been trying to combine prettyPhoto and 'Simple Jquery Panorama Viewer' with little success (especially in IE!!). I have attempted to use the inline method with the panorama viewer in a hidden div, didn't work. So I tried pulling it through from a seperate page using iframes - didn't work. I am guessing there is a conflict between...

jquery ui datepicker inside asp.net UpdatePanel

Hi. I have a web page, where I'm using a jQuery UI datepicker on an asp.net textbox, which is located inside an UpdatePanel. Here is a description of what I do roughly <script type="text/javascript"> $(document).ready( function() { $(".datepicker").datepicker(); } ); </script> <asp:UpdatePanel ... > ... <asp:TextBox runat=...

jQuery sortable very slow in IE8

I've appended a sortable jQuery plugin to my list of divs using 1.4.1 jQuery. The function that is called on the page load is pretty simple. $(function() { $('#divEditFieldOrderModal_FieldList').sortable( { axis: 'y', cursor: 'pointer', placeholder: 'sortOrderPlaceholder' }); }); This divEditFieldOrderModal_FieldList contain...

ASP.NET Editable Grid Solution with jQuery, and PostBack Enable saving values

Here is a solution I came up with for an editable grid that can be made editable with single button click outside the grid. There is also a cancel edit button and submit changes button. The table schema and data is dynamic, the table name we are binding to is dataTable and the column names are stored in MyMappedColumns List. <input typ...

How can I load values into an HTML form with jQuery?

I'm trying to create an ajax form with jQuery. I'd like to load existing values into the different form fields (text boxes, dropdown menus). Would I use JSON for this? And how would I load the values? Iterate through the JSON and for each entry load the corresponding value? How would this be done? Thanks in advance. ...

JQuery: How to cache DOM?

I used Firefug to profile my web application and found that the following function is called, and needs to be called, literally hundreds of times per user visit. So I want to optimize it since Firebug says it uses the most resources/times. function highlightChildDiv(parentDiv) { /* find the closest (hlisting) home listing to the m...

jQuery show/hide: How do you reset the value of a form element that is inside a show/hide div?

How do you reset the values of various types of form elements that are in a div when you use jQuery show/hide? ...

jQuery won't work on a page

I have a page that allows users to edit a record from the DB. Simple. The html source looks like this: <form id="prize_modify_form" enctype="multipart/form-data" action="" method="POST" accept-charset="utf-8"> <p><label for="header">Header</label><input type="text" name="header" value="More Tvs!" id="header"></p> <p><label for...

jQuery dropdown is really jumpy

Hi, I'm making a dropdown menu with jquery (some of the code is borrowed from a tutorial by someone, although I forget who...). When I use the dropdown, it slides up and down really fast, and I can't figure it out. What do you think? HTML <div id="nav"> <ul class="topnav"> <li><a class="selected" href="#" title="home">home</a></l...

jQuery UI dialog - how to make it not closable?

Hi, I'm trying to use the jQuery dialog as a loading screen for ajax. I have it working very well so far but I'd like the loading screen to be not closable. However it seems the UI dialog doesn't have "closable" as an option? How do you make it non-closable? I tried setting closeText to blank but that didn't do anything. The little 'X' ...

jquery.min.js error in ie6

IE g gives me the following error: Line: 79 Char: 4 Error: Unexpected identifier, string or number Code: 0 The website is test.hatc.org. I am using a template that features fading images, opacity and sliding menus. I saw an error pertaining to jquery.min.js in a browser running IE8 with compatibility mode on, so I think it has somethi...