I have a few a tags with the name video_button_a
<a id="first_video" class="video_button_a" href="#"></a>
<a id="second_video" class="video_button_a" href="#"></a>
When I click on any of these links i need to embed this in between
<embed
src="http://reelworks.net/player.swf"
width="480"
height="200"
allowscriptaccess="always"
allo...
Can someone provide me with information on how to add both vertical and horizontal scrollbar using jquery? For example a textbox with an Id="txtBox".
...
This code doesn't work what's wrong?
$(".re").focus(function() {
if($(this).attr("type") == "text") {
$(this).attr("type", "password");
}
});
It's supposed to change the input text type from text, to password, but doesn't work when I type in it after I get into focus on it; it's still text.
...
What is the best practice of activating jquery ui widgets for html loaded and inserted into the document by ajax?
I am an advocate of unobtrusive javascript and strongly believe that all functionality accessed by javascript should be also accessible without it. So in the ideal case, each form which opens in a popup, should also have its...
I've put together a snippet of code in ASP.NET MVC in which I'm trying to use the addClassRules methods of jQuery's validator. From what I can tell I'm taking this straight of the examples on
http://docs.jquery.com/Plugins/Validation/Reference
But the page is just submitted it doesn't show any errors. I would like to use the "addClas...
I have this page that i have a rotate slideshow running. I have it currently changing every second for testing. The slideshow works great but stopping it it not easy for some reason. I have a link on the top that should stop it.
<a class="stop" href="#">Stop to play the video</a>
$('.stop').click(function(){
$('#slideshow').cycle('s...
Ok, I have a jquery .post returning what I need it to, but it is not being output properly.
Here is my code:
jQuery(document).ready(function($){
$('#project-for-support-ticket').change(function(){
//Pass The value selected to the get_users_from_project_id() function
var projectSelected = $(this).val();
if(projectSelected == ...
I have a page like this...
<div>
<iframe id="mainContent">
<iframe id="littleBox">
</div>
and I want to do this...
$(".someButton").live('click', function() {
alert(/*The URL That the Main Frame is ON*/);
});
I found this: $("#mainFrame").get(0).location.href, but it doesnt work...
Also, I need it to return the current ur...
I've run into an issue with a Vimeo player that's been set up for a site I'm working on. I have a friend who implemented the slider. The way it's setup is there is an introductory video embedded from Vimeo on the first slide on the homepage, which only shows up on the homepage. The problem is that when a user clicks on either of the a...
Hi All,
I would like some advice on how to set event handlers for the jQuery Autocomplete Combox: http://jqueryui.com/demos/autocomplete/#combobox.
Code examples from the jQuery doc are as per below:
// Supply a callback function to handle the select event as an init option.
$( ".selector" ).autocomplete({
select: function(event, u...
Answerers: How does one literally detect the user's font scale, so that it may be used as a variable?
I am trying to create some if/else statements based on the user's font scaling (not browser zooming), to extend the usability of my sites.
The two given answers are workarounds for a single case (the scenario described). The scenario ...
function insertParamIntoField(url, param, field) {
var anchor = document.createElement('a'), query;
anchor.value = url;
query = anchor.query.split('&');
for(var i = 0, kv; i < query.length; i++) {
kv = query[i].split('=', 2);
if (kv[0] == param) {
field.value = kv[1];
return;
}
}
}
...
I am using Jquery's Scrollto plugin to scroll up and down based on a menu but I would like the menu to stay with the scroller. So if I had a page that was 4000px high and someone clicks the link that takes them down to the 2000px point the menu would slide down there too. Not sure if this is a css or jquery issue. Any help is very app...
I'm originally a .NET dev by heart so I've always been use to having ADO.net and LINQ for strongly typed, easy data access into gridviews and other .net controls. In trying to learn PHP and MySQL with CodeIgniter and a dash of jQuery, but I'm having a hard time visualizing my data access methods.
I want to use a PHP or jquery grid for ...
this is my demo code :
<body onload="initialize()">
<script>
function initialize(){
var d='adddd'
$.getScript('other.js', function() {
a()
});
}
</script>
</body>
and this is the demo other.js :
function a(){
alert(d)
}
then , you will be find a error :
d is not defined
so you have to do this :
funct...
This function works perfectly on IE, Firefox and Chrome but when on the iPhone, it will only work when clicking on a <img>. Clicking on the page (anywhere but on a img) wont fire the event.
$(document).ready(function () {
$(document).click(function (e) {
fire(e);
});
});
function fire(e) { alert('hi'); }
The HTML part is ext...
Hello everyone,
I am using ARSHAW's fullCalendar in one my projects and would like to plot recurring dates, once the user clicks on a date. When a date is selected, I would like to plot next date 10 days after. So if user clicks on Sept. 1, 2010:
Date#2: Sept. 11, 2010
Date#3: Sept. 21, 2010
Date#4: Oct. 02, 2010
The way I would like...
I am doing a delete on a table using jquery,
$('table#chkbox td a.delete').click(function()
{
if (confirm("Are you sure you want to delete this row?"))
{
var id = $(this).parent().attr('id');
var parent = $(this).parent().parent();
$.ajax(
{
type: "...
function insertParamIntoField(anchor, param, field) {
var query = anchor.search.substring(1, anchor.search.length).split('&');
for(var i = 0, kv; i < query.length; i++) {
kv = query[i].split('=', 2);
if (kv[0] == param) {
field.value = kv[1];
return;
}
}
...
I'm using this project as a learning opportunity and will probable be asking some easy questions. Luckily I'm not afraid to look stupid. :-)
I've got jQuery loaded into a GreaseMonkey script. Time to start learning jQ.
How do I go about adding a link to the bottom of Google Reader posts after the tag section?
...