Hello, I am trying to get a random cell in jquery, between 1-16, I have the random number code in Javascript. Now what I want to do is to use that random number, and make the pointer of the table go to that random number? How would this be accomplished. Here is my random number code.
Math.floor(Math.random() * 16)
<table id="bo...
Hey,
I have some jQuery going here:
$('#ticker1').hide();
$('#ticker2').hide();
$('#ticker3').hide();
$("#ticker").oneTime(2000,function(i) { /* Do the first pull out once */
var randomNum = Math.floor(Math.random()*3); /* Pick random div to show */
$('div#ticker div:eq(' + randomNum + ')').show();
$("#ticker").animate({...
Let me give my question some context. I have a JavaScript widget. The widget includes a copy of jQuery from my site. This widget is placed on a third-party site. The widget parses a JSON feed and injects the contents into the DOM. Pretty simple stuff.
If the third-party page already has jQuery referenced and relies on jQuery plugins, c...
Hey! I'm trying to load jQuery content in the same container (div#realContent) and it seems that when I use the a 'title' to enter the div ID (all links the same title) the history stop working.
You can enter here http://home.d23.com.uy/fermata/ user: fermata pass: fermata , and see what I mean.
Thanks
...
Hi
using jquery, i'm trying to disable an input field like this.
<input id="submit" type="image" src="submit.jpg"/>
What i would like to do is disable the button and change the image with a different image (submitGreyed.jpg) to visually notify that button is disabled.
With the following line i disable the button:
JQuery("#subm...
I'm trying to create a Windows sidebar gadget with JQuery and flot.
When I run the gadget in FF the graph is plotted fine. But when I run it from the gadget, it doesn't work. I know the JQuery code is working cause I can use it to change the html, style, etc.
So the problem is in the flot part.
Any ideas? thoughts?
Basically I'm tryi...
Hi, I'm using the jQuery Columnizer plugin, and I'm running into a weird problem. Using 3 columns, I columnize content from a hidden <div> into a target <div>. It distributes only one paragraph to each of the first two columns and then puts all the remaining paragraphs into the last column.
The strange thing is that it auto-corrects it...
I cant seem to figure out why I am getting that error "missing ; before statement" in this part of my xml response...
<?xml version="1.0" encoding="utf-8"?>
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Time="2010-02-05T06:56:30" xsi:noNamespaceSchemaLocation="/config.xsd">
any ideas?
...
How do i create a pop up window/message like what you see on this site when you click the flag link
...
Ok so I found a plugin from here:
http://github.com/jamespadolsey/jQuery-Plugins/tree/master/cross-domain-ajax
That is supposed to return an xml feed that is not on my local server which would usually not work due to a cross domain policy error. And i'm supposed to be able to use a normal jquery GET call.
I have included the plugin co...
$('a.minimize').click(function() {
$($(this).attr('href')).hide();
});
<div class="drag" id="2">
<a href="#content" class="minimize" style="display: none;">2</a></p>
<div id="content">1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<br />1<...
my site
var numStars = 15;
function change_star_image(question_id,star_id){
var count_star_rating = 0;
for (var i=1;i<numStars+1;i++){
if(i<=star_id){count_star_rating += 1;
$("#"+question_id+"_star_rating_image_"+i).css('background', 'url(images/full-star.gif) no-repeat 0 0');
$("#"+question_id+"_star_rating_im...
Hello,
I've got some code like this:
<p>Lorem ipsum<a href=# class="a">link</a><span class="b">Text</span>More lorem ipsum<a href=# class="a">link</a><span class="b">Text 2</span>
And I'd like to let users click the link and be able to do something with the span (make it flash, hide it, whatever). I'm using jQuery, and this is what...
The following is a matplotlib code that generates a scatter plot in as the response.
def plot(request):
r = mlab.csv2rec('data.csv')
fig = Figure(figsize=(6,6))
canvas = FigureCanvas(fig)
ax = fig.add_subplot(111)
ax.grid(True,linestyle='-',color='gray')
ax.scatter(r.x,r.y);
response=django.h...
http://www.blazewebstudio.co.za/Network_2/index.html please help me with the j-query problems on the top horizontal and the side vertical accordion, it bounces and the overflow is out of whack. Also the menu is sometimes strange if you go over it too fast, I Know too many problems but please help.
...
I want to call a dynamic JSP page and pass data to it so it will run a query on my database and then return a set of results.
I would like to do this without a visible page refresh.
So in essence i want to pass two parameters to the dynamic page, policyID and columnID. These will vary depending on which tab (policyId) is active and wh...
I'm using TinyMCE for a textarea on a page but it doesn't play nice in the tabbing order of the other elements.
I can use the following code to capture when I tab out of the first element:
$('#title').live('keypress', function (e) {
if(e.keyCode == 9) {
alert('tabbed out');
}
});
How can I set the focus to a TinyMCE edit...
We're switching from MooTools to jQuery at work. I have a coworker that told me never to use $ as the prefix when using a jQuery method (if I understood him correctly). He said that instead, the more appropriate or safer way (I didn't really follow him) was to use jQuery..
So instead of $.plugin(), jQuery.plugin() should be used, for ex...
Hi,
Let's assume you have a table and the following Jquery code
var rows = $('#ttable').find('tbody > tr').get();
$('#ttable tbody').append(rows[1]);
Right the rows object gets all the "tr". The second line, will append row[1] to the table body, so you should get it in the end of the table.
It works fine, but the original row disappe...
Is there any sample/links/thoughts for implementing asp.net mvc application with jquery portlets and asp.net personalization provider?
All thoughts/ideas/feedback are welcome
...