Hi,
I wonder if someone can help me. I know JS quite well but am completely new to JQuery...
I've got an image which is being loaded dynamically vis a call to UpdateImage()
$.fn.image = function (src, f) {
return this.each(function () {
var i = new Image();
i.src = src;
i.onload = f;
...
I have an issue with datepicker continually reappearing when the Done button is clicked. But only in IE7, not Firefox - it stays hidden. I suspect the problem is datepicker is shown on focus and the host input is being refocused in IE when datepicker is closed, triggering it to come up again.
JQ 1.3.2 (also tried 1.4.2) JQUI 1.7.2.
$...
I'm calling $("#foobar").css("line-height") and getting back "normal". How do I translate this to a pixel amount? Is "normal" defined in the CSS spec or is it browser specific?
...
good evening all,
i have been trying to update records but can't seem to code in the substr command to extract certain details from a string.
i have a doa (date of accident) text field currently working with kelvinluck's jquery datepicker plugin.
originally the single doa textfield was split into three drop downs... namely: doaDay, do...
Hello everybody, can somebody sent me a link, or to provide me an example with pure Javascript/jQuery captcha. Because I can see a lots of examples with PHP/C# ... back end. But I need just Javascript .
Thanks !!
...
hi.
i'm trying to make my image search with google ajax search
i'm using jQuery.
so below my code
$.getJSON('http://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=hello', function(data) {
console.log(data);
});
the console printed NULL
and my xhr information is
request URL:http://ajax.googleapis.com/ajax/services/sea...
What is YQL ? Is it like jQuery ? How can i use it ?
...
I have been looking at a lot of combo boxes but have yet to see one that uses
JSON on the backend or one that is more than six fields. I was trying to use
http://www.appelsiini.net/2010/jquery-chained-selects as a resource but am
having trouble implementing JSON at the backend. Would someone mind giving me
a hand?
...
I know there are quite a few related question here but none that actually relate to my question have an answer attached. Or at least an accepted answer. Happy to be wrong in this if someone can point me to the question. Also please retag if I've miss-tagged.
My question, as the title says is that I want to call a Servlet from my JSP ...
Sorry for the noob question. I've read through a couple questions and am unable to solve my problem. I cannot seem to load the data.
I have the following json code output from a php script.
{label: "load",data:[[1283294013*1000, 2.03],[1283293998*1000, 2.04],[1283293983*1000, 2.06],[1283293968*1000, 1.99],[1283293953*1000, 1.98],[1...
it seems that even if i set the height for the flexigrid, it still allows the user to drag the height size. how can i disable this?
...
Hei guys i have this JQuery Ajax call from my view and it looks like this:
$("select#Colors").change(function() {
var color = $("#Colors > option:selected").attr("value");
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
url: "FindProducts/" + color,
d...
I have the following in a jsp page;
<script language="javascript">
function ClickMe_Click()
{
$.ajax({
type: "post",
url: "dimensionList.jsp",
data: "dimensionName=Slappy",
success: function(msg) {
alert(msg);
...
I'm writing some jquery to programmatically build a list of links and I'd like to attach a click() event to each link. I'm having trouble getting the click function to fire. Can anyone point me in the right direction on how to do this?
This is what I have so far:
<!doctype html>
<html>
<head>
<title></title>
<script type="text/javascr...
How can I return a random element in jQuery by doing something like $(.class).random.click()?
So, if .class had 10 links, it would randomly click one of them.
Here is what I did:
var rand_num = Math.floor(Math.random()*$('.member_name_and_thumb_list a').size());
$(".member_name_and_thumb_list a").eq(rand_num).click();
...
Hello,
I'm using the Uploadify jQuery plugin for PHP to upload a file. One thing I am stuck on is that I need to be able to rename the file being uploaded so that I can post that information to my script that inserts data into the mysql database. Can anyone please advise on how to do this?
Thanks,
Jake
...
I have the following DIV layout which translates as little clickable buttons on the browser:
<div class="ticket_option">
<div class="tickets">2</div>
<div class="tickets">3</div>
<div class="tickets">4</div>
</div>
Using the following Jquery:
// ticket button stuff
$('.tickets').toggle(function() {
$(this).addClass...
I'm trying to get a sense of the similarities between languages in syntax. How similar are Python, jQuery and C? I started programming in Actionscript 3 and then moved on to Javascript , then went on and learned Prototype, and then I started using jQuery and found that the syntax is very different. So is jQuery more like C and Python?
...
I need to change the default sort icons for the jqgrid. Currently it has an up and down arrow shown for each column. How can I replace it with a single icon that changes as it is clicked on?
Basically, the icon should toggle between ascending, descending and unsorted.
Solution
Using Oleg's answer I changed the default double arrow i...
I have a menu/UL with a bunch of LI, and inside those LI, I've got some more UL, LI... Have a look:
<ul class='parent'>
<li><a>Boules</a></li>
<li>
<a>Livres</a>
<ul class='child'>
<li><a>Magazines</a></li>
<li><a>Revues</a></li>
<li><a>Romans</a></li>
</ul>
</li>
<li>
<a>Wirelace (3 child...