So I'm using jquery to POST some items and save into the database. I have two optional fields, if they're not empty, I'd like to fadeIn in a related div in the success function. You'll notice the #picCheck.fadeIn. Right now that fades in if the stuff is submitted, but like i said, I'd like for it fadeIn only if the variable "picvault" fr...
I know that I can do like ^= to see if an id starts with something, and I tried using that for this, but it didn't work... Basically, I'm retrieving the url and I want to set a class for an element for pathnames that start in a certain way...
So,
var pathname = window.location.pathname; //gives me /sub/1/train/yonks/459087
I want...
http://bit.ly/Veyy5
If you view the above URL in FireFox and try to change any of the search parameters you'll see that the search results portion of the page fades to a low opacity and then fades back in once the results are received. In IE this doesn't fade at all. Any ideas?
Thanks,
Shawn
...
This is a simplified version of my problem.
I have two buttons, and one image. The image code is something like this
<img class="onoff" src="image.jpg">
When I press button one I want the image to be wrapped in an A tag, like
<a href="link.html">
<img class="onoff" src="image.jpg">
</a>
And when I press the other button, the A ta...
I'm trying to use jQuery to dynamically create an image map, and I ran into a weird behavior:
alert( $('<area />').size() ); // 1
alert( $('<area shape="circle" />').size() ); // 0
alert( $('<area />').attr("shape", "circle").size() ); // 1
In other words, I can't create an area tag all at once; if I s...
I have three pages on my site. Page 1 is home page. When user visits the site, i display label control to user in Page 1. When the same user goes to page 2 , 3 and returns back to page 1, i do not want the label to show again. How can i do this?
...
Hi All,
I have a textbox and a dropdown list on an aspx webform. The user would type in a number and then submit and the dropdown would be populated with values relevant to the typed word. If the user types a new term in the text box, I want to truncate the dropdown and when the user submits, it would submit only the text and no dropdow...
This is probably a very basic question and I know how to do it using plain DOM but would like to learn the JQuery way of doing it.
After identifying the set of nodes using the appropriate JQuery selector, I would like to append a textarea, Save and Cancel button to each node with appropriate callback functions attached to the buttons to...
The easiest way?
So that I can call something like:
$('#id').applyMyOwnFunc
...
In a thumbnail website, if I want to display 100x100 thumbs on screnn resolutions lower than 1280x1024 while display 150x150 thumbs for screens higher than 1280x1024, is the following procedure correct?
Render a page frame with no thumbs by view1()
On page frame loaded, it detects client's screen resolution and pass it to another Djang...
I'm creating an auction site where users can bid on items. I want to create a script that sends an email to the winner of an auction item once the datetime in the end_auction column has been reached.
I'm not sure how to go about doing this, since PHP only runs when the page is loaded and then stops. Also, I want it to send an email to ...
Im trying to use jquery to make an ajax on a specif port
$(document).ready(function() {
$.ajax({
url: "http://test_serve:666/test.php",
type: "GET",
data: ({value_test: 'true'}),
dataType: "html"
});
})
And this does not work, no ajax call is made nor do I get any exception (using firebug)
It does work if I do not specif ...
Ok so I have a tab class that is scrollable which works fine, but now I want to hide the controls if they cannot scroll in the direction that they are trying to go. so I have something like this;
function tab_left(){
$(".tab_link").each(function(){
//animation here
});
}
Then I want to create a function that will make sure tha...
Hi all,
I have the following jquery function for some links
$(".clickable").click(function(event){
// load dialog content...
$("#dialog").dialog();
return false;
});
What i'd like to do is have JQuery's UI dialog display near the clicked link.
Is there any way to do this using just JQuery.
Thanks!
...
I'm using JQuery from Google CDN and I've been getting stack overflow error (using IE8) at lines 12 (for the min file) and 1076 (for the uncompressed one). The JQuery code at the line where stack overflow error takes me to is:
JQuery.js
...
makeArray: function( array ) {
var ret = [];
if( array != null ){
var i = array.length;
/...
I have 11 images in a row and I want a popout to come out of them if the mouse hovers on one of them. So each 11 images has a different popout. I already have some code to do this, but it will only work on the first image.
Code:
index.html
<span title="Milestones" class="tl-icon">
<span class="tl-msg">
<span class="tl-msg-inside">
<div...
I am at loss to understand how popup windows´ DOM-trees and their manipulation from opener window work. What is the proper way to implement what I am trying to do (described below)?
I have one normal browser window where JavaScript function gathers selected elements and creates POST data string from them.
I then open a popup window with...
How to fetch all result rows in MySQL+PHP?
You know, if I use mysql_fetch_assoc() , it only returns one result row as an associative array. I am using AJAX to fetch the data in a MySQL table.
$result=mysql_query("select * from questions where announcementid='$taskid'")or die(mysql_error());
How to return the value of $result which i...
can we override inline css through javascript? with IE6 compatibility.
I found this pure css solution but not works in IE.
http://nataliejost.com/override-inline-styles-from-the-stylesheet/
http://www.sitepoint.com/blogs/2009/05/27/override-inline-css/
<div class="block">
<span style="font-weight: bold; color: red;">Hello World</...
I had both the validation and the ajaxform working fine alone, but when I try to combine the form doesn't work properly. I am not that familiar with JQuery and so think the syntax is wrong somewhere. Can anyone spot what Im doing wrong?
The form takes two attempts before it validates, and then the form sends but does not give any respon...