Hi,
I've a site that produces a dynamic table of data for researchers. At the moment they need to select and copy to paste this information into whatever application they want to use it in.
Does anyone know of any way to copy data contained within a div / table to the clipboard using Jquery?
Thanks for your help
Paul
...
Hi I want to apply min-height to ".wide-content"
min-height of .wide-content = height of right content - "274px"
var leftHeight = $(".wide.content").height();
var rightHeight = $("#right_column").height();
alert (leftHeight); alert (rightHeight);
if (leftHeight < rightHeight) {
$(".wide.content").css('minHeight' 'leftHeight - 274');...
I'm using Google Maps' local search, to find businesses in the area of an specific address.
The results will be intercepted and should be displayed in a JQGrid table.
I would like to use JQGrid's "Array Data" to insert the results locally into the Grid.
At this time I have the following code:
<script type="text/javascript">
...
How can I use jQuery to add text labels inside input fields and text fields and when a user clicks inside the input field the text disappears like here on stackoverflow.
Looking for examples or tutorials.
...
i'm using jquery to pulsate text. all fine - but i can't get my head around something: i would only like to pulsate x-number of times and then stop. i'm using the folling code to pulsate a class:
$(document).ready(function() {
function pulsate() {
$(".pulsate").
animate({opacity: 0.2}, 1000, 'linear').
animate({opacity...
Hi,
I have a bog standard html page.
All I want to do is :
use JQuery on that page to send JSON requests to a WCF service
retrieve JSON back.
That's it.
I have the html page and JQuery written, no problem.
However, I can't find one tutorial that works. All the ones I've found have many conflicting parts to do with behaviors...
The following code causes an error in IE:
$("ul.sf-menu").supersubs({
minWidth: 10,
maxWidth: 30,
extraWidth: 1
}).superfish();
The error is saying there is an invalid argument within the jquery.js file itself when the above code is run. What is the problem?
The problem doesn't happen with this:
$("ul.sf-menu").superfish...
I have a HTML select list, which can have multiple selects:
<select id="mySelect" name="myList" multiple="multiple" size="3">
<option value="1">First</option>
<option value="2">Second</option>
<option value="3">Third</option> `
<option value="4">Fourth</option>
...
</select>
I want to get an option's text everytime i c...
Hi,
I'm using the jQuery GalleryView plugin. I've use the plugin on one page and contained it in a div with the appropriate code which sends the div's id to the external GalleryView .js file.
I'm also using jQuery to hide the div on document ready, so the users can toggle the visibility, but for some reason when the div is hidden innit...
im trying to get a post from a php file when it has something from the database.
this is the js script that sends the post request (im using jquery and the smartupdater plugin)
function update(){
$(document).ready(function(){
$("#myp").smartupdater({
url:"listen.php",
type: POST
minTimeout:2000
},function(data){
$("#myp").before(...
Hi,
How can I get DIV id or DIV class using Jquery if the HTML is similar to:
<div class="first" id="first_id">
<div class="second">text sample</div>
<div class="third"><button type="submit" class="some_class" id="some_id" >send</button></div>
</div>
Is it possible to get the class or ID of the div "first", with the click of the butt...
Hi all
This question is all over SO, but no one seems to have had the same problem as I have.
When I do something like this
$(function(){
$('#unique-ul').sortable({items:'li'});
});
I'd expect it to "just work". By and large, it does. I can drag any <li> from any list to any other list, and any sublist of that <li> is dragged wi...
I have an image gallery inside ListView which is inside UpdatePanel. To preview images i use slimbox2. Once i load page all works smoothly but after first post back (moving page with Ajax Async call) slimbox2 fails to load image and just redirect to it as it was normal link.
I did search on this website for solution and found this one.
...
I'm trying to find information on how to serialize a JSON object to query string format, but all my searches are drowning in results on how to go the other way (string/form/whatever to JSON).
I have
{ one: 'first', two: 'second' }
and I want
?one=first&two=second
Is there a good way to do this? I don't mind plugins or whatnots - i...
Hello!
I want to include a 3D Picture gallery on my site.
All I have found were several galleries in flash, but I am looking for one in javascript.
Something like http://www.flashloaded.com/flashcomponents/3dwall/ (FLAT WALL or 180° INSIDE CURVATURE) but in javascript.
Can you help me? It seems to be very difficult writing an own kin...
Hi All;
<select id="COLOR">
<option value="0">RED</option>
<option value="1">BLACK</option>
<option value="2">BLUE</option>
<option value="3">WHITE</option>
<option value="4">PINK</option>
</select>
i not to want $('#COLOR').val(2);
i want $('#COLOR').val('RED');
How to make ?
Thank You.
...
I am trying to change/replaced the action attribute in a form but am having a problem with the selector. I want to change the action to ShoppingCart.asp?recal=Y
Here is the markup for the form.
<form onsubmit="if (typeof(Update_Hidden_State_Fields)=='function') Update_Hidden_State_Fields(); if (this.submitted) return false; else {this....
I've implemented autocomplete on an input field, but the box does not show up and firebug returns "this.source is not a function". I've used autocomplete on other fields of the same page without any problems. (two textarea's).
I'm using the following code to debug, same effect if I run from script file or Firebug command line.
var fake...
Hello,
This is my part of my html
<input type="text" name="age" />
<input type="text" name="poscode" />
<input type="submit" name="submit" value="Next >>" disabled="disabled"/>
This is my script
<script type="text/javascript">
$(function(){
var enable = false;
if($("input[name='age']").val != "")
enable = true;
if($("input[name='pos...
Hi everybody,
I'm trying tu use Jeditable to edit inline some content put in textareas.
So, I call the script files:
<script src="js/jquery.jeditable.js"></script>
<script src="js/jquery.jeditable.autogrow.js"></script>
<script src="js/jquery.autogrow.js"></script>
Then I have a function that sould send data to the server (I kept the...