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?
Trying to get current data from textarea with jquery and replace it with what server returns. so far q value is picked up right, intead of updating it with server returned content, it just replaces it with ' '
q = $('textarea#id_message').val();
alert(q)
$("textarea#id_message").val(' ').load( '/process/url?html=' + q );
Update
just tried it passing server data to test results div, this does work, textarea does not
$( '#results' ).html( ' ' ).load( '/process/url?html=' + q );
I'm using jquery and in one function I'm calling multiple function which are doing different ajax request for example
function contactForm(){
loadCountryList();
loadMyData();
checkUserType();
// doing my stuff
}
How can I know if all the ajax request are completed so that I start doing my stuff in the end?
I don't want to call them one by one to minimize the request time. any suggestion will help me a lot.
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
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
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?
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
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
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();
});
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.
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 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'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?
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
});
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,
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.
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,
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
(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.
Hey ya'll I have these 3 images thumbnails here...
<div class="wpcart_gallery" style="text-align:center; padding-top:5px;">
<a class="thickbox cboxElement" title="DSC_0118" href="http://www.taranmarlowjewelry.com/wp-content/uploads/2012/07/DSC_0118.jpg" rel="Teardrop Druzy Amethyst Ring" rev="http://www.taranmarlowjewelry.com/wp-content/uploads/2012/07/DSC_0118.jpg">
<img class="attachment-gold-thumbnails colorbox-736" width="50" height="50" title="DSC_0118" alt="DSC_0118" src="http://www.taranmarlowjewelry.com/wp-content/uploads/2012/07/DSC_0118-50x50.jpg">
</a>
<a class="thickbox cboxElement" title="P7230376" href="http://www.taranmarlowjewelry.com/wp-content/uploads/2012/07/P7230376.jpg" rel="Teardrop Druzy Amethyst Ring" rev="http://www.taranmarlowjewelry.com/wp-content/uploads/2012/07/P7230376.jpg">
<img class="attachment-gold-thumbnails colorbox-736" width="50" height="50" title="P7230376" alt="P7230376" src="http://www.taranmarlowjewelry.com/wp-content/uploads/2012/07/P7230376-50x50.jpg">
</a>
<a class="thickbox cboxElement" title="P7230378" href="http://www.taranmarlowjewelry.com/wp-content/uploads/2012/07/P7230378.jpg" rel="Teardrop Druzy Amethyst Ring" rev="http://www.taranmarlowjewelry.com/wp-content/uploads/2012/07/P7230378.jpg">
<img class="attachment-gold-thumbnails colorbox-736" width="50" height="50" title="P7230378" alt="P7230378" src="http://www.taranmarlowjewelry.com/wp-content/uploads/2012/07/P7230378-50x50.jpg">
</a>
</div>
What I am trying to do is come up with a jquery code that would remove the cboxElement from the first image and if I click on one of the images to remove cboxElement and place cboxElement to the other images...
I also have this big image and when you click on one of the thumbnails, the image is replaced by the thumbnail and thats really the thumbnail I want to exclude...Could I possible just say if one of the 3 images src = this one image = src remove the class from this thumbnail?
Which way would be better? I am very new at jquery :(
I hope this makes sense.
Here is the code for the big image...
<a class="preview_link cboxElement" style="text-decoration:none;" href="http://www.taranmarlowjewelry.com/wp-content/uploads/2012/07/DSC_0118.jpg" rel="Teardrop Druzy Amethyst Ring">
<img id="product_image_736" class="product_image colorbox-736" width="400" src="http://www.taranmarlowjewelry.com/wp-content/uploads/2012/07/DSC_0118.jpg" title="Teardrop Druzy Amethyst Ring" alt="Teardrop Druzy Amethyst Ring">
<br>
<div style="text-align:center; color:#F39B91;">Click To Enlarge</div>
</a>
Any help or a point in the right direction would be awesome!!
I want to detect the presence of a scroll bar in a DIV using jQuery. I was thinking to use $('div').scrollTop() but that returns 0 in both cases when the scroll bar is at the top and when there is no scroll bar at all.
Any ideas guys?
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?