I can't seem to find the function to remove a shape or path from the canvas after it has been created.
So I'm creating a bezier curve between 2 points with
beginPath();
bezierCurveTo();
stroke();
closePath();
. How can I remove this from the canvas once it's been created? I need to be able to call the remove function via toggle() and...
How to call a method on a server side from JSON. Below is the code I am using
SERVER SIDE:
[WebMethod]
private void GetCustomer( string NoOfRecords)
{
string connString = "Data Source=Something;Initial Catalog=AdventureWorks;Trusted_Connection=True;";
SqlConnection sCon = new SqlConnection(connString);
SqlDataAdapter da = ...
Hi, I'm making a plugin and one of the options is a standard callback. I want the user to be able to re-run the jQuery plugin's this.each() which basically re-runs the plugin, for example;
callback: function(){
// some code to rerun the plugin here after 10 seconds
}
I know I can do this like so: $(this).plugin_name(); but it won'...
I've tried achieving a hover/selected color change for a particular field, but I'm thinking jQuery is the answer. I've looked into some button click tutorials, but maybe I'm not just seeing it or doing it correctly.
The idea here is that when a user hovers over a Headline, the background color changes, when they click the headline to ex...
I take categories from another page with an ajax call. The problem is, data taken from another page needs to be part of another of an event; tabs plugin.
I get the following error with this code.
$.ajax({
dataType: "xml",
success: function(xml) {
$(xml).find('row').each(function(){
var id...
Slight problem, I've been working with a multi-accordion for a News panel.
Everything is working fine, but there is an issue that has just recently come up.
Underneath the headline I have information on when said headline+article was posted and when, and also if there are any comments.
I intended to make the author and the number of com...
Hello all,
I've recently been using the following piece of code to limit my 2nd Date picker (end date) so that it does not precede the date of the 1st Date picker.
$("#datepicker").datepicker({
minDate: +5,
maxDate: '+1M +10D',
onSelect: function(dateText, inst){
var the_date = dateText;
$("#datepicker2").da...
What is jQuery for Document.createElementNS()?
function emleGraphicToSvg(aGraphicNode) {
var lu = function luf(aPrefix){
switch (aPrefix){
case 'xhtml': return 'http://www.w3.org/1999/xhtml';
case 'math': return 'http://www.w3.org/1998/Math/MathML';
case 'svg': return 'http://www.w3.org/2000/svg';
}
...
Using a plugin for sliding- when you click "avonmore" it just comes up loading images while the rest seem to be fine
this uses both anythingslider and codaslider but i think codaslider is the problem
http://justni.com/wip/mdd/martin_duggan_portfolio.html
...
In the following table: how to adjust the height and width automatically for the table.
i.e, if the data is more it should display all the data else present data in a fashionable manner
<table id="mytable">
<tr>
<td>more data.............................................................................</td>
<td>a</td>
</tr>...
I am using a jquery plugin from [ FilamentGroup ] called DateRangePicker.
I have a simple form with two text inputs for the start and end date that I bind the DateRangePicker to using this
$('input.tbDate').daterangepicker({
dateFormat: 'mm/dd/yy',
earliestDate: new Date(minDate),
latestDate: ne...
I am pulling categories from an xml file. I only have 5 categories but the code below keeps pulling categories indifitely! Weird thing, I dont even have a loop in the xml function.
$.ajax({
dataType: "xml",
$(xml).find('row').each(function(){
var id = $(this).attr('id');
var Catego...
Hi
I'm looking for a slide effect for a navigation. But in my opinion the slide effect of jQuery is a little strange, or doesn't really fit my needs. The list items kind of appear but aren't animated (the container is only animated) when I apply the slideDown,slideUp,toggleSlide effect. I would like to have the list items animated as we...
What is the best way to replace the currently selected tab and its contents? The content is dynamically generated with jquery, not loaded via a URL.
I need to do this from outside of any tab code or tab event handler (show, add, etc.). There is a link elsewhere on the page that should do the following when clicked:
Change the tab's ti...
So I have this problem with strings and switch-case, and I'll try to keep it as simple as possible.
Here event.keyCode has the value "65", and is the result of a keydown event of 'a' (using JQuery).
if (event.keyCode == "65") {
alert("hmmmm");
}
That works, but:
switch (event.keyCode) {
case '65':
alert("Yay!");
b...
Hi all - when I look up the syntax for .data(), it gives examples like this:
$('body').data('foo', 52);
I am doing AJAX loads and I was wondering if it is possible to store the incoming html using .data() so once the content is loaded, I would not need to do another AJAX load if the same link is clicked again - I would check to see if...
Hey
I have some problems sending an id though jquery.
I have a form select with some values, i want to "grap" the id when change option selection.
Output error: [object Object] !! :/
<select name="case_name" id="case_id">
<option value="10009" >Case 1</option>
<option value="10010" >Case 2</option>
...
So, I've been trying to develop this multi-accordion news section for this site.
It's actually all working, thanks to an insightful plugin. I've modified it a little bit so it works as I want it to, but I've run into two issues, one which is possibly CSS.
Issue #1:
The idea for the user is that when they view this page, they see all th...
I know nothing about jQuery but am an experienced C++ programmer (not sure if that helps or hurts). I found jQuery code that gives me the row and column index of a cell in an HTML table when a user clicks on that cell. Using such row-column index numbers, I need to change an attribute's value in the previously selected cell and in the ce...
Anyone know how I can get "Posted by AUTHOR on April 3rd, 2010 | 0 Comments" underneath the headline of the news links WITHOUT it being apart of the A CLASS? I want it to look, read, and function like:
[IMAGE] HEADLINE
Posted by AUTHOR on April 3rd, 2010 | 0 Comments
All of that in the initial looking field, then the user can ...