jQuery.get(window.location.href, function(data) {
alert(data);
alert($(data).html());
});
The first popup is all the HTML good and healthy.
The second popup is blank. Why? (the HTML is XHTML compliant)
...
hey guys this thing drives me crazy. I defined in my stylsheet
ul#menuCnt li a {
color:"red";
}
If i want to make a hover effect, using jquery this won't change any color :(
$("ul#menuCnt li a").hover(function() {
$(this).addClass("brown");
}, function() {
$(this).removeClass("brown");
});
I'am really confused. If I don't ...
When an html element has the height and width set to zero, jQuery does not find the object when using a selector and specifying visible although the object is visible.
for example
$("#test").children(":visible")
the above will ignore children of #test where the width and height is zero. Is this an intended functionality or a bug in jQ...
I have a bunch of textarea's on a page with copy and paste codes with urls inside them.
for exmaple:
<textarea><a href="http://anything.domain.com/x/5">something</a></textarea>
<textarea><a href="http://anything.domain.com/x/3">something</a></textarea>
I also have a dropdown, with a bunch of subdomain o...
Hey. I am needing to get a thumbnail scroller to use for a project. I am unsure how to do this myself but feel what I want is basic. I am looking to simply have a div with left and right arrows that scroll through an array of images.
I am trying to use prettyGallery (http://www.no-margin-for-errors.com/projects/prettyGallery/) and I ...
Hi All,
Can anyone tell me how can i write a function in accept condition and then how does it finds out that what to accept and what not to accept.
Fo r eg i want to accept div a and div b in accept condition.How can i write i through a function.
...
Why people write statement like
e.keyCode ? e.keyCode : e.charCode
Some people also does e.which
Please tell
...
How can I change the text displayed in the status bar of a web browser using javascript?
jQuery can be used as well.
...
I want to do exactly the same thing that in this question : http://stackoverflow.com/questions/1249709/jquery-validation-remote-validation-not-working
The only thing that change is that I'm using Asp.Net WebForm instead of Asp.Net MVC. So, the solution proposed in this post doesn't work for me...
UPDATE
From Jeff comment, here's my ne...
I'm pretty new to jQuery and I've been given a task I really have no idea how to complete. Here's the situation:
I have a form as follows:
Code:
<form action="search.php" method="get" id="cse-search-box">
<input type="text" name="q" size="31"/>
<select name="category">
<option>One</option>
<option>Two</option>
<option>...
Very basic question. I have a very simple web design utilizing a png with transparency, overlaying another base image. The idea here is that it cycles visibility continously, fading in quickly, displaying for a longer interval, fading out quickly, and remaining invisible for an equal longer interval, basically replicating the behavior of...
Can any one please recommend a powerful WYSIWYG (commercial/open
source) editor which has a image upload capability.Which iam planning to use for my publishing platform.
I have been looking for it since morning but could not able to find
it.
I found CKeditor+CKFinder , but CKFinder is not available in django/
python language. I tri...
I am using jQuery 1.3.2, and I'm trying to select some elements in an svg DOM element.
$('svg > defs > lineargradient')
However for some reason it does not select it, I know that I can access other items in the <svg> element since I have successfully retrieved an $("svg > rect").
My SVG DOM looks like this:
<svg width="975" height="...
I am looking to use Javascript or jQuery to pull the alt tag from the specific image that had been clicked in the HTML and copy its value into a caption field.
function change_image(diff){
var newAlt = $(this).attr('alt');
position = (position + diff + hrefs.length) % hrefs.length;
revealImage(hrefs[position]);
$nav.find('.count...
I am using the following code:
function deleteImage2($item)
{
$item.fadeOut(function()
{
var $list = $('ul',$albumcover).length ? $('ul',$albumcover) : $('<ul class="gallery ui-helper-reset"/>').appendTo($albumcover);
$item.appendTo($list).fadeIn();
});
}
"albumcover" is name of DIV and this code is working...
Hi again. This is an additional question following on from this one.
$('.overlay').bind("mouseenter",function(){
$(this).fadeTo('slow', 0);
}).bind("mouseleave",function(){
var $this = $(this);
setTimeout(function() {
$this.fadeTo('slow', 1);
}, 2000);
})
Beneath my .overlay div I have bits ...
Here is my jQuery code. It should parse the json returned by this php script. The php is known to work. It should also convert the date literals to a javascript date object. However, an error occurs at dates.length. Can anyone see what is wrong with the code?
if($("#calendar").length)
{
var dates;
$.post("/dates/jsondates.php",f...
Hello.
I want to change a nested Navigation by drag and drop and i find a nice plugin. Now i want to store the changes in the database, but unfortually I can't read out the id of the parent element. The second thing what I need is the new position of the dragged li element in the list
<script type="text/javascript" src="includes/jquery/...
Does anyone have any recommendations for either of these validation ASP.Net MVC Validation frameworks?
xVal
MVC Validator Toolkit
...
Code for Showing Loading indicator while loading content in the inframe
1)When a postback/submit take place in the form inside iframe
...