jquery

using javascript ondrop to add to a page rather than replace-tab in firefox?

I have various html links on a page that I want to drag into another page/window using the ondrop event. While I expect to modify the objects being created on the new page, the example below is likely good enough to show what I am after. How do I prevent firefox from simply loading the URL I am dropping in the page? I was hoping to us...

e.preventDefault() is not working in IE6

e.preventDefault() is not working in my IE6. Could you please provide some code to make it work in IE too? I am using this function not anchor tag but on an image tag, so whenever somebody clicks on an image he should be ablt o drag over the image ...

Help please. make the manual slideshow repeatable?

Any one help please the webpage is: http://weblink.computersforpeople.info/users/1/properties/518/images/2869 How can I make it repeatable, I mean when I click the next button on the last photo, it can go to the first one again. have asked before, but still couldn't solve. could someone help please. Many thanks!!! ...

I have an issue when I drag a part of an image to select its parts

hello gusys I am developing a custom image crop script, but I couldn't able to drag over the image and I could solve this issue by using e.preventDefault (); but it doesn't work in IE6, so how I can drag over an image in IE6, $('#img').mousedown(function(e) { e.preventDefault(); //my code goes here }) works in all browsers exce...

whats the best way to pass a full date time into a URL in asp.net mvc

i have a full datetime object that i need to pass in as a parameter in a URL. what is the best way to do this so it fully can get converted to a csharp DateTime object and not lose any precision ? ...

Cross domain basic authentication using jQuery

Hi, Here is my problem: I'm developing a system that can be polled to retrieve dynamic data. It's in Grails, and when I do a request on a certain controller action, say "http://localhost:8080/foo/bar", a JSON list is returned containing the latest data. For added security and functionality, I protected my page using Spring Security (Gr...

Converting adblock detecting javascript to jQuery

I got this ad blocking code from http://adblockdetector.com/ (function () { var _ab = false; var _af = undefined; var _am = undefined; function detect_ab() { _af = document.createElement("IFRAME"); _am = document.createElement("IMG"); _af.id = '_afd'; _af.src = '/adimages/'; _af.style.display = 'block'; _af.styl...

Jquery continuous ajax request

Let's say initially I have an image loaded in my view. Every now and then, I want that image to change via ajax with an interval of 10 sec. How can I do that? Thanks. ...

Having trouble passing a variable in Jquery function

Hi, I have this function function procData(a) { $('#loading' + a).show(); $.post("ajax.php?talk=" + a, { slot: $('#slot' + a).val() }, function (response) { $('#talkdesc' + a).fadeOut(); setTimeout("finishAjax('talkdesc', a, '" + escape(response) + "')", 400); }); } function finishAjax(id, a, res...

Help using the jQuery BBQ plug-in with forms

Hi, I have been trying to figure out how to use the jQuery BBQ plug-in. I have been able to add it to my site by copying the code from the site but I'm seeing that if I have a form in one of my tabs, I can't post any of the results successfully. Has anyone used this plug-in and gotten used to its functionality? I need help figuring ou...

Hide content after 3 paragraphs <p>

Hi all, Working with an API that spits out the contents in p tags ... but it gets too long. Thinking of hiding them upon reaching a limit of 400 characters, but that's not a good idea since there is a possibility of it cutting through a HTML tag. So I'm trying to hide the rest of the content after 3 paragraphs instead and with a text ...

jQuery: IE8 bug with animated show()?

Hi, I was trying out the animated .show(100) of jQuery. The animation works fine in both Firefox and IE8. However, in IE8, the rendered fonts (when animation is used) are thinner than the original font. I retried using .show(), now without the animation, and the rendered text was normal. here's the jQuery code that handles the animatio...

Only fire an event once?

How do I control only firing an event once? Actually, a quick google appears to elude to the fact that .one helps.. ...

jQuery liveFilter combined with category filter

Hi – I was wondering if it would be possible to use liveFilter in conjunction with a category filter? The code below will filter by Typing OR by Category selection. I would like to be able to search by BOTH. In other words, if the ‘action’ category is selected – liveFilter typing would continue to narrow the search within the ‘action’ ca...

How can the JQuery bind() plugin help me

Hi all, I am new to JQuery I am writing a simple data validation using JQuery. Here is the HTML part: <input type="text" id="testing"> This is the JQuery part: $(document).ready(function(){ $("#testing").click(function(){ // doing something; }); $("#testing").change(function(){ // doing something; }); $...

Jtemplate Accessibility question

Hi all the Accessibility experts, I use jtemplate in my website and have issue to pass w3c Web Accessibility. The issue is that jtemplate (well, not only jtemplate but most of other client template) uses hidden <textarea> as the template holder. And according to W3c Accessibility standard, every textbox/textarea required an associated l...

Is Plain vanilla Javascript better than using frameworks like jQuery/mootools ?

Hi All, I am wondering if it is a good idea to rely on frameworks like jQuery/mootools or should we just use plain javascript ? Apart from avoiding the re-invention of wheel, do they add any specific value ? Since the frameworks are open to public, can there be possibility of exploitation of any security holes that might appear(of cou...

Jquery UI Layout - Resize while resizing?

Hi, in this example http://layout.jquery-dev.net/demos/toggle_alternate_layouts.html you can see that the resize is "on the fly". I think it is the option "resizeWhileDragging: true" but it dont work in my example -> http://jsfiddle.net/FrbW8/28/ My Problem is that i cant find any documentation about his (myabe i am too blind :) ) ->...

jQuery - Post array of multiple checkbox values and title to php

I refer to this page: http://stackoverflow.com/questions/1557273/jquery-post-array-of-multiple-checkbox-values-to-php <input type="checkbox" class="box" value="blue" title="A" /> <input type="checkbox" class="box" value="red" title="B" /> <input type="checkbox" class="box" value="white" title="C"/> $('#include').click(function(){ ...

Jquery ajax with multiple modal windows

Hi, I am using a Struts application with JQuery as Javascript library. I have a JSP with a button that invokes a Javascript method that fires an AJAX request to an Action. (Action 1) The Action returns a JSP page that is displayed within a modal window. Now, this JSP page has a button that invokes another action (Action 2) that retur...