jquery

jquery + firefox: hotkey problem

hi, i've recently implemented jQuery UI into my testcase and experiecend some strange behaviour with firefox. it seems like something in jQuery (i'm only using the dialog widget currently) is blocking global hotkeys from firefox (v3.54). eg. ctrl-R for refresh fails to work. anyone who knows about this/how to fix it? thx, fuxi ...

Jquery UI tabs abort does not work.

Hi I have a jquery ui 1.7 tab and I am trying to "abort" the request. so I have this in my document rdy. $.ajaxSetup( { 'timeout': 10000, 'error': function errorCallback() { jAlert('The server is acting a bit slow. Your request has timed out. Please try again.', 'Server Ti...

Working example for JavaScriptResult in asp.net mvc

Can somebody provide a working example of JavaScriptResult in asp.net mvc. I understand that it returns javascript which is then executed on the client side and also that the content type of the response is set to text/javascript. I need some working example to see this thing in action. ...

jQuery parent()

Hi Guys I need some help with parent() in jQuery. I have a list of images, each followed by a form, where the user can perform some actions, like changing the description of the image etc. <div id='items_list' class='items_list' > <div id='item_209' class='item_details' > <form action='actions_dispatch2.php' method='...

prevent default for all links inside a div using jquery

Hi, I have a div that looks like: <div id="blah"> <a href="#" >hello</a> <a href="#"> world</a></div> I want to disable all the links inside this div using e.preventDefault(); How can I select all href tags that are inside the div id="blah" using jquery? ...

Localization Helper, How to retrieve values from javascript?

Hello guys, I used localization helper from Matt Hawley. It's really working great. I have a problem though in getting the values on javascripts/jquery. I can't retrieve the resources text using this: example: alert('<%=Html.Resource(\"Strings,SomeKey\")%>'); Any help is greatly appreciated. Best ...

JqGrid and jquery.UI themes load slowly

HI All, I'm applying a jquery.UI theme to the standard jqgrid but am finding that the page renders very very slowly. I have tested this in IE6, IE7 and FF. Once I remove the following reference, the page renders quickly again. <link rel="stylesheet" type="text/css" href="../css/redmond/jquery-ui-1.7.2.custom.css"/> Does anyone have...

javascript function that returns two string values, how to do this neatly?

I need to store values that would look like this: "somekey": "value1", "value2" So I want to create a function that will take in "somekey", and it will return "value1", "value2". It doesn't have to be a function, it could easily be a collection that I initialize in my javascript file and then reference like: var v1 = blah("somekey")....

How to change the font size in jqGrid ?

Hi I am using jqGrid. It is already running with the ui-lightness. How do I change the font size inside the grid? Please advise. Thank you. ...

How to capture DOM modifications with JavaScript and send them to a PHP server

I've been asked to create a web UI that allows a user to modify a specific section of the HTML DOM and then POST the modifications back to the server for storage. The modification should be done via drag'n'drop, with my tool of choice being jQuery. The server will be PHP, but written by someone else since I'm not a PHP programmer. The ...

jquery: tricky selector question

hi i'm having this markup: <div id="main"> <div nam="item">1</div> <div nam="item">2</div> <div> <div nam="item">3</div> <div nam="item">4</div> <div nam="item">5</div> </div> <div nam="item">6</div> <div nam="item">7</div> </div> i'm now selecting only the direct child ...

how do i select multiple records for jqgrid?

Hi, i know how to delete records for jqgrid, but i realise i cannot select at any one time more than 1 row for deletion. is it even possible to select multiple rows for deletion? EDIT: found the answer http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3Aoptions multiselect: true ...

How do you make a picture follow your mouse pointer with jquery?

Hi, I find drag-and-drop difficult (you know, keeping the mouse button depressed while moving), and want to offer a 'select and drop' where a user clicks on an icon and clicks again on the drawing-plate to drop the corresponding element (a picture). How do you do that with jquery? Thanks. Edit: I have two divs, an icons plate to sele...

How to get a DOM Element from a JQuery Selector

I'm having an impossibly hard time finding out to get the actual DOMElement from a jquery selector. Sample Code: <input type="checkbox" id="bob" /> var checkbox = $("#bob").click(function() { //some code } ) and in another piece of code I'm trying to determine the checked value of the checkbox. if ( checkbox.eq(0).SomeMethodToG...

jQuery POST and GET methods: Construct URL or use data param?

I am using the post and get methods for Ajax calls, and have a general question. There are two methods I've seen people use on the web: Construct the URL and parameters by hand Use the data parameter Both approaches work. I've included them below: // Construct the POST URL by hand queryStringDelimiter = "?"; settings.queryParam =...

jQuery DataTables plugin filtering

Possible Duplicate: Jquery plugin DataTables, custom filtering Hi all. How can I set a custom filter in my code to remove accents from the table? I am using DataTables plugin (http://www.datatables.net/) ...

jQuery callback not waiting on fadeOut

It seems to me the following code should produce these results: mademoiselle demoiselle mesdemoiselles Instead, as "ma" fades out, "mes" fades in making the sequence: mademoiselle madesdemoiselles mesdemoiselles The code: <span class="remove">ma</span><span class="add">mes</span>demoiselle<span class="add">s</span> $(document).re...

Changing order of class attributes in <em> tags

I have several tags in my page that look like this: <em class="itemx item### itemy"> text </em> where "#" are dynamic numbers. I want to change it to <em class="itemx item### itemy itemz"> text </em> I've tried the following, but to no avail: $(".itemx item### itemy").replaceWith("<em class='itemx item### itemy itemz'>" + $("....

JQuery: Google Maps "bounce" using JQuery Bounce package

Does anyone know of a way to make a Google Maps marker "bounce" using JQuery Bounce package? ...

How to minify jquery files?

Hi I am using jquery and I got a couple plugins that don't offer a minified version. So I want to take the full version and minfiy it but all the sites I have found that you input your javascript and it minifies it breaks the plugin. Like it must strip something out because I get a syntax error. So anyone got a good one that I can u...