jquery

Position element near another one, always on the visible portion of page

Hello, I have always the same problem with displaying simple dialog boxes. The markup is as follows: <li class="clickable">element <ul class="options"> <li><a href="#">Option 1 with long name</a></li> <li><a href="#">Option 2 with long name</a></li> <!-- ... more similar options --> </ul> </li> $('ul...

TweetQuote - hebrew not working

Hi there im trying to use tweetquote plugin for jquery, when i use the default username: pauljcampbell its working perfectly, when im changing to mine, raalcoil, it isnt.. ive worked it out a bit and found out its a lang problem, the default filter is for english, when im changing to lang:he , its not working. <script src="{$base_ur...

jQuery lightbox problem

I got two divs, one is a background and the other is the container for a vid which is on top of the former. Another div serves as a button that when clicked, it triggers the lightbox. Here's my code: //0 means disabled; 1 means enabled; var popupStatus = 0; var buttonDivID = ""; var conDivID = ""; //determine which div is clicked fun...

First child from XML using jQuery

<Row ss:AutoFitHeight="0"> <Cell> <Data ss:Type="Number">1</Data> </Cell> <Cell> <Data ss:Type="Number">2</Data> </Cell> <Cell> <Data ss:Type="Number">3</Data> </Cell> </Row> <Row ss:AutoFitHeight="0"> <Cell> <Data ss:Type="Number">1</Data> </Cell> <Cell> ...

Remove a word on click with Jquery and Regex

Hi there I am looking for some help. I have found this script that sort of solves my problem 50% - I want to click on a word and delete the word using jquery similar to the example below. If using the example below it will highlight the word that you click on. <!DOCTYPE html> <html> <head> <style> p { color:blue; font-weight:bold; ...

Jquery conditionally load on a wordpress page

Hi, my website is powered by wordpress and I have conflicting plugins. I found when I remove the <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt; from the header to load the Jquery libary, the plugin works but all other Jquery elements do not. I thought a good solut...

Wrong parameter is being set to function on a succesful jquery $.ajax get

I have an array that stores a few urls of XML files that need to be downloaded. On success, these files need to be processed. But that is where it goes wrong. The problem is quite apparent: for (var i = 0; i < loadMaps.length; i++){ var currentMap = loadMaps[i]; $.ajax({ type: "GET", url: currentMap, dataType...

jQuery validate plugin - validate rule across several input fields

I have a bunch of fields like so created on the fly <input type="text" name="coeff_a"> <input type="text" name="coeff_b"> <input type="text" name="coeff_c"> .. and so on .. I want to validate the input to the above fields, and am using the jQuery validate plugin. I have set up a rule like so jQuery.validator.addMethod( "perc", ...

JQuery Validate (errorPlacement) focus

Hi All, I'm developing an application with asp.net mvc and I have a form to register some customers. I'm validing this forms with JQuery Validate and works fine, but I'm try to make a customization the way like users view the messages, by the way im using errorPlacement. But when the form is validated the message that show in my "div e...

modify click event script to be more specific

I have to the following function that I would like to modify so that it only binds the click event to all href's that = /ShoppingCart.asp?ProductCode="whatever" (whatever = whatever is in there") but not if it is specifically /ShoppingCart.asp?ProductCode="GFT". It must also check or convert a gft or Gft to upper case to check for those ...

Can i find/filter element after $(this) ?

in jquery we can find inner class or something else with $("#id xxxxxx") xx... can be anything. But i am taking element by this like below: $(".something").bind("click",function(){ $(this).find("...... }); and want to take inner element something like : $(this + " .divClassNameOrFilter") I can take the element with $(this).fin...

jquery wrap content between elements

Hi, I have some content separated by <hr> markers. What I need to do is wrap everthing between the beginning maker and the ending marker. Given this markup: <hr class=begin> some content <some tags> more content <more tags> <hr class=end> This is what I need it to be: <hr class=begin> <div class=content> some content <som...

iframe to Only Show a Certain Part of the Page...

Hello, I am working on iframes, and I need to show a certain portion of the page [say, the top right ] in an iframe with about 300px width and 150px height. Example: Say I wanted to put an iframe of www.mywebsite.com/portfolio.php on a page, but have the iframe sized to only show the "portfolio-sports" section at the top right. How ...

jquery fadeIn/out images

I want to switch between 3 pictures fading in and out between them but i really have no idea how to approach this. So i have $('<div id="container"></div>').appendTo('body'); $('#container').html('<img src="1.jpg" />').hide().fadeIn(1500); Where do i go from here ? Multiple suggestions are more then welcomed :D thx I was thinki...

Load and replace image with same name - load and cache image problem

I am trying to load a image from the server (same name but always a new image) into the html page - tag: #webCamStageImage. So far I can load the image but the browser doesn't show me the new image - I guess it's a caching problem - because when I turn on "disable WebCore Cache" in Safari it works. Heres my code: setInterval(function()...

jquery FadeOut for a Class, Runs Multiple Times, instead of Simultaneously, y?

I have a page with the several divs like: By default all are display:none, and I let the user click to show a certain card. Every time the user clicks to load a card I run the following JQUERY: $('.carditem').fadeOut( function() {alert(1) // Animation complete show correct card $('#' + toogleID).fadeIn(); }); What's s...

Jquery Multiple Forms and Form Plugin

Hi All, I have a html like below wherein there are multiple forms. I generate this using JSTL so the number could vary depending on what is enrolled in my DB Each form has its own submit button. Basically, I wanted to use the Form Plugins ajax submit button but I dont know how to reference the form. <form id="form-1" action="approve.h...

How to make two DIVs draggable?

Hi guys, Say I have Div1 and Div2. I want to make that when a user is dragging around Div1, Div2 should also drag along. Any ideas how do I make it? Here's what I got so far... $(document).ready(function() { $("#apDiv1").draggable(); $("#apDiv2").draggable(); //<- how do I link it do Div1 ? }); EDIT --------------------------...

how to print the value of variable in jquery for loop

$(document).ready(function(){ $('#show').click(function(){ var totrows= $('#table').attr('rows').length; for(i=0; i < totrows; i++){ //var rowid = $('#table').$(this).attr('i'); alert(rowid); } }); }); In The above function when we click on hyperlink "Show" we are getting the number of rows from the "table...

how to activate the background div element?

i have two div elements ,box_1 and box_2: <div id="box_1" style="position:absolute;top:0;left:0;width:500px;height:500px;border:1px solid gray;z-index:2;"> </div> <div id="box_2" onclick="alert(1);" style="position:absolute;top:0;left:0;width:300px;height:300px;background-color:red;z-index:1;"> how to activate me?(do not inner #box_1,a...