jquery

jQuery Load image on select option

Hi Guys, I'm trying to load different images into a DIV according on the selected, something like this: <select> <option value="mercedes">Car #1</option> <option value="ferrari">Car #2</option> <option value="fiat">Car #3</option> </select> If the Car #1 es option is selected, load mercedes.jpg into <div id="car"></div> Any id...

jQuery post.How to load invalid HTML markup to a div without breaking it

I am building a small CMS kind of application.I am loading a div with jQuery post method from the content returned from an asp.net page. <html> <body> <h3>Edit your posts</h3> <div id="divMArkupContainer"> </div> </body> <script> $.post("ajaxhandler.aspx", function (data) { $("#divMArkupContainer").html(data)...

Calling WCF URL directly

Is there a way to call a WCF directly while still developing locally? When I run my WCF project the config file has the following: http://localhost:8732/Design_Time_Addresses/Design_Time_Addresses/MFA_WCF/Service1/ When I input this line as my URL in the browser (adding the method) a blank page shows up... I was hoping for some me...

Trouble replacing text in jQTouch

I have the following block of code in a jQTouch app I'm working on: <div class="info"> <div id="MyValue">Sample Text</div> </div> <p onclick="ResetValue();"> Reset </p> When writing my ResetValue method, the following jQuery syntax does not work: $("MyValue").html("Changed Text"); However, if I use the "classic" method, the ...

Inserting into HTML5 database with jQuery loop

Hi, Javascript is not my forte, so excuse me if this is incredibly obvious. I'm working on some code that creates a local database and table, retrieves an RSS feed, parses it, and adds information from each entry to the database. $.ajax({ type: "GET", url: feedurl, dataType: "xml", success: parseXml }); function parse...

What does it mean if an open source jQuery project is dual licensed as GPL and MIT?

Possible Duplicate: jQuery, jQuery UI, and Dual Licensed Plugins (Dual Licensing) I'm interested in using the fullcalendar jQuery project in a commercial project I am working on but I don't understand what it means that it is dual licensed as GPL and MIT. http://github.com/arshaw/fullcalendar ...

JQuery transition issue

I've got the following problem: I have a set of LI elements that have to go from one state to another (two separate css classes) with a smooth transition. To do this, I'm using JQueryUI's Effect API (switchClass) for every LI element, I've hooked two JQuery listeners: mouseover and mouseout, which change the state correspondingly. Clea...

jQuery .attr('type', 'submit') on a button element giving me a strange error in IE7

I'm parsing a JSON response via $.ajax() and building a form from this object's values. The script I've written is long, but here's what it's doing: Dynamically creating: ~ a form element, ~ a fieldset element, ~ a button element, ~ 20 or so text inputs and label elements Appending the inputs and labels to the fieldset Appending the b...

File upload multi-select

I'm not positive if this is even possible, but is there any way to enable a user to ctrl+click (ie, multi-select) files on a website? Screen shot of what I would like to be able to do via an upload tool, taken from just my standard file explorer: In case this is relevant, the back-end of the site is in C# and the front-end scriptin...

jQuery - select class not contained in another class

Possible Duplicate: jQuery filtering selector to remove nested elements matching pattern. I have a hierarchy of groups. Something like: <div class="group"> <span class="child"></span> <div class="group"> <span class="child"></span> <span class="child"></span> <span class="child"></span> </...

Jquery UI Drag and drop - How to get parent and child elements

Hi Guys, I have two divs source and target. Both have "ul" and "li". I have set the ul to be draggable. What I want to do is to drop all the "li" (child) pertaining to ul being dragged to the target. Given below is my code: $(".source .primary").draggable({ revert: "invalid", containment: "#documentPartsMaintena...

jQuery URL parser plugin fails on '@' in query string - What URL parsing regex will work?

Background I use the jQuery URL parser plugin by Mark Perkins for extracting query string values from the current URL. The parsing process fails when query string values contain the '@' character, most notably when there is an email address in the query string. This is in reference to the latest version of the plugin, taken from the gi...

Change select to input on selection of country?

Hello, I have a country selection field that allows for US and Canada and Europe selections, most of our users will be from US/CA so we defaultly show provinces, however when a user selects Europe we want it to change from a select to an input box. We have jQuery('select.country_d').change(function(){ if($('select.country_d').val()...

qtip (jquery plugin to show tooltips): trying to work with it.

Hi, Im trying to operate qtip. i have this code <html> <head> </head> <body> <script type="text/javascript" src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.js'&gt;&lt;/script&gt; <script type="text/javascript" src='/home/javier/Scaricati/jquery-qtip-1.0.0-rc3080111/jquery.qtip-1.0.0-rc3.min.js'></script> <script type="...

jQuery Gallery won't work in any version of Internet Explorer

I wrote my original jQuery code and saw that it wasn't working in any version of IE. I used JSLint to figure out why it wasn't working in any version of internet explorer. Here is my new code that I cleaned up using JSLint http://theburnmachinept.com/js/scripts.js. This still refuses to work on any version of IE. AND to top it off it...

How to edit link that show modal box in jQuery

I have a problem where I try to show a modal box, it's when I append some a href="" links to my that is on my index page. I have this in my jQuery script: $(document).ready(function(){ $('a').click(function () { // Dialog $("#feed"+$(this).attr('id')).dialog({ bgiframe: true, width: 400, modal: true ...

JQuery UI buttonset - onmouseleave remove ui-active-state

I am trying to use a very simple buttonlist. When the page loads everything is fine, the selected value is selected and it looks right. the problem starts when i move the mouse over the button, as soon as i leave the button, the ui-active-state class gets removed - the aria-pressed attribute is still set to true, but the styling is gone...

Cufon and Jquery Magic Preview

Jquery Magic preview allows a user to enter in text and have it auto update (much like this "submission field" works with the preview loading below!). I would like the user to be able to enter in the text and then the Cufon font to take over what they've written (or just have it typed in cufon font). $(function() { $('form.example inpu...

using slick upload with mvc 2 and jquery / ajax

Hello Everyone! i'm trying to get slick upload working inside a jquery ui dialog. I've got it uploading the file just fine, and i've checked out the samples, and they all end up with the entire page re-loading. i've managed to make it so it doesn't do it's final postback to deal with the files after it uploads by setting the AutoPost...

How do I make my jQuery slideshow with controls unbreakable?

I'm building a simple slideshow using jQuery. I have the basics down, but as a relative jQuery newcomer, I feel like I'm fighting with the animation queue and not making much progress. I've created a slideshow by making a function that receives a numeric index of the first slide to show. It fades in the slide, pauses, fades out the sl...