Does anyone know of an onHide() event or something similar in jQuery?
I tried:
$(this).bind('hide', function(){
console.log('asdasda')
})
But apparently that doesn't work.
<area shape="poly" coords="63,10,64,38,89,37,91,10" class={"strokeColor:'0000ff',strokeWidth:5, fillColor:'ff0000',fillOpacity:0.6}" href="#" id="x1">
There is a imagemap in my html and I want to dynamicly add a new configuration "alwaysOn:true" to the class attribute.
$("#x1").click(function(){alert(8);})
I am newbea I can add click listener to it but cannot figure out how to add config option
How can I do that with jquery?
I'm using .position to find the offset of where the element is relative to the parent, however it seems to be returning a value that is the offset from some parent up the ancestor tree.
I have a button, and its wrapped withing a div and its the only element of that div. The div is floated right. .position is returning a value like {left:780, top:370}, when the true value should be around {left:200, top:0}.
I'm using jquery 1.4
I have to populate a multi checkbox in a form from data taken from an XML file from a post function with jquery?
<input type="checkbox" name="mercato[]" id="mkt_0" value="A">A<input type="checkbox" name="mercato[]" id="mkt_1" value="B">B
Thanks in advance.
ciao
h
I have a div element which my code will fill with a dynamic amount of links. Using jquery, I want to hide all the links except the first one. This is what I came up with and it works, I was just wondering if this is the best way to do it:
$("#panelContainer").each(function(n) {
$(this).children().hide();
$("#panelContainer a:first").show();
});
Hi
I have the following jquery in my code$j.getJSON("http://localhost:8080/WWTestHarnessWEB/ReadersToolkitFinalController.htm?jsoncallback=?", {'uID': 1}, function(data){alert(data);});
The json that i am returning looks like the following ({"positiveCount":"0","negativeCount":"999"})
But my alert is never firing.
Any idea what i need to do to ensure that this will work?
regards
Damien
Hi
I am trying to acess a wcf service from a jQuery client
Specifically this example
http://www.codeproject.com/KB/aspnet/WCF_JQUERY_ASMX.aspx#4
All works well when the client webpage is on the same domain as the service
As soon as I move the client webpage to another domain it breaks. It cant reach the service and the request fails
This happens for all the examples, ASMX, REST and WCF
any ideas how to get this working cross daomain?
I have the following JQuery code:
$(this).text('Options ▴');
However, the ascii code isn't showing up on my web page. All that shows up is on the webpage is Options ▴.
What am I doing wrong?
I use http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
but some compaty may block this site, so in this case I want to use my local version on jquery
/JavaScripts/jquery.min.js.
How can I do it?
Hello, before posting I want to tell you "Sorry for my English".
I've got a problem with JQuery. http://socialworld.den-style.net/ if you click "Nascondi" under the Logo you will see that the #post go to the right and then "comes back" to its old position.
How do I can fix this error? Thanks a lot.
Hi,
I have been trying to figure out how to use the jQuery BBQ plug-in.
I have been able to add it to my site by copying the code from the site but I'm seeing that if I have a form in one of my tabs, I can't post any of the results successfully.
Has anyone used this plug-in and gotten used to its functionality? I need help figuring out where to input my php code for form handling and have the results returned the page loaded in the tab.
Hey, I'm wondering how I can insert text into a text area using jquery, upon the click of an anchor tag.
I don't want to replace text already in textarea, I want to append new text to textarea.
Thankyou.
Hi,
I have some problem with parsing XML in Ie6/7(original 7 no compatible mode). On Another normal browsers it works.
Jquery code:
$.ajax({
type: "GET",
url: "test.xml",
dataType: "html",
success: function(xml) {
$(xml).find('quoteresult').each(function(){
var bid = $(this).find('bid').text();
alert(bid);
});
}
});
I can't understand what is wrong !
Thanks
I'm not all that familiar with jquery so I'm not quite sure how to do this. Basically, I want a block of html to stay hidden at the top of the page with a ~3px edge sticking out (something to mouseover), and when you mouse over it, the hidden section slides down.
Basically I want it to work like the RDP full screen menu bar works. Any thoughts on what the best way of doing this is?
Dear all,
I need to add paging for my users view page, i got all the datas using Json to show in the table..i need to add paging and and also i can able to change number of users to show in a particular page. any simple Jquery plugin or source code will be very much helpful to me.
thanks in advance,
K
According to the jQuery manual you can send extra parameters (as an array) when calling a trigger. I am using this at the moment:
$('#page0').trigger('click', [true]);
How would I pick up whether the paramter has come through or not when using this?
$('ul.pages li a').click(function() {
// Do stuff if true has been passed as an extra parameter
});
(submit said I was trying to post an image so I've changed image everywhere to ix
I am trying to get jQuery to replace an ix inside a datalist. The original ix is the thumbnail ix of a product on a category page. The small ix I am clicking on are swatch ix for the different colors of a product. I can get it to work using a div tag around the ix tag inside the ItemTemplate. I don't need to use a div tag if I can get the imagesx to swap- I was just using it because that is sample code I found and it works for the first product in the category.
<asp:HyperLink ID="ProductNav" runat="server" NavigateUrl='<%#Eval("NavigateUrl") %>'>
<div id="ladiv" runat="server">
<asp:Ixx runat="server" ID="ProdThumb" />
</div>
</asp:HyperLink>
<asp:PlaceHolder ID="phSwatches" runat="server"></asp:PlaceHolder>
The ProdThumb ix is added from the code behind and the swatches are added from the code behind
swatches.Controls.Add(new LiteralControl("<table><tr>"));
foreach(OptionChoice optionChoice in option.Choices)
{
string swatchThumbnail = string.Format("<ix ID=\"{0}\" src=\"{1}\" border=\"0\" class=\"{2}\" />","swatch" + optionChoice.OptionChoiceId.ToString(), ResolveUrl(optionChoice.ThumbnailUrl),"imgthumb");
swatches.Controls.Add(new LiteralControl("<td>"));
swatches.Controls.Add(new LiteralControl(swatchThumbnail));
swatches.Controls.Add(new LiteralControl("</td>"));
}
swatches.Controls.Add(new LiteralControl("</tr></table>"));
prodThumb.IxUrl = product.ThumbnailUrl;
prodThumb.AlternateText = product.ThumbnailAltText;
prodThumb.CssClass = "Thumbnail";
The jQuery is:
$(function() {
$("ix.imgthumb").click(function(e) {
var t = $(this);
var newImg = '';
$('#ladiv')
.html($(newImg)
);
});
});
</script>
Both images are named similar, except the swatch contains "sws" and the larger one is the some only with "swl".
I have spent several days searching but am not able to get it to work.
If I try something like $("#<%=ladiv.ClientID %") the code can't find it.
I appreciate any help.
Hi, is there any jQuery plugin to create something like the live feed from the Twitter Main Page , using PHP, which is getting the data from a MySQL database?
How has to be the PHP file?
Thanks.
Hi,
Can somebody help me how can I configure jquery to GET data from This URL
http://www.slideshare.net/corotchi
I've found the Slideshare API documentation here : http://www.slideshare.net/developers/documentation
Can somebody help me to make a call an to get the data !!
Thanks !
Hi!
Im trying to do a simple fadeIn ONCE for the first div , but the problem is that this is a ajax load inside a everyTime(xxx sec), so it does the same thing everytime it loads again.
anyone got any ideas on how i can prevent the first div to fadeIn over and over again, but still do this function on the new div?
Not very familiar with Jquery.. so feed me with a spoon :)
Hi,
there are several list filters in jquery (quicksand, filterprojects, etc.), but I am looking to filter divs by class.
I want the same functionality of the above - you select a menu item attached to a class and the other items fade out.
Anyone seen anything like this anywhere?
I don't have any of the devices to test at the moment. I guess I'll start using the emulators later on.
We're looking to offer mobile support. I was wondering how jQuery or even javascript renders in their respective browsers.
What works? What doesn't? Any tips? Advice?
Hi,
I want to create a image strip slider using jquery. I have used jcarousel plugin for my image gallery and light box plugin to get preview of selected image. Now, my task is when any of the image is selected i can drag to either side. i.e I can select the image and drag to any direction within that image container.
If any one can help me on this???
Thanks