On my site, I load jQuery UI script using the following code:
wp_enqueue_script('nf-jquery-ui','http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js')
In my plugin I use the following code:
wp_enqueue_script('wp_filebrowser-jqueryui','http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.js')
The result is tha...
Hi,
i'm writing this jquery script to send data to a php file via ajax it works but am getting this error can any body tell for I can solve this the code is posted bellow so is the error
here is the error which I get after the data is sent.
Item is undefined: if (item.guid != null)
here is the code:
// Data
dataObj = { cor...
I'm trying to add style with .css() method to the element selected with .get():
$('.toggle').get(0).css("display", "none");
...but that doesn't work. What am I doing wrong?
...
I have an element like this:
<div id="content" style="border: 2px solid black">
</div>
And through JQuery I add some new stuff:
$("#content").append($('<div></div>').addClass("box"));
where
.box { margin: 10px; padding: 10px; border: 1px solid black }
But the outer div does not resize when I do this, so I get an inner box that i...
Hi,
I have a jQuery UI Autocomplete control that fires an Ajax request when minLength = 3. The problem is as follows:
Say I enter "fic" as the initial search term - this is fine. The request fires and results are returned. I decide that I don't want to select any of the results and then re-enter the same search again (fic). This time no...
My code does not work I don't know why
the_image_source and new_src are just place holders I have put real values in them
I have also tried $("img[src=the_image_souce]")[0].attr('src','new_src'); but it does not work either, please help
...
I know that given enough time I'll figure this out, but it sure would be nice if some kind soul can point me in the right direction. I am relatively inexperienced with jQuery, but I have somewhat intermediate javascript knowledge.
Given an array of objects in the form:
[
{"value1":"10/14/2010", "value2":"1", "value3":"1178.94"},
...
I was wondering how to implement a sort of touch-event on a page like this.
So, instead of when you tap on the part of the screenshot to magnify, it actually follows your finger as it drags across the screen.
Are there certain ways to make this work on iOS devices.
...
First off, I am currently using JQuery so JQuery solutions viable.
I want to rotate an image by a dynamic X degrees which is calculated every sec.
Now I had this working perfectly using this JqueryRotate plugin
The image is rotated perfectly every sec. But I am trying something a little more complicated now.
I want to rotate 4 tra...
hi all. i am working on a problem at the moment that I am having a fair amount of difficulty with. thanks to some amazingly wonderful programers I have some javascript code that allows me to highlight a full row on a table if a cell, with id="date", has a date that is in the past. however now I am trying to convert this so that it only ...
I'm trying to set a dynamic width to ul.sections by checking how many li's exist and multiply that by the width of the li ($("ul.sections").width()), which in this case happens to be 910px.
I'm not sure how to return the current number of visible list items. Maybe something like this?
$('ul.sections').width($("ul.sections li").length()...
Hi, I am trying to override the submit of an aiContactForm created on Joomla using the ajaxForm jQuery plug in.
When submiting the form, the beforeSubmit event gets executed fine, then the form submit works on the server as I get the email response, but before my success function executes I get an error:
Permission denied for <domai...
Hi folks,
We've setup a cute little moving clouds animation here: http://thechildrensguide.harmonyapp.com/?password=test
It works nicely in Safari on Mac but doesn't seem to work on Firefox.
Any suggestions on what we've done wrong?
Also, does this technique use a lot of resources? Safari's CPU usage jumps from around 4% to 13% when ...
I Would prefer not to use javascript if that's possible but a jquery solution would be fine too. I'd appreciate any help.
...
I have a div, I want to set it so that when I click on something else, it would hide the div.
So I did
$('body').click(function(){
if(loginOpened)
{
$('#loginWindow').animate({
'width':'0px',
'height':'0px'
},"fast");
}
loginOpened=false;
});
However, even when I click in the ...
Hi Guys,
I am trying to use Jquery to resolve my below issue.
I have got below HTML Links.
<ul class="tabHead tabs-nav">
<li class="tabs-selected" id="tab-1">
<a id="tab1" class="load-fragment" href="/index.aspx"><span>Overview</span></a>
</li>
<li id="tab-2">
<a id="tab2" class="load-fragment" href="/guide.aspx">...
Hi, the recent update to jquery 1.4.3 has introduced a small behavior bug into one of my scripts, and i just cant see what the problem is.
The way i use the scripts means i have to use the latest jquery.
I think it must be in the onClick function.
The odd behavior introduced can be seen here:
And a test page with console log here
when...
Can we access an element of a content page from master page using JavaScript? Suppose I have a link like:<a id="myLink" class="styleLink runat="server"></a> in all my content pages that uses the master page. I want to add one plugin for all links which are having the css class "styleLink". I can do it by adding ('.styleLink').ToolTip() t...
I am using this image gallery in my project. need the effect of hover. But there is an issue when user clicks on that image it opens the image in a new window. How can i prevent that.
Here is the code sample and here is the demo.
...
var target = $(this).attr("href");
if {target is child of ('.wrapper')} then (do something)
simple syntax? can someone show me the correct syntax here?
...