jquery

IE6, IE7, IE8 not displaying images inserted using jquery .html unless user right-clicks --> 'Show Picture' (Flash also on page)

Hi All I've got a strange issue which crops up in IE (6, 7 and 8) and when Flash is on a page: images display intermittently. Refreshing the page several times may or may not make the image display. Approximately 50% of the time the image displays If the image is not displayed there is space for the image and right-clicking 'Show Pict...

drag & drop w/ reordering - reordering 2 side-by-side elements at once

I have had no luck figuring out how to do this. I was originally using jQuery UI sortable, but I am not sure it will work with this workflow: I have a table with multiple columns. I want to be able to drag an element in column A AND the element next to it in column B at once and drop them into a different position. After the drop, th...

Sequential AJAX Requests

I have a situation where I need to make sequential AJAX requests represented by an ordered list (<ol><li>..) on the page. I use jQuery. Requirements: Each request has to wait for the previous one to complete with a successful status. The success or error message needs to be appended to the corresponding list item. The process should h...

window.onbeforeunload tips and tricks

I'd like to create an onbeforeunload "You have made edits to the page. Stay On This Page, Leave This Page" jQuery plugin. The plugin will need to: Accept a containing element. $(".editableFieldContainer").beforeUnload() Autodetect changes to not(:hidden) input/textarea/selects. Prompt user to stay on the page if elements within the co...

.change in jQuery is not giving me the results i need for a select

Here is my html <select class="selecturl"> <optgroup label="Fruit"> <option value="/something/167/remote">Apple</option> <option selected="" value="/something/168/remote">Oranges</option> <option value="/something/169/remote">Bananas</option> <option value="/something/170/remote">Carots</option> </optgroup> </select> A...

Using Knockout.js with newest jQuery Files and ASP.NET MVC

I am attempting to use Knockout.js with ASP.NET MVC 3.0 (Title gave it away, didn't it?!) http://knockout.js.com I am running into some problems (more related to the new jQuery Tmpl Engine than ASP.NET MVC 3.0). I am using Steve Sanderson's Example Program in my test, and have mostly replicated his results with the new Razor View Engi...

How to addClass() to the pictures of a certain format

Hi, I need to style images of a JPG format only. (jQuery) I need class to be applied to jpeg's when it's placed in specific container (not all jpg's on the page). For example: <img src="non-jpeg.jpg"> <!--no changes made--> <img src="jpeg-image.jpg"> <!--no changes made--> <div class="spec-container"><img src="jpeg-image.jpg"></div> ...

Triggering event handler attached to it's own object, but inside a chain?

Right now I have: $("#myElement").bind("buildTimeline", function (event, newViewObj) { curDomObj = $(this).children(".timeline"); //this refers to #myElement curDomObj.draggable({ axis:"x", drag:curDomObj.trigger("drag") }); }); I'd much rather just have one chain, but is there a way to refer to the curren...

jQuery GalleryView support for links/href

I've upgraded to jQuery GalleryView 2.1.1 and it doesn't seem to support ahref tags on the images. Is there a workaround for this? I want to be able to display the title on image mouseover and redirect to another page onclick. ...

Jquery - Finding Alt Text for Current Image

Using Jquery UI to make a form where when you drag an image to an input, the alt text is parsed as the value of the input. I have this working fine for 1 image but, I want to make it so it pulls for the current image ( so that I dont have to specify the ID's of all of the images ). See the script below: <script> $(function() {...

jQuery Dynamically focus on the first INPUT or Textarea

Here's a tricky one to start the morning. I have a series of icons. When you click an icon it loads a form. Some of the forms have input[text] others have textareas. What I'm trying to come up with is jQuery that once I load the form I can run that will... Focus in on the first input or textarea whatever it may be, dynamically so I don...

hide iframe that is externally provided

hi there, I have a iframe that loads into out page that causes a display issue. We've tried CSS changes although it still causes a problem. Is there anyway to hide an iframe using jquery that is loaded externally. we've tried the document ready but it looks like the external js file that it uses also has the document ready method so...

Internet Explorer and jQuery issues

I have a script that works in Firefox, Safari, and Chrome. It just doesn't work in Internet Explorer for whatever reason. The code is fairly simple: <script type="text/javascript"> (function( $ ){ $.fn.tabSwap = function() { return this.each(function() { $('.current').removeClass('current'); $(this)...

How do I check whether the scrollbar is at the beginning or end?

Hi Folks, how do I check whether the scrollbar is at the beginning or end with jquery? For the beginning part i would check if $(window).scrollTop <= 0, but what should i use for the end? Thank you ...

missing : after property ID

I don't understand what I'm doing wrong here... line 3 is reporting missing : after property ID $(document).ready(function() { $('#imagegallery img').each(function({$(this).css({ width: '100%'});}); $('#imagegallery').cycle({ timeout: 0, fx: 'scrollHorz', width: '100%', height: 'auto', n...

Jquery change/focus/blur overrides submit in Firefox

A form with a single textfield is given. A submit handler is bound on the form and a change/focus/blur handler bound on the textfield. When something is entered into the textfield and the submit button is then clicked, only the change/focus/blur event is registered in Firefox, while in Safari, both are registered. The form: <form id="...

iWebkit Vs JqueryMobile Vs JQtouch?

Hii Friends, i m newbie to iphone development , i have to design a iphone webapp,have found these three have the best features, Plz point out these pros and cons of these mobile frameworks? Does php is needed for form processing or we can use xml,feeds etc? ...

Arrays in Javascript

I always had this silly doubt in mind but never had come up with the solution. I have seen several kind of arrays but I don't know the difference between them. I don't know how to explain exactly but it's most when passing parameters with jQuery. See: { 'choices[]': ["Jon", "Susan"] } in $("#objectID").load("test.php", { 'choices[]': ...

AnythingSlider: Make Nav Tabs Inactive?

I'm using the AnythingSlider tool and am having some trouble with the css and js on this. Basically, the slider has a number of navigation tabs that help jump from slide to slide. I want to change this so that when a coldfusion conditional runs, certain tabs will either remain in a default state or become inactive (change color of tab ...

Is PHP a must need for developing Iphone Web Apps?

Hii people, i m new 2 iphone development and php,i had to develop a iphone web application,i cant clear is that possible to develop without php by using web services etc? i have developing using JQtouch / jquery Mobile? Thank u? ...