jquery

jquery lightbox on dynamic image

I would like to use lightbox (pirobox) for dynamically generated images. I use standard method - load css, js files and add selector on element, but it doesnt work. Have you any experiencies with it? I Also try $('.pirobox').bind('click', function() { $('.pirobox').piroBox({ my_speed: 400, bg_alpha: 0.3, slideSho...

JSON undefined parsererror

Im trying to run a sipmle ASP.NET 2 Webmethod with JSON this is my code : <head> <title></title> <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.3.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(document).ready(function () { $("#btGetDate").click(function () { $.a...

Using GWT widgets as like jQuery Plugins?

Can i use Google GWT Widgets like a jQuery Plugins? For example: Gwt('#a_css_selector').mywidget({some:'prefs'}); ...

JQuery Checkbox issue

Hello, I have dynamic page. There are multiple checkboxes & I am using this script to show its respected <div> only if checkbox is checked. $(document).ready(function() { $("#checkbox$").click(function() { if (this.checked) { $('#appear_div$').fadeIn('slow'); } el...

Print stylesheet precedence

Hi, I have inherited some legacy code which generates a ton of inline styles. The client requires a print stylesheet which i am not sure will override the inline styles. Assume not. Would there be a way with jQuery to rip out all the inline styles whilst preserving the HTML structure prior to the print CSS being applied? ...

jquery only hover outside child element

HI, I am trying to hide a child div when you hover on the parent div outside the child, any ideas how I can do this using jquery? At the moment using the hover function, it hides the child div when I hover anywhere over the parent, including when over the child. ...

datepicker problem not working with master page..??

Scrpit starts here..!! $(document).ready(function () { $("#myButton").click(function () { var textDate = $('#<%= Me.txtLicenceExpiryDate.ClientID %>'); textDate.datepicker(); textDate.datepicker("show"); }); }); HTML <td class="validatorcolumn">&nbsp;</td> <td class="datacolumn"> <asp:L...

iPhone Mobile Safari: Force keyboard open

This is an HTML / CSS / JS (jQuery) iPad app. I've got a button, that slides down an input form. I'd like to focus the user on the input, and then launch the keyboard. This is what I'm working with, but doesn't work: $('#myFormField').focus(); This does indeed focus the input, but fails to launch the keyboard. Is it just not possibl...

Problem passing variable from javascript to controller Codeigniter

I'm struggling with this and just can't seem to make it work. Need to pass the current users date (cdate) variable to my controller and in spite my alert windows shows the correct value, that value never reaches the controller. Here's the javascript code: $(document).ready(function() { $('#submit').click(function() { v...

how to validate multiple input type files with jquery validator plugin

Hello All, I am using jQuery validator plugin, i stuck in a problem during validating images, i have 4 input type file to upload image (where one is on page and 3 are coming dynamically)regarding one movie, uploading image is not essential but, if someone wants to upload then it should be with valid extension means only jpg.jpeg and ...

Jeditable edit without losing styles during editing?

Is it possible to keep the styles whilst editing, kind of like a rich text editor? It currently changes to a plaintext editor but it would be nice if you could just press an edit button and it allows you to (truly) edit in-line ...

How Do I can Play with Both videos and Images with Pause and Play Control using jQuery?

Hi, I am searching a jQuery plugin which can help me to implement the Gallery Like jQuery paginated gallery with one button for pause and play. I have had to play vidoes and images Gallery Show. So when I vidoe reached it should be played by its original time and then it goes to image after ending movie. Thanks Yasir ...

Using google map GDirections with address

I need to use the google map directions to show the directions between two addresses. How can i show the google map using addresses? Also, I have the source and destination addresses (no latitude and longitude), how can I show the directions between the address using jquery? ...

methods available for draggable

I have dragged a node from TreeView and dropped it by alerting the Text of the node as alert(ui.draggable.text()); How will I get the Value of the dragged node ? What all methods are there for draggable other than text() ? HTML : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tr...

Popup on exiting the page Javascript jQuery

Hi, I would like to display a feed back pop-up to the user if he/she exits (close the window/close the tab) the page. Same should work if he/she clicks on third party links (any other host) on the page as well but not the self links (belong to the same host). I have tried window.onbeforeunload which seems to work on IE exit only. Cou...

jQuery - How to convert string from textbox to bytes?

Hi all, i need to convert a string from a text field to bytes. How can i do that? Reason: The text on the textbox will be sent by SMS to the client, and I've limited the text to 160chars but if i put special chars like @€£‰¶÷‰‰€£@ it will be larger than 256 bytes (that's the size of an sms). So i need to remove from 256 the converted ...

Delete duplicate entries from a select box

How would I, using jQuery, remove the dups <option value="English">English</option> <option value="English">English</option> <option value="English">English</option> <option value="Geology">Geology</option> <option value="Geology">Geology</option> <option value="Information Technology">Inf...

Jquery Draggable UI overrides normal browser behavior for HTML elements inside draggable-enabled div

I have a jquery ui draggable div, and the HTML contents do not behave normally because of the draggable. <div id="popup"> <!-- this popup is draggable --> This text is not selectable. When I try to select it, the popup div is dragged. <div style="overflow:auto; height:50px"> Lots of text here, vertical scrollbar appears...

hidden field not updating Ajax.BeginForm Html.Hidden

When I submit my form using Ajax.BeginFrom everything seems to work and update fine but the ID. The ID is calculated in the server and send back to the partial page but the page is not updating the hidden field ID. I know the ajax works because the messages generated in the server get displayed in the page so there's something I can't un...

Saving changes in SlickGrid

HI, I'm looking at SlickGrid and I can see example on how to edit the cell, however do I save these changes. I have yet to find an example that tells me how to do this. ...