jquery

CSS Jquery - When I change background color the text becomes fuzzy in IE6 ?

Hey guys I was playing around with this script of auto scrolling text. You can check out the code here: http://jqueryfordesigners.com/simple-jquery-spy-effect/ Then I changed the background color to white - and all the text started looking fuzzy and messed up - If I change it to any light color - it appears all messy. This is the por...

Html page mini map or map overview

I have a big html page, like 4000x6000 px with images and text. I'd like to have something like a map overview of this page in a small div. A scaled version of the whole page which i could use to navigate. Does anyone know some js script or example how to do that? Thanks. ...

Jquery Change event for input and select elements

Hello all, I am trying to alert something when ever a drop down box changes and when ever something is typed into an input. I don't think I can use change for input fields? What would you use for input fields? Also, what about input fields of type file? Same thing. Here is what I have so far and its not working: $('input#wrapper, s...

Dynamic change of class of <TR> with Jquery

Hi all, This is my first post, and first please forgive me for my poor english. I have a problem I really can't fix: I have a <table> of questions, the first question is visible (class:visible), the others are hidden (class:hidden) $(document).ready(function(){ $('.hidden').hide(); When people click on the first q...

How to evaluate json member using variable ?

Hi i've got a problem evaluating json. My goal is to insert json member value to a function variable, take a look at this function func_load_session(svar){ var id = ''; $.getJSON('data/session.php?load='+svar, function(json){ eval('id = json.'+svar); }); return id; } this code i load session from php file that i've store befor...

JQuery uploadify plugin not working

Hello, I first used primefaces FileUpload component and it didn't work. Always gave "HTTP Error". So i thought there is some bug with this component and went to plain old JQuery and tried using uploadify. But still i get the same error. I am using Container Managed Security. Is this the reason for not working properly? This is my scrip...

Adding action in component in CakePHP

Hi, I'm trying to create a CakePHP component for JQuery datatables in server-side mode. I've got the datatable working but I want to componentize it so I can reuse it in multiple controllers. When I include my new component in a controller I want it to create a new action on that controller called tabledata to handle the XHR queries f...

Using jquery append() in <head> (in a function/class)

I want to use the append() function from inside the <head>, in a function to be specific, like so: function custom_img(src_img) { $("div").append("<img src='"+src_img+"'>"); } var myimg = new custom_img("test.jpg"); This is a quick example that I just wrote out. I want my function to make a new image like that every time I create a n...

Jquery - intercept links clicked inside an iframe

Hi, I am trying to intercept links clicked on a page including those inside an iframe. This is the code that I have but it is not working. Any ideas what I need to do? $("#container").delegate('a', 'click', function(e){ //do stuff } Container is the id of the div just inside the iframe. Thanks in advance for any advice ...

jQuery Suspected Naming Convention Problem

Hi all, I'm having a problem with this jQuery function, the portion of the function that renames the id, class and name of the dropdown only works for the first dropdown, subsequent ones do not work, any ideas? I suspect it may have something to do with naming convention as in cat.parent_id but it is required for asp.net mvc model bind...

How do I simulate a scrollbar click with jQuery?

How do I simulate a scrollbar click with jQuery? So, if a user clicks on a div that says "scroll down," it'll be the exact same behavior as if he/she clicked on the down arrow of the browser's scrollbar. Using the current browser's behavior would be optimal, vs. doing something like $.browser.scrolldown(200,'fast'). Something like $...

How to do auto complete in city textbox

I have state and city dropdown list in asp.net 3.5 applicattion . but i want city as a textbox when i type keyword then autocomplete mode should be occour . I want to implement it through juery could u please send code for this. Thanks Manoj ...

Jquery click event assignment not working in Firefox

Hi all I'm assigning a click event to a bunch of anchors by class name, and it works in all browsers except Firefox, here is the JS: var click_addthis = function(e, href) { if (!e) { var e = window.event; } e.cancelBubble = true; if (e.stopPropagation) e.stopPropagation(); window.open(href, "Share It", null); ...

jquery select this parent from inside image.

I have the following code, i'm trying to make a loader appear then the image fade in once it is loaded. I want to make the function reusable so i can just add an image to a div with the loader id and it will work. I cant figure out how to select the parent loader div from inside the image. the commented line works fine but, i think tha...

Problems with jQuery .not() and the draggable ui

Okay, when something is draggable, it is given the class .ui-draggable And when something is disabled from being draggable .ui-draggable-disabled I want to select only items that are draggable. I'm using the following selector, but it doesn't seem to work. My disabled draggable items are still doing something on hover. Any ideas why? ...

change background color with change in mouse position

I was wondering if it is possible to set background-color with help of mouse coordinates. What i have is: I have a DIV-A which is draggable and some other divs which are droppable. What i need is : I need to highlight other divs on my page which are droppable, whenever my DIV-A passes over them. What i have is mouse coordinates, is i...

HTML5, Firefox playing duplicate videos after jQuery insert.

Hello, I've extracted the following from a project we are working on: http://www.bridgedev1.com/videotest.html This plays an OGV or M4V video depending on the browser, as one would expect. The page is loaded, then the video inserved using jQuery. This works perfectly in Safari and Chrome. The problem is that in Firefox (3.6.3). When...

jQuery, get datas in AJAX (done) then, display them as star (error)

Hello, I'm using a star rating, 100% working except when i insert values with javascript : EXAMPLE : http://www.gamer-certified.fr/test.html <script type="text/javascript"> jQuery(document).ready(function() { jQuery.ajax({ type: "get", dataType: "jsonp", url: "http://www.gamer-certified.fr/export/widget.php", ...

Twitter API count parameter

I've got a feeling this is going to be something really simple, but anyway. I've got some code that pulls in my latest Twitter statuses - it's pretty much the standard code everyone is using. However, even though the URL I'm using has the count parameter added...it's not limiting the request to 5 statuses. The code works, well, in so muc...

Images not loading online but works when I try it offline (local), why is this?

I am using localgetstorage and setstorage to load a list of links and show them as in a slideshow. The problem is that when I preview it on my PC it works, as soon as I try to use the page in my server online it won't work. Have I done something wrong? Here's a link: http://hem.bredband.net/noor/bildspelet/bildspelet.html It is very b...