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...
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.
...
Can someone tell me the best way to use Grid layout to set the buttons of my Calculator
...
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?
...
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..
...
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/...
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.
...
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(){
...
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...
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...
...
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...
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...
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...
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
...
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
...
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?
...
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 ...
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!
...
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!
...
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") {
...