I am using JQuery to populate a set of three cascading dropdowns which have the autopostback to false. How in the code behind do I access the selected values of the dropdowns?
I have image map like this
<map name="imgmap">
<area shape="poly" coords="63,10,64,38,89,37,91,10" href="#" id="x1"></map>
and how can I color that area dynamically with jquery like
("#x1").color('red')
?
hi all,
how to create context tree view in html or dhtml or jsp or jquery or any other languages.. i'm not able to get the tree structue(image is not displaying) please any body help
Hey guys, there is a form where the user select some of his friends and I'm curious on how I can implement a list that searches simultaneously while the user is typing a friend's name and when he selects the name the name is written in the text box(jQuery). And if the user wants to select more than one friend, when I'm inserting the names in the database, how can I separate the names that are written in one input field?
What is the equivalent of YUI 3's Y.Array in jQuery?
Y.Array() takes array like inputs and converts them into array. More info at http://developer.yahoo.com/yui/3/api/yui-array.js.html
I used this code to get the particular column value using jquery..
$("#Grid td:first-child").click(function() {
var resultArray = $(this).closest('tr').find('td').text();
alert(resultArray);
});
How do I get the particular column value? That is, I need grid 4th and 5th column value?
I'm doing some experiments with jquery n widths for a liquid column and I'm not sure why it isn't working on firefox.
It works fine on IE6,7,8 Chrome, Opera(sluggish).
I found some articles about firefox not recognizing the .resize attribute but no explanation/solution =\
$(document).ready(function(){
$(midCol).width((window,$(window).width()) - 470)
$(window).resize(function(){$(midCol).width((window,$(window).width()) - 470)
})
});
Hi,
I have 2 scripts working ok separately but can't get them working together -
What I'm after is expanding menus where if the items exceed 10 a 'more' link appears that expands the list, which can also then be hidden.
http://www.brianfitzer.ie/test2/
expanding menu is file test12.html
toggle+limit:
toggle is file test13.html
(I have these working separately)
And then I need this to be able to be applied in multiple instances as I'll have multiple categories.
Any code help greatly appreciated! (i'm a jquery newbie so if you have full code that would be xtra handy)
Hi every one I am looking for some jQuery slider and i found this which is impossible for me co create locally. link text
Did any one use something like this?
I want to do this: http://docs.jquery.com/Events/live#typefn
Only .live() doesn't support the change event- any ideas for work arounds?
Need to bind a function to some on-the-fly DOM elements, but not until change.
Hey guys, is there a way to load XML Data Cross-Domain with JQuery (= client side)?
$.get('http://otherdomain.com/data.xml', function(xml) { }
The above doesn't work - do I have to rely on JSONP, or is there a way to load XML?
Is it possible to get a value from the external CSS of a page if the element that the style refers to has not been generated yet? (the element is to be generated dynamically).
The jQuery method I've seen is $('element').css('property','value');, but this relies on element being on the page. Is there a way of finding out what the property is set to within the CSS rather than the computed style of an element?
What is the jQuery equivalent to the following:
function stopEvent(evt) {
if (window.event) window.event.cancelBubble = true;
else evt.stopPropagation();
}
function checkauth(){
jQuery.getJSON("/users/checkauthjson", null, function(xhr){
if(xhr.success){ return true;}else{ return false;}
});
}
Obviously, that does not work, but it illustrates what i want to achieve. I want checkauth to return a value which is checked against an ajax server script.
How do i do this?
Hi,
According to the documentation for the JQuery validation plugin:
the validation is lazy: Before submitting the form for the first time, the user can tab through fields without getting annoying messages
Is there any way to display the messages as the user tabs through the form?
Cheers
Hello,
I have a ajax, jquery form which works fine, but returning a message from <div></div>. I want to return a value from a db query, a single value.
How do I go about doing it.
Thanks
Dave
Hey, I'm a little confused about a simple jQuery statement...
I want the operation to proceed only if A and B are true. If A isn't true, stop. If A and B are true, then continue.
Thanks!
I have used the following code to generate some dynamic checkboxes. This works for the first time and adds the check box chk2 to the page and then after the trigger for the
$('#newLink').click is not working. Please help me with this.
<div id="chkBoxesDiv">
<input type="checkbox" id="chk1" ></input>
<input id="answerText" type="text" size="30" ></input>
<input type="button" value="add new" id="newLink"/>
</div>
$(document).ready(function(){
$('#newLink').click(function (event){
var i = 0;
//To count the children
$("#chkBoxesDiv").children().each(function(){
var child = $(this);
if(child.is(":checkbox")){
i++;
}
});
//prevent action
event.preventDefault();
//get textbox value to fill checkbox
var text = $("#answerText").val();
alert(i);
//if text not empty do stuff
if(text != ""){
//add label
$("#chk"+i).after("<label for=\"chk"+i+"\" id=\"lblchk"+i+"\">"+text+"</label>");
$("#newLink").remove();
$("#answerText").remove();
$("#lblchk1").after("<br /><input type=\"checkbox\" id=\"chk"+(1+i)+"\" ></input><input type=\"text\" id=\"answerText\" size=\"30\" ></input> <input type=\"button\" value=\"add new\" id=\"newLink\"/>");
}
});
});
Not sure if this is possible but can you load and unload into a div on a jquery toggle?
something a bit like this?
$("#IDOFCLICK").live('click',function(){
$(this).toggleClass("active").('#IDOFDIVTOLOAD').load('PAAGETOLOAD').slideToggle("slow");
});
if you can I guess the above is not right, but, how would you also unload on the "reverse" toggle?
I was wondering if there was any way to, using jQuery, animate properties of text-shadow like size or colour.
It's annoying that there aren't individual properties like text-shadow-color instead of the statement only being available in combined form.
I have the following code that in IE gives me an error in jQuery for "open(G,M.url,M.async"
$("#submitButton").click(function(){
$.ajax({
type: "POST",
url: "http://url.com/postChat.php",
data: "comment="+$("#userInput").val(),
success: function(msg){
}
});
});
Any ideas as to why this would happen in IE?
jQuery made javascript so easy for me, I was able to get up and running in a couple of hours doing most tasks.
Which PHP framework has similar ease of use and rapid development/write less ability? Or am I stuck basically learning a new language no matter what framework I decide on?
When I use jQuery for a simple click event it only works for links. Is there a way to make it work for spans etc:
$("span.clicked").live("click", function(e){alert("span clicked!")});
$("a.clicked").live("click", function(e){alert("link clicked!")});
Example is here:
http://ip1n.j-www.com/test/index2.html
The SPAN works in Safari but not Mobile Safari (on iPhone or iPad) whereas the A tag works in both.
Hi all,
I am fairly new to JQuery API.
I have been using mouseover, but I have never used hover before.
SO I am wondering if I should use hover instead.