jquery

jquery dropdown menu & swf

Hello, Im sure this questions has been asked a zilion times but im dire need of a solution for this example. I've built a jquery dropdown menu to float over a banner swf. for some reason in ie6 & ie7, the menu rolls behind the swf. i've tried the wmode=transparent in the code to load the flash file with no avail. i've also tried z-index...

Php jquery mouse over help

Now for some reason i can't get this code to work When i move the mouse over < tr id='$id'> i want the #remove_$id to be showing and then hidden when the mouse is moved off jQuery Code: $(function() { var id = this.id; $("tr").hover(function() { $("#remove_" + id).show(); }, function() { $("#remove_" + id).hide(); }); }); PH...

How to refresh <DIV>

How to refresh the auto refresh div inside the div theres is php The following code dont work? var refresh = setInterval(function() { $("#recent_activity").html(); }, 1); ...

Can JQuery UI Dialog remember its position between opening and closing

I have a JQuery dialog that I dynamically open and close. Everything is working fine except the position of the dialog is not remembered after it is closed and then reopened. The size is maintained but the position is not. I have tried hooking into the 'Open' event but it appears that the position is being reset by JQuery UI after I ma...

jQuery UI Datepicker on a qTip

I am trying to display a qTip containing a jQuery UI datepicker control (the version bundled with jQuery UI). However the datepicker's calendar opens behind the qTip. I tried manually setting the calendar's z-order from firebug, which does allow the calendar to open in front of the qTip. However, in this case clicking on the calendar has...

What's the best way to get the underlying DOM element by ID in jQuery?

This sounds like a really basic question. Let's say I have the following Form element <select id="mySelect"> ... Using jQuery, let's say I want to get it by ID so I can directly access one of its attributes like selectedIndex. I don't think I can use var selectedIndex = $("#mySelect").selectedIndex; because the # selector ret...

Why is jQuery so widely adopted versus other Javascript frameworks?

I manage a group of programmers. I do value my employees opinion but lately we've been divided as to which framework to use on web projects. I personally favor MooTools, but some of my team seems to want to migrate to jQuery because it is more widely adopted. That by itself is not enough for me to allow a migration. I have used both jQ...

How do I pass a database value into my form using JQuery?

I need to pass the return value from a php script back into my html form but because the page does not refresh, I have no idea how to get this value into the form. Can someone please help? Any ideas are welcome. This is my understanding of how JQuery works, well at least the way I am using it anyhow. The user fills in the form. The form...

Django + GWT or Jquery...

I have made a complex models structure in django. I had planned to render this structure using GWT, but with python the option to communicate whit it are: - using JSON and in this case I have to duplicate the models structure in javascript objects (see gwt tutorial). - python-gwt-rpc is a remote procedure call library compatible with g...

What syntax would I use to echo a value to an existing input box. Populate the box with the value

I have json array with a value that needs to be populated into an already existing input box. What syntax do I use inside my document.ready success function? Here is my array: {"rpt":"132","success":1,"message":"ok"} The html in my form is: <input type="hidden" id="rpt" value=""> My success function in the JQ script: success: fun...

is there a framework to build plugins for firefox, chrome, safari and IE at the same time?

I am trying to write a plugin for our company and want to use HTML, JS and CSS to build them. Is there a framework so I only have to build my plugins once and not have to build one for Firefox, one for Chrome, one for Safari and so on. Jetpack and Google Chromes extension engine seem very close to each other is there a framework or a com...

How to make it smoother with toggle ('slow')

I have the following code which works but it becomes a bit jumpy at the end of each toggle action. Will it be smoother if I toggle the paragraph? I am trying to get the paragraph, but I don't know how to do it. Can anyone help me please? Thanks in advance. <head> <style type="text/css"> body {width: 660px; margin: 0 auto; } .toppar...

Mozilla Jetpack: Why is the title and favicon of the window/tab not updating?

I'm playing around with jetpack to change the title (and ideally the favicon) of certain pages. Firebug is showing that the HTML of the page has been changed correctly but Firefox just won't update the title of the window and/or tab. This has to be possible, somehow, since Twitter Search is doing exactly that. It's updating the title...

A Selection Problem About Jquery

In the code below, when I click lnkSecc, I want checkboxes under the first div coming after lnkSecc which id is Grup to be selected. How can I do it? <td>Sipariş</td><td> <a href="#" id="lnkSecc" onclick="javascript:SelectSubCheckboxes(this);" >Seç/Kaldır</a> </td><td> <div id="Grup"> <table cellspacing="0" cellpadding="0" rules="all"...

Read more and read less mixed up.

I am trying to add read more / read less function to multi paragraph. I use the following HTML and jquery. However if I click different 'read more' link, it does not work properly. 'read more' stay 'read more', or read more and read less texts become confused. Could anyone tell me how to fix this? Thanks in advance. <div id="section...

how to preload more than one but not all images of a slideshow with jquery

I'd like to create a web based stop motion video player. Basically a slideshow that shows 2-4 images per second. Each image might be a maximum of 20KB. I don't want to preload all images in the slideshow as there might be thousands, however I need to preload more than just the next image in the show as this will not playback fast enough ...

What Jquery plugin is this?

When a user hover overs one of the items such as Research, Brand Strategy, Audience Engagement the background colour in the bottom section changes via a inline style. http://www.odopod.com/work/tags/strategy/ I was wondering, how it is done or which Jquery plugin they were using? Many thanks! ...

anonymous function passed from PHP and set specific `this` reference

I have a PHP class with a static function: <? echo view::getUserSelector() ?> Which outputs: <div id="user_selector"> <div class="user"> <h1>Username1</h1> <a href="javascript:selectUser(this);">select</a> </div> <div class="user"> <h1>Username2</h1> <a href="javascript:selectUser(this);">s...

How to select special attributes (prefix:name="") ?

Hi, how do I select special attributes like 'user:name' or 'city:id' using jQuery? <div user:name="Ropstah"></div> <span city:id="4"></div> Javascript //this works: alert($('div').attr("user:name")); // alerts 'Ropstah' //this doesn't work: alert($('div[user:name]').attr("user:name")); //error alert($('div[user\\:name]').attr("...

How to get the form parent of an input?

Hi, i need to get a reference to the FORM parent of an INPUT when I only have a reference to that INPUT. Is this possible with javascript (or else jQuery) ? function doSomething(element) { //element is input object //how to get reference to form? } This doesn't work: var form = $(element).parents('form:first'); alert($(form...