jquery

how to get mouse offset when I've scrolled down the page in IE, using JavaScript?

Hi All, OK...here goes. I am working on a bespoke intranet system which has a holiday calendar. This page is quite long and requires scrolling. This is where the problem comes in. If I scroll down the page in IE(company policy) then click a day(this is a table cell)...a pop-up(div) should show up where I clicked. Now it shows up, but ...

cancelling default touchmove event

i have created a little slide show in jQuery. On clicking-n-dragging your mouse it shows next/previous slide. I have added special code for dealing with iphone. But on iphone (safari) when i move my finger over the object the whole page is dragged left-right. here is the code var oldX = 0; $('#movieShow').bind('touchstar...

JQuery draggable - The opposide from connectToSortable

Hi, i can drop a draggable element into a sortable list. $( ".selector" ).draggable({ connectToSortable: '#myList' }); But how can i drop the element back? The sortout event works only with a second list :/ kind regards Peter EDIT: working example http://www.jsfiddle.net/V9Euk/114/ ...

JTemplates table + DataTables plugin Column sorting problem

Hi All, I have a HTML table to which I am binding data using the JTemplates script and then after the "processtemplate" line I am applying the datatables effect - ".dataTables();" Everything works fine - custom pagination,custom filtering etc. The only sore point is that I am unable to sort properly when I click a header. I am having ...

Jquery ajax post headers question (I think)

I think this is easy, but I'm not sure what the right syntax is. I am posting a form via JQuery ajax - you know $j.ajax({ type: "post", etc..... But I need to make sure the form is capable of being processed if Java is disabled. Is there a "header" in the ajax send that can be used to identify it as aposed to a normal post...

jquery plugin manipulation

I have a jquery plugin that looks like this, $.fn.customSelect = function() { // define defaults and override with options, if available // by extending the default settings, we don't modify the argument return this.each(function(i) { obj = $(this); obj.after("<div class=\"selectoptions_"+i+"\"> </div>"); obj.find('option').e...

Retrieving the text of a specified link tag not working

Hi guys, so I have a few links that have a class of 'button', and I am trying to get their text values with the jQuery .text() function, but it is returning nothing at the moment, code: $(document).ready(function() { var tester = $('a.test').text(); alert(tester); }); HTML: <a class='test'>TEST</a> any idea why this might not ...

swfupload wordpress

Hi. I am using the SWFUpload from http://www.anedix.com/data/file/news/realname/swfupload-php-example-v1_4.zip and want to integrate this into my wordpress plugin. In the example file there are JS files that need to be referenced. I have enqueued these files in my plugin and they seems to be picked up in the header. function add_...

How to fetch textbox array value using javascript/jquery

I have an array of text inputs like this: <input type="textbox" name="mobileno[]"><br> <input type="textbox" name="mobileno[]"><br> <input type="textbox" name="mobileno[]"><br> They are generated at run time using an "add more" button. Is there a way I can use jQuery to fetch the text input value and pass it in ajax request? I have...

jQuery not animating links.

Hi, I am trying to get the fade effect of my image slider plugin to work correctly with links. At the moment the slider fades correctly however the links are failing to change. The first image is supposed to link to Google.com & the second link is supposed to link to Hotmail.com however both of them are linking to Hotmail.com only (the ...

Setting CSS Expression using $.css() in JQuery

Hello all I'm trying to set a css expression for an attribute for an element as follows. var scrollTopExpr = '$(document).scrollTop()'; var expr = "expression(eval(" + scrollTopExpr + "))"; $(this).css("top", expr); But i'm getting "Invalid Argument" as an error. Any ideas? ...

Prototype and jquery plugins not working together

Hi Good people, Please help me i have lost 1.5 days trying to fix this, i have looked for various solutions on the internet and none seems to work,atleast for me.I have been using jQuery.noConflict(); var $j = jQuery; to avoid jquery conflicting with other libraries successfully, but now it wont work with prototype.I am pulling hairs...

comments on selected text... admin functionality

Hi, I have scenario in which the end-user is presented with a paragraph of text. At the admin end, admin can select any portion of text out of that paragraph and attach some tag to it along with its description. At user's end, that paragraph is then shown as is, but highlighting that particular portion which admin had "tagged". Users ca...

How to control Jquery Ajax Reponse.

Hi, How to control Jquery Ajax Reponse. E.g. I want to fire multiple ajax request but Second ajax request will start when after getting first ajax reponse and so on.. Is there is any mechanisum to handle this. ...

Jquery - show/hide/toggle multiple DIVs

Hello I am looking to achieve the following: Display 5 images in a row Click on an image to show content related to that image Click another image to show that related content, and hide the previous content Here is my markup for the images: <div id="maps"> <div class="map-box"><h2>London &amp; South East</h2><a href="#"><img s...

How to use this code as Unobtrusively?

How to use this code as Unobtrusively? To keep content and Behaviour separate. <a href="nojavascript.html" onclick="functionName(); return false;" onkeypress="functionName(); return false;">Link text</a> ...

iframe content from javascript

hi everybody! i need to get iframe content in javascript or jquery, but main problem is that iframe src is other domain web site, how can i do it? ...

cross domain iframe adjust height automatically

I searched over google as well as few answers from stackoverflow but none of teh solution worked for me. Is there any working solution available , Thanks you very much Rohit. ...

jquery: get parent element from ajax call

How to make this code work? I don't see how i can reach div from within $.get callback. $("<div/>", { text: "some text", click: function (e) { $.get("bar.php", function(data) { $(this).text(data); // doesn't work }); } }).appendTo("body"); ...

How to show image thumb from input type file without upload, or with

How to show image thumb from input type file without upload, or with I need to create file preview, when user select file in input type=file, i found, that ajax don't support file upload, so - maybe it is possible to show thumbs _without_actual_upload_ in js? Jquery/simple js ...