I have a little javascript function which is attached to an onClick event of a button. It appears to work perfectly in Firefox(3.0.4), but both Opera(9.62) and IE fails to execute any other JS from the same .js file, including what normally works. The following function is the culprit:
function deleteComment(id){
$.post("ajax/comment...
Hello all,
I'm having an issue with JQuery and Safari (Windows Version). The code works on FF/IE7/Chrome but not Safari.
I have a simple <li> that has a <div> embedded in to - clicking the <li> should expose the hidden div, but not in Safari.
The HTML:
<ul>
<li>something</li>
<li>something2</li>
<li class="more">
<a href="" ...
Thanks for reading this.
I am dynamically generating some data which includes a select drop-down with a text box next to it. If the user clicks the select, I am dynamically populating it (code below). I have a class on the select and I was hoping the following code would work. I tested it with an ID on the select and putting the ONE on ...
I am using jQuery to make an AJAX request to a remote endpoint. That endpoint will return a JSON object if there is a failure and that object will describe the failure. If the request is successful it will return HTML or XML.
I see how to define the expected request type in jQuery as part of the $.ajax() call. Is there a way to detec...
Hi,
If my header/footer are in the master page, and my .js files are referenced in the master page, how can I add jQuery validation on my login page?
If there is an error detected, how will I modify the .js file to display the appropriate error message?
...
For example, will the first piece of code perform a full search twice, or is it smart enough to cache results if no DOM changes have occurred?
if ($("#navbar .heading").text() > "") {
$("#navbar .heading").hide();
}
and
var $heading = $("#navbar .heading");
if ($heading.text() > "") {
$heading.hide();
}
If the selector is mor...
Sounds like a weird question, but say I have something like this:
$.post( "/myajax.php",
{ "param1": value1, "param2": value2 },
function( data, status ) {
if( status == "success" ) {
$("#someid").html( data );
}
}, "html" );
While myajax.php is doing whatever it needs to ...
I have a nested function to show/hide paragraphs news-ticker-style.
The problem is that when the loop starts over (line 4), the opacity effects stop working correctly so the paragraphs appear abruptly.
Any jquery masters know about this? Am I making this too hard?
$('#special-ticker p').hide();
var a=0;
function outer() {
functio...
while exploring jQuery I came up with the following weird script. I don't see myself doing this really however concatenating strings to achieve a variable name is not unusual in JavaScript.
Any feedback welcome.
...
<script type="text/javascript">
var a = 'y';
$(document).ready(function() {
$('p[id^=' +...
Is the jQuery intellisense plugin available for Visual Studio now?
...
I always see the code like this in the blogs:
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "WebService.asmx/HelloWorld",
data: "{}",
dataType: "json",
success: function(msg) {
...
Using jQuery, is there a way to select all tag that reference a specific css class, and set the display to "inline"?
example:
<span class="theclass">junk</span>
<span class="theclass">other junk</span>
<span class="theclass">more junk</span>
in .css:
.theclass {
display: none;
}
...
As the question says, how do I set the value of a DropDownList control using jQuery?
...
I am trying to add a draggable object to to a simple html page.
IE gives: Object doesn't support this property or method
FF gives: jQuery(".dragthis").draggable is not a function
Using latest jquery unpacked.
Here is the code:
<html>
<head>
<script src="jquery.js"></script>
<script>
$(document).ready(function() {
...
I can get simple examples to work fine as long as there's no master page involved. All I want to do is click a button and have it say "hello world" with the javascript in a .js file, using a master page. Any help very much appreciated :)
...
I've rewritten my family web site using Javascript (JQuery) making ajax calls to php on the back end. It's your standard "bunch of image thumbnails and one main image, and when you click on a thumbnail image the main image changes" kind of thing. Everything is working as expected when using Firefox, but on IE, when I click on a thumbnail...
is it possible to use the ajaxComplete or ajaxStop features of jQuery to decide whether or not the callback gets called?
Essentially I want to be able to take basic error checking code that is currently in most of my callbacks, and add it to a sort of global callback.
...
This is in reference to the question previously asked
The problem here is, each slider controls the other. It results in feedback. How do I possibly stop it?
$(function() {
$("#slider").slider({ slide: moveSlider2 });
$("#slider1").slider({ slide: moveSlider1 });
function moveSlider2( e, ui )
{
$('#slider1').slider( 'moveTo', Mat...
I've been working with jQuery for a pair of weeks and I've noticed it works fine with objects that are in the original HTML document, but when I generate a new element using jQuery the library doesn't get any of its events.
Let's say I try to run something like this:
$('.whatever').click(function() {
alert("ALERT!");
});
If the HTM...
Hi,
with jquery, or with simple just javascript, I want to populate a 2nd dropdown from the choice of the first dropdown.
The value of the first dropdown is the condition to get rows for the second dropdown.
How does the onChange event look like?
...