[EDIT: Sorry to those who already answered -- in my sleep-deprived state, I forgot that this particular situation is a YouTube movie, not the JW FLV player. I can see that there is more extensive documentation on interacting with YouTube movies, so I will pursue that, but any more information is also welcome]
I am using embedded YouTube...
Suppose I have a AJAX function:
function callpage{
$.ajax({
method:"get",
url:"/abc/",
data:"x="+3
beforeSend:function() {},
success:function(html){
IF HTTPRESPONSE = "1" , ALERT SUCCESS!
}
});
return false;
}
}
When my "View" executes in Django, I want to return HttpResponse('1') or '0'.
How ca...
Hi,
I'm trying to use Derek Perez PageSlide Plugin for jQuery in a Wordpress site. Default beahaviour is a link to open it, and click anywhere else on the page to close it.
I would like to toggle images saying "open" when it's closed and "close" when it's open.
So I have played around with jquery toggle() and enclosing the links in div...
What is the general developer opinion on including javascript code on the file instead of including it on the script tag.
So we all agree that jquery needs to be included with a script file, like below:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"
type="text/javascript"></script>
My question i...
I'm implementing item selection functionality in javascript (using jQuery). item is a li that contains some html.
the user can click on one item (makes it selected) and then shift-click on another item to select all the items in between. this basically works OK, however the shift-click also selects (higtlights) the text that appears insi...
I need to wrap three divs into one, but that group of three divs is repeating itself several times in code. Maybe my HTML will explain:
<div class="one" />
<div class="two" />
<div class="three" />
<div class="one" />
<div class="two" />
<div class="three" />
What I'm trying to achieve is this:
<div class="wrap">
<div class="one" ...
I've got an xml doc that looks similiar to:
<schedule techs="52" date="2009-10-06">
<tech name="Ryan (RI, MA, CT, NH)" value="1">
<time value="4">
<HONAME value="Ronald Baron"/>
<ADDRESS value="35 Liepis rd"/>
<CITY value="Canterbury"/>
<STATE value="CT"/>
<ZIP value="06331"/>
<JOBNUMBER value="33028"/>
<RESULT value="C"/>
<NOTES valu...
It's a neat looking script that I can't seem to find anywhere. Any idea on where you can find a script like it?
...
I'm playing around with jQuery for the first time, making a little photo slider plugin to get my feet wet. I can't seem to get the margin-top property to update on my tags. I thought the margins were collapsing, but now I'm not so sure. Please show me the light!
I was thinking the problem was with the the 10px margin on .slider-frame a...
Hi Folks
Hope you can advise, I'm trying to find the closest or a parent id. I think its maybe easier to show you.
Here is some example code.
<li id="search" class="widget color-green">
<div class="widget-head"></div>
<div class="edit-box" style="">
<li class="item">
<label>Available colors:</label>
<ul class="...
Here's the code that I've been trying to work with:
$.getJSON("http://api.remix.bestbuy.com/v1/products(search=" + escape(searchCriteria) + ")?apiKey=" + hhApiKey + "&format=json&callback=?",
function(data) {
if(data.error) {
alert("I'm sorry, there was an error processing your request.");
} else {
alert(data);
}
});
However, ...
Hi,
Depending on amout of <div clas="product"></div> I'm trying to set width for .productholder
<div class="productholder">
<div clas="product"></div>
<div clas="product"></div>
<div clas="product"></div>
<div clas="product"></div>
<div clas="product"></div>
</div>
I can set fix width for .product if this will h...
I have 5 images which I want to use as a background at different times (randomly one needs to be chosen to be the background for the body tag). How do I go this, can this be done in the Rails Controller/method or through ERB or through JQuery?
...
How would I define css inside ()
I know this is a simple question but I can't find the answer.
I KNOW this is wrong...
if ('#Box' == .css('display', 'none')) {}
Thanks
...
I have a varchar field full of text and I want to be able to just show a 100 character snippet of the text, and show a "Read More..." link at the end of the snippet. When the user clicks "Read More..." I would like the page to expand and display the rest of the text.
I guess the 'show/hide' featured could be done with jQuery but i wasn'...
So I've got some <select> tags that I would like to show the entire contents in IE. I've looked around and found a few fixes, but I don't want to include YUI since I'm already using jQuery elsewhere, and would prefer to keep the selects on the page instead of replacing it with DIVs.
In the code that I've come up with, FF3 works great. ...
I have a simple animation which moves some vertical bars a certain distance and then back. I am using the animate JQuery function and with it modifying the left property of the divs. All is well in Safari and Opera (Mac), but in Firefox (Mac) the vertical bars get distorted -- as if the rendering of the top of the bar is not in sync wi...
I used to put my jquery and javascript stuff just BEFORE the /head... on top of the html document....
Thinking about that, for NO good reason...
Now, in some part of the document, there will be generated part in php and i can used some jquery here and there..
So the question is : can i put jqueyr (document).ready on top and anywhere ...
This function should fadeIn the id="Box" when class="display" is clicked if the Box is not animated and has a display value of none Or fadeOut if the #Box had a display value of is not none. What is wrong?
$(document).ready(function() {
$('.display').click(function() {
var currentDisplayValue = $('#Box').css('display');
i...
hi to all
I know that combining two framework prototype and jquery is not a good idea. But I already a lot of code made by prototype, But when I discovered jquery I decided to use this because there is some methods and functions advances than prototype.
My question is I was using jquery autogrow but it was not work if I am using protot...