jquery

Ampersand in GET, PHP

I have a simple form that generates a new photo gallery, sending the title and a description to MySQL and redirecting the user to a page where they can upload photos. Everything worked fine until the ampersand entered the equation. The information is sent from a jQuery modal dialog to a PHP page which then submits the entry to the datab...

Unfailing Javascript Image Preview

I have the following code that presents the user with a preview of the image they're trying to upload and works really well in FF: var img = document.createElement('img'); img.src = $('#imageUploader').get(0).files[0].getAsDataURL(); The problem is, getAsDataURL() only works in FF. Is there something similar/a workaround for this kind...

JQuery UI Autocomplete showing as bullets

The JQuery UI Demo page for autocomplete (link) has a nice looking search box and drop down with nice colors and highlights and such. When I implement it for myself, I end up with a bulleted list. How do I get my drop down of suggestions to look like theirs? A few notes/code fragments: I'm working in .NET land, so I'm using the <asp...

Galleria problem Google chrome

I am using galleria for http://minavet.ro , but the script works well with IE8, Opera, and FF but in Chrome the full site goes to the dogs. Thanks for any suggestions ...

Javascript event chaining / binding

I have a select list which has a function with a jQuery .post bound on the change() event. <select id="location"> <option value="1"></option> <option value="2"></option> </select> $('#location').change(location_change); function location_change(){ var url = ''; $.post(url, callback); } What I would like to happen is other co...

Google maps API V3 code to V2 help.

I've started working on a project to inject markers into a map with jQuery by looping through rows on a table in the page. After getting it working I realized that I was accessing the V3 API and using V3 syntax. I've been beating my head against a wall trying to get this working in google maps API V2. If someone could please take a look ...

How to use xml response as XMLObject outside of ajax callback function

Hopefully I've just made a dumb oversight, but I can't figure out why the following doesn't work: $(function() { var xml; $.get( "somexml.xml", function(data){ xml = data; }, "xml"); alert(xml); }); If I put the alert inside of the callback function, I get back object XMLdocument but...

jquery cross browser solution

What is the jQuery equivalent to the following: function stopEvent(evt) { if (window.event) window.event.cancelBubble = true; else evt.stopPropagation(); } ...

text editor for jquery ,dojo,mootools

I need a text editor that supports cross platform JavaScript languages such as jQuery or MooTools. I do not mean a rich text editor. I'm looking for an "intellisense" text editor to develop in those languages. ...

JQUERY Effect highlight, control the Start & End colors

I have the following: $(".notifycell_email_dailydigest").effect('highlight'); The element I want to highlight is over a gray background. Problem is the highlight goes from Yellow to white, and has this ugly slow pause at the end on the white which makes the animation look horrible. How can I modify the highlighy to start with the yel...

css3 rotate alternative

I am using the CSS3 rule, "rotate" to rotate a div containing text. You can see the page here: http://vitaminjdesign.com/v2/socialmedia.html. I am looking for cross browser support for rotating the div; however, this CS3 rule won't work on IE. Is there a jquery option or another javascript solution that will yield the same result, with c...

JQuery Json error: Object doesn't support this property or method

ERROR: Microsoft JScript runtime error: Object doesn't support this property or method here is how the json2 is calling from: **var json = JSON2.stringify(settings.data);** i am using WCF service to pull the data and its very simple for the purpose of test and it does returning me the data from wcf service but it fails on json2.j...

Jquery fade and swap an element when clicked which will also relate to an accordian menu

You will notice when you click posture 1 the description drops down and images appear on the right. Now when you click posture 2 or posture 3 the images and description change as they should. view website What I need to do now is - If posture 1 has been clicked and then posture 2 is clicked the posture 1 menu needs to close so that th...

jQuery animate help

This isn't working. I'm trying to replicate the animate to red and then remove effect as in the WordPress admin. The element gets removed, but it doesn't animate before that. $('.delete-item').live('click', function(){ $(this).parent().parent().animate({backgroundColor: '#ff0000'}, 'slow').empty().remove(); }); ...

jQuery toggle - unexpected go top

I'm new to jquery, i write a simple snippetto toggle menu . But the problem is : when I scroll at the bot of page and click menu to toggle. It go top unexpectedly . Thanks for reading . ...

Facebook app: Using Flex or JQuery

Hello; I am about to start a new project, a facebook app. There are two alternatives for client-side in my mind. Write Flex-Facebook app. Or write html with Ajax and Jquery. So what are your opinion, which do you recommend? What are the issues about each to take into account? Advantages, disadvantages, subjective opinion? Thank you h...

Why does jQuery.ajax() add a parameter to the url?

Hi, I have a data fetching method that uses jQuery.ajax() to fetch xml files. /* */data: function() { ...

jQuery - making sure content is loaded before it's faded in?

Hi, Nick Craver really helped me out alot with this code in this thread http://stackoverflow.com/questions/2743443/jquery-can-someone-help-stitching-jquery-code-with-ajaxcomplete/2743791#2743791 And it is working. But I notice that there's a small delay after I've clicked a link and before the content is actually loaded. It's not very i...

how do set a default value with jquery autocomplete combobox.

when using the jquery ui autocomplete combobox, can you set a deafult value of the combobox ? ...

jQuery - getting the id of the item selected

I have a basic jQuery selector question. Let's say I'm parsing JSON and generating a row of data for each item in my result set. On each item row, I want an action button. What is the best practice to script that button so its click action can reference the data specific to that row? Starting with the block below, how do I generate a ...