jquery

internet explorer outputs nothing when doing jQuery AJAX .get call - other browsers are fine

Hi guys, i hope you can help me with this one. The code is supposed to display mysql data using a php script returning XML (the backend script works fine delivering good XML - checked with my previous question on Stack Overflow). I'm using jQuery 1.4.2 to do a .get AJAX call - and i just can't get Internet Explorer to display even a bi...

How do I render a jQuery.tmpl Template to a String?

The documentation for jquery.tmpl uses .appendTo to insert the template into the DOM during the rendering process: $.tmpl( myTemplate, myData ).appendTo( "#target" ); I am attempting to convert an existing app from another templating engine, and my code needs to render a template into a string first before it is added to the DOM. Is t...

jQuery - Launch URL In Same Window, Then Refresh

I'm using jQuery-UI's accordion plugin with hash tag navigation, but I'm running into a problem. Each page of my site has an accordion widget on it. The URLs in the second level of my main navigation menu are supposed to open the correct panel of the accordion using the accompanying hash tag, and they are written like so: <li class="lvl...

empty C:\fakepath\.. file upload in IE

How do I remove the selection from the input type=file, when something is entered in the textarea. The following Jquery fails, because IE replaces the local drive and directory path to something like, C:\fakepath\file.txt. Many thanks in advance. $("textarea#txt_id").live('keyup', function(){ $('input[type=file]').val(''); }); <tex...

Jquery code in page called via ajax

Im using arte for jquery to call a page via ajax every 10 seconds. It calls to one of my php pages, that php page queries the database and spits back html code. In that html code are some jquery calls. The problem is those calls dont work unless I include the jquery script in the php file being called. But that causes issue with jquery c...

When closing jQuery SimpleModal an error occurs within IE7

I just noticed a problem today within IE7 while using the jQuery plugin SimpleModal. I'm not exactly sure what's causing it through. It also doesn't seem to happen with all of my modals only this one. Any ideas on what could be causing it would be great. The error that IE is showing is directly related to SimpleModal's file as well. L...

jQuery.load doesn't work in IE?

This works in FF, but not in IE 7 and 8. Is there anyway to make it work in IE? setInterval(function() { $("#content").load(location.href+" #content>*",""); }, 5000); (this code is from http://blog.mediasoft.be/partial-page-refresh-with-ajax-and-jquery/) ...

Fancybox is not a function

Hello I am using the jQuery plugin fancybox to display bing maps when somebody enters an address into a textbox and hits the submit button beside it. And a fancybox is loaded and a map for that address is displayed. This is working well with my application, but the problem is, it is only working well on one page and on the other one, whe...

blackberry widgets and jquery mobile alpha

I've been trying to get jquery mobile alpha to work on my blackberry widgets. http://jquerymobile.com/ Some of the styling works, but none of the functionality does. Has anyone successfully implemented this? ...

How do you use $('document').ready(function()) in jQuery?

I have a piece of code that is working fine in IE, but it doesn’t run in Firefox. I think the problem is that I have not been able to implement $('document').ready(function). The structure of my json is like [{"options":"smart_exp"},{"options":"user_intf"},{"options":"blahblah"}]. I will be very thankful if someone can see my code & help...

jQuery: generating html

Is there a better way to do the following? var html; var i; for (i=0; i < 4; i++) { html += '<div class="row">'; html += '<span class="label">Dining Style:</span>'; html += '<span class="control">'; var j; for (j=0; j < 3; j++){ html += '<div class="attribBox">'; html += '<ul>'; h...

jQuery ajax problems with webkit browsers

Hello I'm adding some ajax features to a site and I have very strange problem. On webkit browsers the ajax request aren't working. I have no idea where is the problem. I noticed that if I leave only one ajax request the Safari(windows) is doing it right, but that its not what is happening to the Safari(Mac) and Chrome(windows). The javas...

jquery check all checkboxes and add class to rows?

hi all, I am trying to add a class to my tr rows if the select all checkbox has been selected, but I can't seem to get the add class to work (and then obviously remove them if check all has been deselected), I am using toggle on each individual row to add/remove the class, but can't seem to get it working for the check all. Here's my ta...

jstree checkbox plugin error

I have a jstree with checkboxes that shows up just fine. I can open and close the nodes, check and uncheck the checkboxes, etc. The problem comes in when I try to get all the nodes that have been checked. Below I list all the ways I have tried, along with the error messages I get when I try each one. $.tree.plugin.checkbox.get_checked(...

> jQuery Child Selector without a parent allowed?

Quick question, is a jQuery child selector without a parent ever valid? If so, how would you use it? Example of the jQuery child selector: $('ul > li') Example of jQuery child selector without parent: $('> li') The second example above doesn't work. However I can't remember if I saw it in the past before or I've seen something adv...

clearing an <a> href after the page is loaded using jquery

I'm trying to slightly modify a wordpress template. At the moment a function returns a link to an article, I am trying to replace this link so that instead of diverting you to another page it just brings the article in and loads it. To do this I need to reset the anchors href after the page has loaded. This is the bit of code I am int...

jQuery: Templates. Must be contained in script block?

As a JS developer, I always keep my design layer separate from my business layer. Meaning, HTML is always alone, CSS and JavaScript files are external and included. Now, in the case of jQuery Templates, a declared template must apparently live within a script block of the page. How in the world are you supposed to keep all of your busin...

JavaScript: Cross-browser "browser plugin" detection

I'm looking for a script that will allow me to detect if a user has Windows Media Player installed, or Quicktime, or Flash, or Silverlight... Ideally, this would be jQuery plugin, but any script will do. Do you know of one you can recommend? ...

How Can i Render a Partial View via AJAX? (ASP.NET MVC 2)

Hi Guys, This should be relatively simple for the MVC experts out there, but i'm still learning the ropes. I have a View which is not strongly-typed, simply ViewPage<dynamic>. On this View, i have a single textbox, which is extended using jQuery's AutoComplete When the user types something into the textbox, the AutoComplete does an AJ...

Is there a fast Form Validation Script? In jquery!

I have a small form with "name", "email", "request", "message" fields. All I want to do is highlight the borders of the input field red if the required info is missing upon submit. I want the form results emailed. Real simple. Can anyone suggest a fast script for me? Erik ...