jquery

Can not get input type submit/input working with Google Chrome and jQuery

I am using jquery code to handle language translation, I have in my previous posts, gotten the code to handle most text and ajax translations. And this code even works 100% in firefox, but when testing on google chrome 5.0.365.2 Dev $("input:button,input:submit").each(function() { var value = $(this).val(); ...

get image from iphone, using phonegap camera api

I'm new to Xcode and iPhone apps. I want to select an image from iPhone (camera or library) and send to php via ajax. http://wiki.phonegap.com/iPhone:-Camera-API I'm using the phonegap framework, Xcode iPhone SDK version 3.1.x. On clicking button it calls function with parameter 0 or 1, but it does not initialize camera or display the...

possible to auto zoom out if user's resolution < x ?

my site is aimed purely at the laptop market (dont ask why or argue!), all my users (or 95%+) we on a screen width of 1200+, netbooks are now taking off, with a resolution of 1024 wide. my site still looks great on a netbook if you zoom out once (ctrl-minus), but i don't want to rely on users knowing about ctrl-minus. what are my opti...

jquery validation plugin - different treatment for display errors vs. clearing errors

I am using the popular jQuery Validation Plugin. It's very flexible with regards to when validations are run (onsubmit, onfocusout, onkeyup, etc.). When validations do run, as appropriate, errors are both displayed and cleared. Without hacking the plugin core, I'd like a way to split the behavior so: Errors are only displayed onsubmi...

How can I create an HTML text field that has scrolling background images before it is clicked?

I'm looking to add a textbox on my website that captures a single email address. Behind it, I would like scrolling (or sliding) images to be a "hint" for what the field should be. Example: http://steamboat.com/ - the "Newsletter sign up" toward the top of the page. I can find plenty of jQuery plugins that provide a plain text "hint". ...

Javascript Noob: How to emulate slideshow on front page by automatically cycling through existing hover states of main page links?

hey everyone. hope you could help me out am working on this website and i've finished all the hover effects i like - they're exactly how i want them to be: http://s5ent.brinkster.net/beta3.asp - try hovering over the four links and you'll see a very simple fade effect at work, which degrades into a regular css hover without javascript. ...

What is the best way to disable an input with a radio button via jQuery?

Hallo all. I got this piece of code: <div> <input id="id1" name="radioButton" type="radio"> <input type="text" id="idText1"> <p></p> <input id="id2" name="radioButton" type="radio"> <input type="text" id="idText2"> </div> When I select the radio id1 I need to disable idText2 and when I select radio id2 I need to d...

jquery isn't working properly when an iframe is present.

I'm developing a simple jQuery shopping cart and have a message box fade in when the item has been added correctly. $("#results_info").html(''); $("#results_info").fadeIn(); $("#results_info").html(data); setTimeout(function() { $("#results_info").fadeOut(); }, 5000); If I have an iframe on this page. I have to hover over the ifram...

questions about jquery dialog plug-in

I am trying to customize a dialog window (without a theme). First, I want to display a custom "close X" button. Second, a user should be able to drag and resize the dialog. Finally, I would like to position the dialog in the top center of the window. However, I am having some problems and need some help. I have the following: <style> ...

reuse div container to load images

Hi All; What I would like to do: use a single container to load images. As it is now: I have eleven (11) containers in HTML mark-up each with its own div. each container holds 4 images (2 images side by side top and bottom) when link in anchor tag is clicked div with images fades in. jQquery accordion is used for navigation typical ex...

sorting nested list, allow only li to be sorted witin the same ul

$(document).ready(function() { $("#test-list").sortable({ items: "> li", handle : '.handle', axis: 'y', opacity: 0.6, update : function () { var order = $('#test-list').sortable('serialize'); $("#info").load("process-sortable.asp?"+order+"&id=catid&order=order...

With a jquery modular dialog how do I stop the form values from persisting?

(Citing source at: http://jqueryui.com/demos/dialog/#modal-form) As an example, this works great but each time the form is subsequently opened the user entered values remain. How can I stop this behavior? (the form will be used multiple times on the same page. <style type="text/css"> body { font-size: 62.5%; } label...

jQuery find events handlers registered with an object

I need to find which event handlers an object has registered. eg. $("#el").click(function(){...}); $("#el").mouseover(function(){...}); Is there anyway I can use a function to find out that- $("#el") has click and mouseover registered and possibly iterate over the event handlers. If not a jQuery Object can we find this on a plain...

Autocomplete functionality on a textarea

Is there a way to implement auto-complete functionality in a region defined by textarea tags or something similar? I'm currently using a jquery autocomplete plugin to suggest input to the user inside input tags, but the issue is that the autocomplete phrases can often be fairly long and thus scroll off the edge of the input field. ...

Why does my div not center properly?

I'm using $.blockUI with jQuery to show a modal dialogue. The HTML looks like: <div id="progressDialogue" class="mp_modalpopup"> <div class="mp_container"> <div class="mp_header"> <span id="pd_header_text" class="mp_msg">Please wait..</span> </div> <div class="mp_body"> <img src="ajax-...

ASP.NET MVC - PartialView html not changing via jQuery html() call

When I change the selection in a DropDownList, a PartialView gets updated via a GET request. When updating the PartialView via the jQuery html() function, the html returned is correct but when it displayed in the browser it is not correct. For example, certain checkboxes within the PartialView should become enabled but they remain disabl...

JQuery getting the tr after clicking its content <a>

Suppose I have <table> <tr> <td><a class='ilink'> link text </a></td> <td></td> <td></td> <tr> <tr> <td><a class='ilink'> link text </a></td> <td></td> <td></td> </tr> </table> in the jquery code, after clicking the link, I want to highlight the entire table row that the link is in. But how can I find ...

Disable JQuery Validation while Datepicker is showing the calendar

The problem that I am having is that when the user opens the calendar to the jquery datepicker, and they change the year. If they then change the month, it will revert the year to what it was before. The problem seems to be with my custom validator methods, if I remove them, then everything works again. Here is some simplified code th...

ASP.NET MVC jQuery: Shoud we be concerned about a lot of jQuery/javascript on a View?

We are moving from WebForms to MVC and and using a lot of jQuery. I appears we have a lot of jQuery/JavaScript in our Views, is this common and are there any concerns about security. The obvious step is to refactor into plugins and more generic UserControls etc, but this jQuery would still be "visible" by looking at js files etc. We ar...

jQuery - Shadowbox rebinding

Hi, How do I bind / initialize Shadowbox to content loaded by jQuery using AJAX? Right now shadowbox works when I first come into the site. However, when I swap the content with a new one loaded through AJAX, these new batch of content doesn't do the shadowbox popup, instead it just redirect to the content. I have Shadowbox.init(shado...