jquery

How to hide html elements depending on what title they have with jQuery?

Hi, I need to hide some elements depending on their title value (it's a SharePoint site and sharePoint adds a guid to all element names and ID's), I saw that with jQuery it is possible to do this quite easily but I don't get it to work. I saw http://stackoverflow.com/questions/3080339/get-element-by-title-jquery/3080346#3080346 but it ...

What is the best way to a div on mousemove() in jquery?

Hi, In my MVC application I have a view with the following DOM: <div class="item"> Item Name </div> These “item divs” are generated via a foreach loop inside the view. My goal is show another "div" on mouse move event, which will offer the user some options (like, share, delete.. etc.). I don't have a specific design in mind for th...

how to enumerate all the div tag with same id?

I have web-pages based on widget and I have given all the div the same ID attribute. After the page is loaded, I want to enumerate all the div element which matches the ID element 'widget'. I am using jQuery. Then I want to get the internal div attribute within the 'widget' div which shall be used as a tooltip. <div id="widget" class=...

trouble with jquery colorpicker plugin

Hey guys! I'm messing with the colorpicker plugin for jquery and found that while the sample html page works fine, I can't seem to get it to work in my test.html file. This works: $('#colorPick').ColorPicker({flat: true}); But this does not (entire test html page included for context): <head> <link rel="stylesheet" href="cs...

how to get next slide using jquery instead of scrolling on this?

I am using this plugin in wordpress http://www.iwebix.de/front-slider-wordpress-plugin-demo/ As you can see in the demo above, the left and right arrow buttons are the controls for scrolling the thumbnails. i have already changed these lines to change mouse over/out to onclick event u.onmouseover=new Function('SLIDE.scroll.init("'+t...

JQuery Dialog customization

How can I change the appearance of jQuery dialog box to a tooltip bubble? Does jQuery dialog supports this kind of customizations? ...

Apply css styles to all elements that become/are disabled

I need to be able to apply css styles to all elements that are/become disabled $(document).ready(function() { $("input type:checkbox").attr("disabled", true).css("border","1px solid #000000"); }); doesn't seem to work. any ideas? ...

JavaScript to trigger PHP

Is it possible to have an input text box such that when a person types something and presses submit or enter, I can trigger PHP to submit that data to a database without leaving the page (hence the JavaScript)? ...

jQuery align table (number of rows/cells) based on screen resolution

I have a table like this (8 cells only for illustrative purposes, may be more or less): [1] [2] [3] [4] [5] [6] [7] [8] Each item in each cell is roughly 450px wide, so they fit comfortably next to each other on a 1920x1200 screen (which, incidentially, is mine). However, I need this configuration to change automatically and align the...

Give ID/Class to generated images

Hello. I have 10 or so images coming in from flickr. At the moment they just come in as images with no individual ID or Class names. So I have: <img src="images/01.jpg" width="300" height="273" /> <img src="images/01.jpg" width="300" height="273" /> <img src="images/01.jpg" width="300" height="273" /> <img src="images/01.jpg" width="30...

ajaxform does not fire

I am having some trouble with ajaxform - it does not see to fire. in the ajaxForm code below, the alert never shows up. I have added an iframe (my_frame) via a bookmarklet. That shows up fine. I want to do some stuff when the form is submitted. getScript succeeds (the form loaded alert is displayed). But the function never gets trigger...

How to style "input file" with CSS3 / Javascript ?

I would like to style <input type="file" /> using CSS3. Alternatively, I would like user to press on a div (that I will style) and this will open the Browse window. Is that possible to do that using HTML, CSS3, and Javascript / jQuery only ? ...

jQuery Get Elements Color ?

Hi Guys, I have the follow HTML <div>This is some <span>special <a href="#">text</a></span> and it's super</div> And CSS span {color:#333;} a {color:#777;} a:hover {color:#AAA;} I am wondering what I can use to setup a function that I can extract the color of the <a> and <a>:hover elements? Thanks ...

how to work with indexed properties in struts2?

I have Search Criteria, like seachOn dropdown, matchoption dropdown, seachcontent text box, then find button. In this if i click find these criteria is used to fetch the results from the database. Bu i need to add some more criteria by clicking addFilter link..It seems like adding multiple seach critera by dynamic. How could i achieve th...

Render a partial in a <div> on clicking a link tag

How can i render a partial inside a tag on the clicking of a href tag. <a href = "#" class= "addWidget" value = "Add Widget">add</a> <script type="text/javascript"> $(".addWidget").click(function(){ <%= render :partial => 'form'%> }); </script> ...

flash and jquery or html5 audio?

What is the best way to construct a audio player that can communicate with the jquery on my site? Can I have flash send jquery commands when a song is finished playing? Does html5 audio support a onSongEnd or similar function? Songs on my site are a series of links that trigger jquery to reload a flash audio player with the appropriat...

How to save the input values of an HTML page?

Now, this requirement may seem weird. But i would like to know how to achieve this? I am having an HTML file, which is having few input box, check box, radio button etc. I would like to retain the changes a user [ actually i ] performs on this page. Like if the user has ticked a checkbox then next time anybody open that file should see t...

setInterval with other jQuery events - Too many recursions

Hello, I'm trying to build a Javascript listener for a small page that uses AJAX to load content based on the anchor in the URL. Looking online, I found and modified a script that uses setInterval() to do this and so far it works fine. However, I have other jQuery elements in the $(document).ready() for special effects for the menus and...

Javascript - Connect two lines

In the following picture: I want to connect the boxes in the above with below, Let us call the bottom edge of the top boxes as A and top edge of the below boxes as B Now, I have two arrays containing the points in the line A nd B say A = [ {Ax1, Ay1},{Ax2, Ay2},.... ] and B = [ {Bx1, By1},{Bx2, By2},.... ] In real world it can be ...

Jquery click function is not working in below code..??

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <link type="text/css" href="App_Themes/jquery-ui-1.7.3.custom.css" rel="stylesheet" /> <script src="Scripts/jquery-1.3.2.min.js"type="text/javascript"></script> <script src="Scripts/jquery-ui-1.7.3...