Hello all. I'm trying to use the 'this' keyword to work with jQuery. I'm trying to rotate an image when it's clicked by passing 'this' as a parameter in it's onclick function. How would I then reference the image using jQuery?
...
hello,
First, sorry for such lousy description, I am new to javascript, so excuse my lack of actual code:
having a block of text rendered in a browser, text, in order to fit the space, will break into rows, I need to find where the newlines to add a new line some offset, then subtract the offset from the row word lenght (if needed) and ...
Is the jQuery live method using setInterval to update the events?
Does this affect performance?
...
just wondering how I can fade the background color of the whole page.
I have form that I need to fadein when a link is clicked, and I need to fade the background color at the same time.
the code below doesn't work.
<form id="popup" method="post" action="">
<a id="close">x</a>
<p>WAITING LIST</p>
...
I have a database table full of words. What I would like to do is to have a way to show the user in the html in the form of a hyperlink, any of these keywords. Kind of like you see on many forums now a days. When a keyword is noted in the html, it becomes clickable. Is there a way to do this? I'm using php.
Thanks
...
How can I create an event in JQuery triggered when the mouse is down and moving? And only triggered once each mousedown + mousemove?
...
I have this function that makes an ajax call. I'm describing the problem in the last chunk of code comments.
function doop(){
var that = this;
var theold = "theold";
var thenew = "thenew";
$.ajax({
url: 'doop.php',
type: 'POST',
...
Hi, I have an asp.net mvc application where I want to hide/display part of form based on selected line in a dropdown list. This is done by jQuery script:
<script type="text/javascript" >
$(document).ready(function() {
$('#owners').change(function() {
$("select option:selected").each(function() {
$...
I'm aware of the === operator in PHP which connotes not only value equality, but type matching also i.e.
if (20 === "20") //false
Is there something similar in javascript if I'm using jquery? Examples code could help too.
Thanks
...
I am using a combination of jQuery and IScriptControls and I don't appear to be able to use $find in any jQuery functions.
Take the following, for example, I can use $get and $, but I cannot use $find.
// Configure the toolbar groups
$(document).ready(function()
{
// Returns the control
var work...
Help!
I'm having trouble wrestling AJAX to work for me. I have a paginated gallery with checkboxes beneath each image and I need to store the checkbox values in session variables if a user moves between the pages, so when they submit the form at any time it will include all checked values across all pages.
I'm using this jQuery code:
...
Hello everyone!
I am wondering if there is a way to make the jQuery draggable to only drag straight up, down and left, right. I want to prevent the user from dragging a div diagonally. Using the grid option in the draggable UI is not possible in my situation.
http://jqueryui.com/demos/draggable/#constrain-movement
How is this possible...
Hi, I have a table with a lot of text inputs like these:
(they are marks of tests for a few students).
Every field has an associated icon for adding a comment, so when the icon is clicked, a dialog must be shown with a textarea, and then save its value to a hidden input.
An example of a mark field:
<input class="num" type="text" si...
I'm trying to access the document object of a page that lives in an <iframe> from the host page. In other words, I have a page that has an <iframe> in it, and I want to use jQuery on that page (the parent page) to access the document object of that <iframe>.
Specifically, I'm trying to find the height of the <iframe>d document once its ...
Is there a general purpose solution for preserving dom state so that when a user returns to a page by using back/forward, the whole page is in the exact state that they left it?
This post asks and answers why the behavior is inconsistent with different browsers and different javascript libraries...
http://stackoverflow.com/questions/11...
I'm currently using the following code to insert generated content into a DIV:
$(this).next("div").load("getcontent","contentid="+id");
However, at the moment this replaces any content in the DIV by the content returned by getpost. What I would like is to insert the content at the start of the next div. Is this possible/easy with jQue...
it seems that no matter what you size the container, your images have to be that size. you can't just try to dynamically resize and if they are bigger then they bleed into the rest of the space and cover the thumbnails.
so if my images are 1000 x 800, i can't changes the css to support this, even if i want to as the script goes hawwire...
Is there any way I could resize my div elements without leaving gaps on the page? I think the only option is to calculate the possible generated gaps and move the elements around.
Thanks in advance for any idea.
Example - (Please click on the cards in order to resize)
...
I want to create a facebook style auto-complete where you can have several options encircled in a bubble. More can be added and each may be removed non-sequentially.
...
Hello,
I'm currently using jQuery to return some JSON results. Once these results are returned, I'm using them to pre-populate fields in my form.
However, I need some help in pre-selecting items in a drop down box. For example, I have a select box (this is shortened):
<select id="startTime">
<option value="14:00:00">2:00 pm</option...