Hello all,
I want to create a stacked bar chart using jquery.I have already done the chart using static values ,but I have now to do it with dynamic values.Please can anyone help me,its very urgent.
I am using the flot plugin,if any other plugin is good or feasible please suggest me.
Please help me.
Thanks
Ritz
...
I have an image, onclick on wich i make some ajax requests.
i need to pass a variable from $_GET[] to my onclick function, so i deside to do the following
<img id="img1" class="<?=$_GET['value']"?> />
and jquery
$("#img1").click(function()
{
how can i get the class value here???
});
Thanks
...
I'm writing a basic app which involves changing the html in divs referenced by name, and it's working fine in Chrome, Firefox, Safari, etc. but not in our beloved Internet Explorer. I'm loading the content dynamically so I can't give you full code but here's an example of the HTML (where there would be many such divs stacked with ascend...
I would like to know if it possible (and how) to stop a jQuery script on a click event.
I am loading it on a click like this
$("#id_button").click(function() {
$.getScript("script.js");
alert ("The script is activated");
});
And I'd like to stop it in the same way.
...
i have two textfield..one for show datepicker and another one for time..
but i want after input to DB they can combine become one field inside DB..so that i set field type as datetime...
to make them combine..i'm doing some manipulation inside process.php page..this is my code:
$sql = "INSERT INTO inspection_report ";
$sql.= "(Model,Se...
$(document).ready(function() {
$.ajax({ type: "POST",
url: "/getprojects.ashx",
data: "<formData client=\"\" year=\"\" categories=\"\" tags=\"\" freeText=\"\" count=\"34\" page=\"1\"></formData>",
dataType: "text/xml",
cache: false,
...
I am using the following code -
jQuery(".form_" + form_count).html("<div id='message'></div>")
jQuery('#message').html("<center><h2><br><br>Thank You Your form has been submitted.</h2></center>")
window.setTimeout(function() {
history.go(-1);
}, 1950);
Now what i want is that after the previous page has been loaded using hist...
I have a basic newsletter signup form with an email field and two buttons (subscribe and unsubscribe).
I want to submit the button value as part of the ajax data but .serialize() does not include button values since they are specific to an event.
Here is my code:
Javascript:
$('#newsletter_form').submit(function() {
$.ajax({
...
Hello,
I'm trying to insert a partial into a jquery dialog box. The dialog box is working but no partial..
Here is my code :
application.js
$(document).ready(function(){
$("#add_note").click(function(){
$("#notes").html("<%= escape_javascript(render(:partial => @note)) %>").dialog({title: 'Basic Dialog'})
})
})
my vi...
how to create own function and call it another function? like-
$('.mycls li').hover(function() {
var divid = $(this).find('li').attr('some_attr');
call myfunc(divid);
});
function myfunc(divid)
{
$(divid).show();
//I want to hide rest all divs
$('div#info1').hide();
$('div#info2').hide();
$('div#info3').hide();
}
I have 2 questi...
Hello,
I have a table setup like this:
<table id="product_table">
<thead>
<tr>
<th>Name</th>
<th>Bandwidth</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Name #1 (works fine)</td>
<td>Technology<br /><span>3000</span> / 600</td>
...
My hover menu was working properly with opacity effects, but now i dont know suddenly they are not showing the hovered image. Other animations like movements of texts are working......
I dont know much about Jquery. So seriously stucked here.
You can see the website online if you need.
I am also pasting the code here so you can see it b...
Hi,
Can someone please tell me the correct way to modify the following:
$("#datepicker01").datepicker({
numberOfMonths: 2,
minDate: dd,
maxDate: '+1M +31D',
hideIfNoPrevNext: true,
altField: 'input#chooseDate01',
altFormat: 'DD, d MM yy',
beforeShowDay: noWeekendsOrHolidays
});
I need to add a further 5 to the altFiel...
I've attempting to develop a jQuery accordion, which is work ing pretty well so far considering I don't really know jQuery.
The main problem i have is if you click about quite quickly on different sections it will eventially knock the whole accordion out for a short time which wouldn't be good enough really.
I attempted to put
if ($("...
Im trying to access ValidationMessage through jquery. I have
<%: Html.TextBox("vcr_LinkAddress",null, new { maxlength = 255 })%>
<%: Html.ValidationMessage("vcr_LinkAddress")%>
and i want to validate textbox and if it is empty ill print a message in ValidationMessage
...
Hello
I want to serialize and unserialize a form with jquery
But I don't know how to get all attributes of all elements in a serialized way?
please anyone help
thankyou......
...
Here my Jquery code:
<script>
$('.smenu li').hover(function() {
var lid = $(this).find('li').attr('id');
closeAll();
//show perticular div
if(lid == "d1")
{
$('.hbg div#info1').show();
}
...
Aparently a disabled input is not handled by any event (am I wrong ?)
Is there a way to work arround this problem ?
<input type="text" disabled="disabled" name="test" value="test" />
$(':input').click(function () {
$(this).removeAttr('disabled');
})
Here I need to click on the input to enable it.
But if I don't activate it, the in...
I use 'window.location.hash' to add '#something' to the URL without refreshing the page.
I want to know how to do the same but using a slash (/) instead of hash (#).
Why? I have navigation tabs and I use a jQuery and Ajax to dynamically load the data. When javascript is enabled, '#something' is added to the end of the URL to get the da...
Hello all,
I am trying to find out how to allow users to only select certain files when the file browse window opens when an input of type file is clicked. I couldn't come up with a solution for this. Any ideas? I thought the accept attribute would work but I didn't get much luck with that, is the below implemented correctly?
<input id...