jquery

jquery ui get id of child element of dragged element, when dropped

I've read through many of the drag and drop threads on SO and i haven't found one that tells me how to get the child element id of the dragged element, when the dragged element is dropped. For example if you have <div id='drag'> <img id="something"/>//how do i get this id when #drag is dropped? </div> <div id='drop'> </div> and t...

JQuery get border attribute of image (not css)

I'm trying at this: var cur_border = $('id_grid_pic_'+cur_id).attr('border'); alert(cur_border); But the alert sends back "object". I am wanting to get the value of the border=1 attribute of an image. ...

Grid layout using Javascript for a calculator

Can someone tell me the best way to use Grid layout to set the buttons of my Calculator ...

IE7 Animation with PNG transparency

Hi guys and gals I've made a jQuery animation, which fades through some logoes that all uses PNG transparency. In IE the transparency disappears. I've tried unitpngfix.js but it doesn't work. The site is: http://tinyurl.com/yc5wdpr Note: Try using Firefox to see the wanted effect. Can any of you, see what the problem is? ...

jquery timer plugin

the link specified below is a jquery timer plugin. http://keith-wood.name/countdown.html Also i use the following to start a timer $('#timer').countdown({until: 12,compact: true, description: ' to Go'}); My question is how do i deduce that the timer has reached 00:00:00 or the time given has elapsed Thanks.. ...

Redirecting Page(php) using Jquery Timer

i have tried this code to redirect a php page.but it s not working .can any body please tell me the solution(is there any changes needed in the body part of parent page?).... / / here am pasting the code(header part) / <script type="text/javascript" src="jquery/jquery-latest.pack.js"></script> <script type="text/javascript" src="jquery/...

Is it possible to use jsp variable value to initialize JQUERY variable?

I have some questions which are as follows: How can I use the JSP variable/array in JQUERY code? Here what ever the JQUERY code we have is stored in separate .js file and that file is included in the JSP file. Actually I want to initialize the JQUERY array with the JSP variable. So please guide me to achieve this task. ...

Use a jquery UI slider to control the resizing of a youtube video.

Hi, I have a resizable div with the video width and height 100% of the div. I can resize it using the corners but I want to control this with a ui slider and maintain the "aspectRatio: 16/9" that .resizable() provides. This is what I have so far <script> $(function(){ var slide_int = null; function update_slider(){ ...

Anobody succeeded in using ICEFaces with jQuery?

Basically jquery is usable with IceFaces. Then only problem arises when partial updates of the page are used. For example you have a panelgroup where a jquery datepicker element (jquery UI datepicker plugin) is used. If the panelGroup is visible from the beginning it's no problem. The jquery call to jQuery(".datepicker").datepick...

jQuery Single File Upload using HTML Input within a Dialog Boxes

Is there a simple way to upload a single file through HTML input type file with JQuery UI's dialog box using $.post? Hope this makes sense... ...

How do you make the script wait for the status of an Ajax get request before continuing?

Basically what I'm doing is checking for the existence of an object, if it's not found, the script will try to load the source file using getScript. I only want to check this once though then return true or false to the function that calls fetch() fetch:function(obj){ ... isReady = false; $.getScript(obj.srcFile,funct...

Multiple datepicker problem with same ID

hi, here is my problem: <input type="text" class="datepick1" id="date" /> <input type="text" class="datepick2" id="date" /> <input type="text" class="datepick3" id="date" /> then i apply datepicker on dom (by classname) $('.datepick1').datepicker(); $('.datepick2').datepicker(); $('.datepick3').datepicker(); => the three dom have d...

Jquery inside Facebox

I have facebox setup and it works. when I load an external page with a tab based navigation (JQuery too) the modal works but the nav doesnt. If it isnt clear I actually want the tabs to be inside the lightbox. And I also have php/mysql running inside the lightbox if that can change anything. Thanks for any help. Edit=> Sorry about...

Why doesn't the jQuery .html() method work with custom tags in IE8?

I have the following html code: <mytag> Just Some Text </mytag> And I have this jQuery command $('mytag').each(function () { alert($(this).html()); }); In all browsers except IE I'm getting the inner HTML, in IE I'm not. Anyone can shed any light on this mystery? I've tested this with IE8, Mozilla, Opera, Chrome and Safari ...

Jquery treeview hide control if no branches available

Hi, I am using jquery treeview with the control option to expand and collapse the branches. I would like to hide this if there is no branches which expand / collapse (i.e. no plus signs). Does anyone know of a way of doing this? Thanks ...

Struts2 jQuery plugin: trigger link on double click

I would like links to be trigger on double click. Something simple like this: <sj:a href="%{link}" targets="target" ondblclick="javascript: return true;" onclick="javascript: return false;">Bližnjica</sj:a> does not work (I guess because this is not a submit). Maybe some JS can do that? ...

Getting elements children with certain tag jQuery

I'm trying to get all the input elements from a certain form from jQuery by providing only the name of the form and only knowing that those wanted fields are input elements. Let's say: <form action='#' id='formId'> <input id='name' /> <input id='surname'/> </form> How do I access them individually with jQuery? I tried something like ...

Combine hover and click functions (jQuery) ?

Can hover and click functions be combined into one, so for example: click: $('#target').click(function() { // common operation }); hover: $('#target').hover(function () { // common operation }); can they be combined into one function? Thanks! ...

Bind event to a div appearing

Can I create an event so I can execute some javascript whenever an element with a specific ID becomes visible or appears on the page? The element comes from a remote resource (so isn't in MY html code but appears on page load) and I'd like some code to run when it appears (and only if it appears, it may not appear every load). Thanks! ...

[Google Maps] Trouble with invalid argument when switching jQueryUI based tabs

Here's a page with the issue To reproduce the error, using IE - click the directions tab, then any of the others. What I'm trying to do is this: On page load, do nothing really. However, when the directions tab loads - setup the map. Like so: $('#tabs').bind('tabsshow', function(event, ui) { if (ui.panel.id == "tabs-5") { ...