I'm using this code in my site and I was wondering how I could add a delay to the mouseleave function
$target.mouseenter(function(e){
var $tooltip=$("#"+this._tipid)
ddimgtooltip.showbox($, $tooltip, e)
})
$target.mouseleave(function(e){
var $tooltip=$("#"+this._tipid)...
Hi, I'm working with jstree and I would like to know how to hide/show nodes if possible. I gave the list items a "cat" id to select them with jquery but this doesn't work.
Here's the code.
html:
<div class="resultsContent">
<div class="demo" id="demo_1">
<ul>
{% for ipc in ipcs %}
{% ifequal ipc.back_list 1 %}...
Hi,
Could you please tell me the difference between using asp.net validator controls vs JQuery for front end validation? What happens if the user turns off javascript on their browser?
Thank you..
...
Hi;
In an admin panel made with php, what is the best way for paging? ClientSide (jquery) or Serverside ?
...
I'm trying to call a jQuery popup window function from within an iframe.
In my external .js which is included in my parent frame I have this:
(function($){
$.fn.popupWindow = function(instanceSettings){
return this.each(function(){
$(this).click(function(){
$.fn.popupWindow.defaultSettings = {
...
I've got an issue where I'm pulling in 36 images into a list, and then displaying them in an image carousel (using jcarousel)
They are not huge in size, maybe 12-15kb each, but for about 1-2 seconds on the page load they all display vertically down the page.
Here is the link: http://se.mbs.co (this is a test site, so some of the HTML n...
I'm using Javascript to create a textarea that I want to be a ckeditor. My code is something like
var html = '<textarea name="text"></textarea>';
$('#mydiv').append(html);
var textareas = document.getElementsByTagName('textarea');
// Could be more than one textarea
for (i = 0; i<textareas.lenght; i++) {
var textarea = texta...
I am using jquery ui autocomplete widget. I want to add formatting to some part of dropdown items, but when I add html, widget escapes it. How can I add html to jquery ui autocomplete widget dropdown items?
...
I have a select element.
This element is looped over using jquery,
any options that are :selected are added to one list(lista)
any options that are :not(':selected') are added to another (listb)
these lists follow the structure of
<div id="lista">
<div>1st selected option text <div class="button"></div></div>
<div>2nd selected o...
How do I make a function wait until all jquery ajax requests are done inside another function?
In short, I need to wait for all ajax requests to be done before i execute the next. But how?
...
Was recently using some code along the lines of
$("#divMenuContainer:visible").hide("explode");
However after some time spent trying to get it to work I realized my selector was referencing a div that didnt exist.
The result of the query was simply that it didn’t execute.
Obviously this is by design, could anyone explain the logic...
I've been trying to hide and show the imgAreaSelect selection box depending on whether a checkbox is checked or not.
I've tried:
var ias = $('#photo').imgAreaSelect({ instance: true });
ias.setOptions({ show: false });
but it doesn't seem to do anything.
I have had to resort to:
$('div.imgareaselect-selection').hide();
...
Hi guys,
I am trying to parse a JSON string using PHP, the JSON gets sent to the PHP file using jQuery $.ajax in this format, [{"value":"59"},{"value":"7"},{"value":"46"}] , but for some odd reason I keep getting this error "Invalid argument supplied for foreach()", here is my PHP and jQuery code,
jQuery:
$(".systems").each( funct...
I need to produce all 255/256 color variations of a given color, is there some advice to start, or a jQuery lib to use?
Thanks in advance.
...
My understanding: in Javascript objects and arrays get passed as references not values for function arguments. A jQuery group is an object and hence should be passed as reference.
However I'm finding in the test script below that something strange is going on; the jQuery group is behaving like a value not a reference unless wrapped in a...
i have a html form with 3 fields "dateFrom" and "dateto" and iam using the Jquery
datepicker for this fields .Iam using form validation plugin and to validate the required fields.
$(document).ready(function(){
$("#dateFrom").datepicker({ dateFormat: 'dd-M-yy' });
$("#dateto").datepicker({ dateFormat: 'dd-M-yy' });
});
Markup:
<...
I'm trying to implement flowplayer.org's JQuery tooltip
http://flowplayer.org/tools/demos/tooltip/form.html
into my webapplication (C#.NET).
I have the following script at Master.Page:
function createTooltip() {
// select all desired input fields and attach tooltips to them
$("#aspnetForm :input")...
I am aware that you can use .val() to change which options are selected in a select multiple=multiple but,
How can you simply select/deselect one option, without changing the state of the other options?
...
hi! I got this kind of form validation:
php side:
if ( trim($message)=="" )
{
echo "lalalaal<br>lalalalala";
}
then in the onsuccess ajax jquery:
var error=$('div#error_contact').html()
switch(error){
case "lalalaal<br>lalalalala":
$("#form_contact").slideUp()
}
if i put a <br> the string equality is not verifie...
I have been struggling with this all day and have tried going through the steps outlined in this question but I can't spot the problem.
I am using the quicktree plugin to display a tree from my unordered list.
If I remove the line
<li><a href="#" title="Add a New Page" class="addnewpage-icon addnewpage" id="addnewpageid5">hello<a/>wor...