jquery

JQuery Datatable filter css

Hey guys, I have a really dumb question if you don't mind me to ask :( the thing is that I would like to customise the filter in my datatable to the search field similar to stackoverflow's but i've been struggling so much recently so not sure if i can do it. my datatable looks like the one from the example in the link below: link text...

Can't figure out jQuery ajax call parameters

I am learning jQuery and trying the following but the parameters are so foreign to me with all the embedded quotes I think that is my problem. Can someone explain the parameters and where quotes go and possibly rewrite my parameters line? (This is a live site to see the required parms). function AirportInfo() { var divToBeWorkedOn = '...

jQuery append while slideToggle

I am appending new data - $('#posts').append(data); But I want this new data to .slideToggle() while appending. How can it be done? ...

How to catch GMail auto-refresh

I wrote a userscript to highlight the current row in GMail (indicated by the arrow). Unfortunately the highlight will only stay until GMail Inbox is auto-refreshed, which happens quite often. Is there a way to catch that event so I could reapply the highlighting? I don't want to do it on timeout. There is another userscript that does tha...

jQuery getting just added by ajax element

$.post('includes/script.php', $(this).serialize(), function(data) { $('body').append(data); }); alert ($('#new').length) php script is <php echo "<div id="new">text</div>" ?> it alerts 0, so it can't see new div. How can you make it see new div? ...

how to clone the drag-event using jquery and jquery-ui.

i want to create a new '.b' div appendTo document.body, and it can dragable like its father, but i can not clone the drag event, how to do this, thanks this is my code : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <meta name="viewport" co...

Mysql PHP generated table: doesn't work with Tablesorter

Hi, I found this great Tablesorter plugin for jQuery but I can't make it work with my PHP generated table. Here's the code: <script type="text/javascript"> function table() { $("#container").load("table.php?randval="+Math.random()); } $(document).ready(function() { table(); $("table").tableso...

problem when cloning jQuery UI datepicker

I have a div in which there is a datepicker. I use something like this to clone it: mydiv = $('#someDiv'); // works fine so far mydiv.find('input.datefield').datepicker(); // clone without the events and insert newDiv = myDiv.clone(false).insertAfter(myDiv); // datepicker won't re-init if this class is present newDiv.find('.hadDatepi...

Flash player "now playing list" without interrupting current song

I am designing a website that plays music. I need a flash player that has or can handle a now playing list. The problem I am facing is that I cannot update the playlist without refreshing the player which means it will interrupt the song that is currently playing. I have trying with JW player in particular so far and have not been succes...

Get ID of a clicked parent ID

I try using evt.parent.attr("id") inside jsddm_close, but it doesn't work. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> var ddmenuitem = 0; function jsddm_open() { // When "help-menu" being click, I will toggle drop dow...

jQuery live() ... have to click twice to activate links?

I have the following bit of code, simply: $(function() { $('a.add-photos-link').live('click', function(e) { $(this).colorbox({ overlayClose: false, onComplete: function() { $('#add_photos').submit(function(e) { // more stuff to do e.preventDefault(); }); } }); e.prevent...

Remove dot line rectangle surrounded hyper-link after click event

Whenever a click event happen on a hyper-link, I will use JavaScript to toggle the display of a drop down menu. However, I realize there will be a dotted line rectangle surrounded the hyper-link still. May I know how I can explicitly remove the dotted line rectangle after the click? ...

how to loop through menu and remove class and then add class to current menu item

Hi all I have this menu structure that is used to navigate through content slider panels. <div id="menu"> <ul> <li><a href="#1" class="cross-link highlight">Bliss Fine Foods</a></li> <li><a href="#2" class="cross-link">Menus</a></li> <li><a href="#3" class="cross-link">Wines</a></li> <li><a href="#4" class="cross-l...

Help with animation

I've used the "FeatureList" Jquery Plugin to make my own content slider. The script can be found here: http://pastebin.com/7iyE5ADu Here is an exemplificative image to show what I'm triyng to achieve: http://i41.tinypic.com/6jkeq1.jpg Actually the slider add a "current" class to an item (in the example the squares 1,2 and 3) and for e...

can jquery change a jquery-element to a normal dom-element ,

cauz i have to use a normal dom-element , the dom-element is like this : document.getElementById('a') or document.createElement('div') so my mean is change $('#a') to document.getElementById('a') can jquery do this ?? thanks ...

How do I make the info window editable in the Google Maps API?

I would like to make the info window editable when i click on it. This is my code: <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> ...

.next() in jquery, will it function to move to the next <div id=id1></div>

Hello, I want to move to the next from can I use .next()? var i=0; $('#next').bind('click',function(){ $('#id'+i).next(); i++ }); <div style="width=150px;"> <div id=id1></div> <div id=id2></div> <div id=id3></div> <div id=id4></div> </div> Next Thanks Jean ...

how to make a div element edit-able ,like a textarea when i click..

this is my code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <meta name="viewport" content="width=device-width, user-scalable=no"> </head> <body> <style type="text/css" media="screen"> </style> <!--<div id="m...

jQuery AJAX tabs + PHP

Hi, seems like I'm stuck with jQuery tabs. I'm trying to pass selected tab name to some php script but is seems like it doesn't get any data. This is how tabs normally work without any response from server side: http://pastebin.com/KBxj7p5k And this is how I try to pass the the current tab name to the server: $(document).ready(functi...

Jquery Full calendar and dynamic event colors

Hi, I would like to to pass the colors for the events through my json events source for jquery fullcalendar, how do i achieve this ? ...