I put together a fading menu of sorts if you want to call it that. The problem that I am having is everything fades fine except the image I am appending to the end of the links. It fades out great, but I cannot get fadeIn to work at all.
Preview: http://cu3ed.com/jqfade/
$(document).ready(function() {
$(".fade").hover(
function ()...
Hi,
I'd like to fire a custom event in the .text() function in jQuery. It seems like this should be possible but i'm having some trouble figuring out the closures(?). something like:
jQuery.fn.text = function(){
_text = jQuery.fn.text;
// fire a custom event/do something
jQuery.apply(_text,arguments);
}
...
I create a Flickr account, create an app and got my API key, created a few photo sets and tested the API call using their API explorer to get the following URL to call:
http://api.flickr.com/services/rest/?method=flickr.photosets.getList&api_key=65746342db5d734353b08cd63398a4b4&user_id=21466829@N07&format=json
In the browse...
I have a script on my page which loads content from an ad network into a div. This ad network has an 80% fill rate i.e. it only serves an ad 80% of the time, the other 20% of the time it doesn't show an ad. Sadly, the ad network doesn't provide me with a callback to tell me when it hasn't served an ad. As a consequence, sometimes this di...
For example, I have the HTML...
<span class="userscontentname">Test</span>
<span class="userscontentname">Testman</span>
then I have the jQuery...
if ($("#userlist_"+search_id+" > span.userscontentname:contains("+search_text+")").length > 0) {
$("#userlist_"+search_id).show();
$("#userlist_"+search_id+" > span.userscontentnam...
What is the non-jquery equivalent of $(document).ready()?
...
Hi, I am trying to build an application that will use an Api like google maps api (or any other api for maps) in order to color the states depending on some information that change.
So for example, let's say I am going to color states green if they have more than 5 people online and this information will change every minute, how can i us...
I'm afraid it might be impossible but is there a way to change the hash value of a URL without leaving an entry in the browser's history and without reloading? Or do the equivalent?
As far as specifics go, I was developing some basic hash navigation along the lines of:
//hash nav -- works with js-tabs
var getHash = window.location.hash...
Hello,
I am trying to load a web page using jQuery and I receive this error
Webpage error details
Message: Permission denied
Line: 3517
Char: 4
Code: 0
URI: http://localhost/js/jquery-1.3.2.js
And here is my code
<script language="javascript" type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script language="javascript" typ...
I have a url like:
http://localhost:8080/myapp/discussions/voteup?id=1
which returns the following json:
{"vote":{"value":"100"}}
I am trying to make a JQuery Ajax Call to post a vote to the url.
$(function(){
$(".vote-up-post").click(function() {
var postId = $("#postId");
alert("Post Value" + postId.val());
...
I'm trying to get my sliding div working properly with slideToggle. First off, here is the working url:
http://cu3ed.com/fadeslider/
The problem I am having with it is I am getting more of a blind effect rather than a slide down effect. I've tried changing the CSS and using negative top margin etc. to no avail. What I am trying to acco...
I'm not familier with Javascript, and I have to convert a Project's Javascript codes to Jquery scripts.
ofcourse I'm not project leader or something like it, I'm just elaborating that this process may has what kind of issues and may face with what kind of needness ?
So if you know any solution to convert Javascript Functions to Jquery ...
How can create overlay div with black background lets say, I have an anchor that fires div to popup, here is the anchor:
<a href="#" title="Open online form" id="open">Suggest</a>
Here is the css of centered div :
.centered
{
width:55%;
position:fixed;
left:18%;
height:200px;
border:2px solid red;
display:none;
}
$("#op...
I need two selectors:
one for ordinary text in a h2 element
and one for text within a strong tag
The first is working with:
selector: 'h2.flashHeader'
But
selector: 'h2.flashHeader strong'
doesn't work for string text.. any ideas?
Markup:
<h2 class="flashHeader">
<umbraco:Item field="headerText" stripParagraph="tr...
hello.
I need some advice for the best approach to use in developing embeddable widgets that my site users could use to show our content on their site.
Let's say we have some content which uses a jquery plugin to be rendered, and we want to give our customers an easy way to embed it in their websites.
one option could be of using an I...
Hi,
This is my situation.I have some 10 links on a page. So when user clicks on those links ajax-same page reload must take place.
To be clear I have something like this.
<a href="test.php?name=one">one</a> | <a href="test.php?name=Two">Two</a>
If javascript is enabled,
Onclick, ajax load must take place.
If javascript is disable...
How do I do the live event (for when new content is injected) with the new way of doing multiple jQuery events:
$('.foo', this).bind({
click: function() {
//do thing
},
mouseover: function() {
//do other thing
},
mouseout: function() {
//do other other thing
},
focus: function() {
...
Is there a possibility to access a i.e "background-image:url()" property inside an inline "style" attribute?
In other words going layers "deeper" than attr('style') does.
I want to manipulate the url inside style="background-image:url(something);"
...
Hi all,
this is my JSON data:
{"ACT":"Australian Capital Territory","NSW":"New South Wales","NT":"Northern Territory","QLD":"Queensland","SA":"South Australia","TAS":"Tasmania","VIC":"Victoria"}
How to display this JSON data in a selectlist?
...
Hi.
I wrote an autocompletion script for an input field on a website. It uses jQuery and works fine. It should look something like this:
Unfortunately, Firefox's own autocompletion gets in my way, overlapping some of the results:
Is is it possible to prevent the Firefox autocompletion field from popping up? (Not only on my machine ...