Given this HTML:
<div class="OpenIDSelector">some text</div>
Why does this JQuery selector match it on some browsers and some pages, but not on others?
$('.OpenIdSelector)
NOTE: I ran into this problem and solved it myself, but it was annoying and I didn't find it on StackOverflow already, so I'm posting it as a Q&A pair so someone else won't waste an hour like I did.
Hello, this is quite a simple question hopefully.
Our client currently has a Flash banner ad on their site which they can change the text size, colour, position etc. by editing an XML file. They want to scrap flash and use JavaScript and jQuery. Now, as long as the XML file is at a readable URL I should be able make an AJAX request for the file and use it. Is that correct?
Many thanks
This could be a novice question, but here goes...
Why do we use data*.d* when we have to read data from a jquery web-service ?
What is the significance of the .d?
Is there any supporting documentation for the same?
Thanks,
Sashidhar Kokku
I have a page, let's call it "callme.html" which only has this content:
abc
Now I want to fire the following:
$.get("callme.html", function (data) {
alert(data);
}, "text");
I am using jQuery 1.4.2 mini and the page is called but the alert is empty.
Any ideas why? I'd like the popup to contain abc
I've also tried the following
$.ajax({
url: "callme.html",
async: false,
success: function (data) {
alert(data);
}
});
I really like the search function on iA and I was wondering how they did it. I found ejohn.org/blog/jquery-livesearch/ by John Resig but I still don't how to:
add the counter (128/128 - the number encreases and decreases)
highlight the word I'm searching in the text
We are trying to implement jquery ketchup
demos.usejquery.com/ketchup-plugin/
and use required fields for the name, email and phone fields we have included all the markup and I think I have it setup properly but the form fields are not validating...
You can see my sample here... thx for any assistance I have been staring at this for hours...
http://c5.dealercontrol.net/service/service-appointment/
Hello,
I have created a drop down with JQuery that can be seen here by clicking the Preview button on top:
http://jsbin.com/ubire3/edit
It works fine except for one problem. When i hover over the main hover links (blue ones) quickly eg going horizontally quickly hovering each top menu, the submenus don't close. How do i make it so that even if i hover fast over them all other submenus are closed?
Thanks
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 );
Hi,
I am looking for a jQuery plug-in which will show / hide a div in a very smooth & slide manners when I click on a link.
Do anyone have any idea or URL?
Thanks.
I'd like to extract all the ISBNs on a dynamic web page that I can't feed through a Yahoo Pipe (the user has to log in to see the page). Is there a way to do that with jQuery? How?
Thanks!
Hey guys,
i have a list of items containig names.
then i have a eventlistener, which ckecks for keypress event.
if the user types i.g. an A all names starting with an A should be viewed with the A bold. so all starting As should be bold.
what is the best way using jquery to highlite only a part of a string?
thanks for your help
On button click I have the simple jQuery post:
$(document).ready(function() {
$.post("/cgi-bin/stats.exe");
});
However, nothing seems to go through to the server side. Any suggestions?
Thanks.
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 have a page that has a tab set. Each of the tabs is loaded by the jQuery .load() function.
I want to display a loading animation that disappears when all of the ajax requests are finished. However, document.ready() has only provided me with limited success.
How can I ensure that all ajax requests are completed before executing the code to hide the loading animation?
Thanks!
Hi
I have a button and when it's clicked, I want to replace the button with an image. How can I do this in JQuery? Is it possible to replace the background of the image as well? The button itself is within a large div, and I don't want to add another div around the button because it messes up a previous layout.
Thanks
Hi!
I have looked at several tutorials involving rails 3 and jquery. The tutorial at http://www.blog.bridgeutopiaweb.com/post/how-to-use-jquery-for-rails-3/ looked promising. However, I get the errors of document.on is not a function and $("a[data-remote=true]").livequery is not a function
I get the feeling that I should look at another tutorial or just use jquery raw and not install a ruby gem for jquery. Any advice? Thanks!
I have made a flashLike button with jquery via this code:
$(document).ready(function() {
$('#navigation li a').append('<span class="hover"></span>').each(function () {
var $span = $('span.hover', this).css('opacity', 0);
$(this).hover(function () {
$span.stop().fadeTo(500, 1);
}, function () {
$span.stop().fadeTo(500, 0);
});
});
});
But can we add sound to button in hover like flash buttons?
Thanks in advance
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?
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.