Hi everyone,
I know this is a hot topic and I know there have been previous questions with identical titles, but I tried everything and something's just not working right. For some reason, my Firefox will not preload the images. The images DO preload (as they should) in IE7/8 and Chrome. But not in Firefox.
EDIT:
I've created a new F...
HELLO
SORRY FOR FRENCH , i will try english
i have tree arrays like this
$keys = array("elment1","elment1","elment2","elment1");
// this one can have duplicates values ,
$operator = array("=","<",">","=");
// operators for Mysql query
$queries = array("query1","query2","query3","query4");
// mixtes values
the question is :
...
I'm using the following code to get some json formatted data:
$.ajax({
type: "GET",
url: "MyService.svc/GetSomeData",
dataType: "text",
success: function (data, textStatus) {
alert("Test: " + data.toString());
},
error: function (xhr, textStatus, er...
Is there a way, through jQuery, to assign an active class to an area tag within an a map?
I have a bunch of areas defined like this:
<map name="mappy">
<area shape="rect" coords="162,105,179,136" href="#" title="Unique Title 1" alt="Unique Title 1" />
<area shape="rect" coords="205,72,222,101" href="#" title="Unique Title 2" ...
Hi everyone!
I'm trying to submit form data with jQuery. I'm using ASP.NET WebMatrix. In a .cshtml file I have
@{
// other code
if(IsPost)
{
var item = new Item();
item.Title = Request.Form["title"];
item.Description = Request.Form["description"];
// aditional code here
}
}
<script type...
For standard browsers you can use something like this to change the coloring of selected text.
div.txtArea::selection {
background: transparent;
}
div.txtArea::-moz-selection {
background: transparent;
}
div.txtArea::-webkit-selection {
background: transparent;
}
Is there a way to do this with javascript?
My users can select tex...
I have my front end script which has the following jQuery code:
$.get("/backend/post.php", {
title: title,
message: post,
stick: sticky
}, function (output) {
alert("Call Back");
}
}, "json");
stick is a boolean value, the other two are strings. I've confirm...
Hey, I was wondering if I could make the header on my page (http://marioplanet.com/images/logo/logo.png) interactive by having a little mini-game of sorts occur upon clicking on a part of the image.
It would have Mario, only Mario, on top of the text, making the rest of the characters vanish upon the start of the "mini-game".
Then, the...
We are using jQuery to generate an XML fragment and then convert it to a string using the html() function. But as we just found out, and if anyone doesn't know, the html() JavaScript function as implemented in IE is broken, broken, broken. Basically, it capitalizes some tags, adds attributes to others "helpfully" (in our case, ), and gen...
I've the next problem: I've got a div which contains an image.
I need this image resized if is bigger than the width of the div, and if the user click the image, show it at the full size.
The div width is managed with the windows width.
How do I do that?
...
I'm attempting to create a filterable photo gallery using jQuery and multiple classes. I have some code set up, but it doesn't seem to work. Can anybody give me any insight on how to fix this function?
$(document).ready(function(){
$('#sorter a').click(function(e){
var sortName = $(this).text().toLowerCase().replace(' ...
I have this jQuery function:
$(this).change(function(){
alert('I changed. ID: ' + $(this).attr("id"));
});
I need the alert to fire except when the id name ends in -0. I think I should be using the $= operator. I cannot figure out how to make it work.
...
I'm using .show to display a hidden message after a successful form submit.
My question: How to display the message for 5 seconds then hide.
Thanks in advance.
...
When I see a question such as: http://stackoverflow.com/questions/3428760/how-do-i-exclude-elements-whose-id-ends-in-a-certain-suffix-using-jquery I cannot help but thinking: does jquery encourage too much of this sort of ad hoc (and processor intensive) querying of the DOM? Shouldn't we be organizing our UI's better so that these sorts...
Yesterday I posted this question which is answered but it lead to another problem.
I have the following code using jquery validation plugin:
//array of success messages and randomly select one
var messages = ["Good!", "Great!", "Awesome!", "Super!", "Nice!","Yay!", "Success!", "Ok!", "Perfect!","Sweet!" ];
function successM...
Hello, I am trying to find the simplest way to replicate a 12fps animation using CSS sprites and jQuery.
I was thinking using the setInterval() so every 83.33 millisecond, the next sprite will be loaded.
My problem, is that I don't know how to do that...
I was thinking, because my sprite names are incremental like:
mariohammerswing1....
Hey all i am trying to find a way to call an external website and retreve its HTML so that i can check for something in it (wither the user entered a valid VIN # or not depending on what this website calls back)
This is the code i have:
$.ajaxSetup ({
cache: false
});
$("#load_callback").click(function(){
$.ajax({
url: 'htt...
Hi,
Newbie here..
I just want to ask how can I accomplish my homework in school.
I basically have this need.
I want to send an ajax request every 10 seconds but I dont want to initiate another request if my previous request has not returned yet.
I am thinking that the connection to DB might be that bad sometimes so I would like to ...
index.php
<script type="text/javascript" src="jquery-1.4.2.js"></script>
<script type="text/javascript" src="ajax.js"></script>
<a href='one.php' class='ajax'>One</a>
<a href='two.php' class='ajax'>Two</a>
<div id="workspace">workspace</div>
one.php
$arr = array ( "workspace" => "One" );
echo json_encode( $arr );
two.php
$arr = ...
Through the past few years I've been busy with server side programming and I kinda ignored these JavaScript libraries. Because of my good knowledge and long experience with JavaScript I always wrote everything from mostly scratch. Even back then it seemed stupid but I guess it was more the challenge and student mentality. Recently I've s...