15,121 Topics
| |
I'm using [raphaeljs](http://raphaeljs.com/). I want to write function -to draw arc- like this, $("#arc").drawArc({ strokeStyle: "#000", strokeWidth: 1, x: 100, y: 100, radius: 50, start: 45, end: 135 }); Above code can draw 90° arc How to make work above function work using [raphaeljs](http://raphaeljs.com/)? [Example](http://raphaeljs.com/polar-clock.html) [For Arcs calculations](https://developer.mozilla.org/En/Canvas_tutorial/Drawing_shapes) | |
Hi I pull data from a MYSQL database to populate a Drop down <td class="<?php print $Bank_ca_error;?>">Bank Name</td> <td> <select name="Bank" id="Bank" tabindex=24 style="color: <?php print $TextColour;?>"/> <option><?php print $_SESSION['Bank_ca'] ;?></option> <?php //Get Data to populate drop down $BankQuery = "SELECT BankName FROM tblbank ORDER BY BankName"; $BankResult = mysql_query … | |
this is my code (html) i dont know how can i open the page in div , i try with iframe but is failed :/ plz help me! <html> <head> <title>Template</title> <script type="text/javascript" src="script.js"></script> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> </head> <body> <div class="PageBackgroundGradient"></div> <div class="Main"> <div class="Sheet"> <div class="Sheet-tl"></div> … | |
I have a form with a select box which is dynamically populated from db. Based on the selection, additional data populates other linked boxes (an input and a textarea). The general idea: the list box has a list of products; once a product is selected, three other input boxes are … | |
Hello everybody, am a bit new here. My first question is, if I am on the right place here? I feel like been in the wrong place. Am looking for some forum where I can ask or finde about "General questions" I have about AJAX sometimes. Am not sure, if … | |
Hi, I have to add css attribute at runtime using jquery.. For example i have the following code: <table width='100%' cellpadding='0' cellspacing='0' > <tr> <td valign='top' width='70%'><span class='header-text'> </span> </td> </tr> </table> I need to add css style to the table. I can access span element of td within table. … | |
hi everybody i need for mi [hobbie web app](http://www.buscocolegio.com) a transference between a java array and a javascript array. this is what i have tried to accomplish but it doesnt seem to work well: <script type="text/javascript"> var arrayJS=new array(); <% String[] javaArray=(String[])request.getAttribute("names");%> arrayJS=<%=javaArray%>; for(var i=0;i<arrayJS.length;i++) //data processing any help would … | |
Hey I tried to access a cookie that has a [object HTMLImageElement] but I found out that cookies have a limit on size so Im trying to do this with pure Javascript I can store the value of what I want in a hidden div and now I want to … | |
Hi $(window).load(function(){ var p = 0; function moveit(target,shift) { p += 0.01; var r = 135; var xcenter = 700; var ycenter = 350; var newLeft = Math.floor(xcenter + (r * Math.sin(p + (shift || 0)))); var newTop = Math.floor(ycenter + (r * Math.cos(p + (shift || 0)))); target.animate({ top: … | |
Greetings! I'm at the moment stuck with something that would be very trivial, but, since I'm not that versed in jQuery and Zepto I can't figure out a way to solve it. I need to animate a slider With jQuery everything works fine $('.slider').animate({ left: '-=1024px' },500); } But with … | |
| Hi all, been using Chrome's Inspect Element to debug some js and I came across 2 anomalies: Directly below the html tag: <object type="{0C55C096-0F1D-4F28-AAA2-85EF591126E7}" cotype="cs" id="cosymantecbfw" style="width: 0px; height: 0px; display: block;"></object> Then in the head area: <script type="text/javascript" id="WCIDWAXScript" defer="defer">function WCIDCollect() { var VIS_SIG_TEXT = "T"; var VIS_SIG_IMAGE = … |
Hi ,anybody plz help me. i created own musttry button(same as like button).what is the problem. this javascript function does not working. planbook is class name. function musttry_add(planbook_id) { $.ajax({ url: $('planbook').val(), type: 'POST', data: { personalId:personalId, planbookId:planbookId }, success: function(data, textStatus, jqXHR){ musttry_get(planbook_id); } }); } function musttry_get(planbook_id) { … | |
# How do i do a previous and next buttons with ajax and get different results on same page? # Im fairly new to coding so i need some help. im trying to build a web site for geology ( rocks, etc). My concept is this. How do i use … | |
Hi all, I really need some help. I am trying to make a website with horizontal scroll (working!), then I am using a jQuery Slideshow (called Camera), and I combined this with the horizontal scrolling website(working!). When I select the page I want from the menu, the website scrolls to … | |
I using listview on an asp.net form.. It has item template and edit template... I want to add ajax slider in both the templates.. I just used on script manager as suggested my many people,, but for reason i can only see one single slider in the top row.. and … | |
Alright, I just started trying to do some CSS (I know, I have too much time on my hands) in order to make my own theme for firefox, so it matches my windows theme a little better. However, I really don't know what CSS is, what the general syntax is, … | |
I want to write a new version of [my jQuery extension](http://benilicous.blogspot.com/2012/05/jquery-jmake-v3-adding-appending.html) but I want to ask before diving into it. So here is what I have and what I want, I am not sure whether I am goind in the good way with this question so feel free to express … | |
Hey Im seeing that I need to learn Javascript and using its classes, functions, declaring it, etc so I need something. What is a good way to learn Javascript (besides practice, because basically its all copy-paste so Im not learning what anything means)...... Thanks! | |
Notice: Undefined index: HTTP_REFERER in C:\xampp\htdocs\cart\order.php on line <?php define('INCLUDE_CHECK',1); require "connect.php"; if(!$_POST) { if($_SERVER['HTTP_REFERER']) header('Location : '.$_SERVER['HTTP_REFERER']); exit; } ?> | |
Notice: Undefined variable: _SESSION in C:\xampp\htdocs\dl\index.php on line 117 here;s the code: <?php if ($_SESSION['username']) echo "Hello ".$_SESSION['username']." ♔<a href='logout.php'> Logout </a> "; ?> | |
Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\cart\ajax\tips.php on line 8 | |
how to make this link alert t0 times <A HREF='javascript:window.alert("attack");'> link </A> | |
Hi, I am using jquery form validation and jquery multiple file upload script but I am having problem with it. My multiple upload script works like this <input type="file" name="userfile[]" size="20" class="multi MultiFile-applied" type="file" maxlength="5" accept="gif|jpg" /> and I dont want to apply jquery validation code on this field but … | |
function validscript() { var fname = document.getElementById("fname") ; var lname = document.getElementById("lname") ; var number = document.getElementById("number") ; var email = document.getElementById("email") ; var confemail = document.getElementById("confemail") ; var street = document.getElementById("street") ; var city = document.getElementById("city") ; var state = document.getElementById("state") ; var zip = document.getElementById("zip") ; if (fname.value … | |
I have a code on the Internet and I have rewritten it, but there are t and n3 variable in the odd_order function that I don't understand their meaning. Please help me to explore it. :D. This code is generating a odd order magic square. <html> <head> <title>Magic Squares</title> <script … | |
I need not to focus on readonly input and when user tab it should jump to next write field. <input type="text" name="first"></input> <input type="text" name="second" readonly="readonly"></input> <input type="text" name="third"></input> <input type="text" name="fourth"></input> <input type="text" name="fifth" readonly="readonly"></input> <input type="text" name="sixth"></input> <script> $(document).ready( function(){ $('input').focus(function(e) { var readonly = $(this).attr("readonly"); if (readonly) … | |
[jCanvas](http://calebevans.me/projects/jcanvas/docs.php?p=arcs) <script> $(document).ready(function(){ $("canvas").drawArc({ strokeStyle: "#000", strokeWidth: 5, x: 100, y: 100, radius: 50, start: 45, end: 135 }); }); </script> It works only on <div id='canvases'> <canvas width='400' height='450'>Please enable JavaScript to use the sandbox</canvas> </div> This is not working on `<div id="canvas"></div>` How to make it work? | |
One question: How do i differentiate when a page is refreshed event from a page/browser closed event? Because it seems that the onbeforeunload event is triggered when a page is refreshed and when it's closed, and i didnt want that to happen ? | |
I have this jquery code below and I need it to attach events on controls as the controls are created dynamically. Right now they are set for a specific control. Thanks $(document).on("click", "#day1Header", function () { $("#day1Details").slideToggle("normal"); $(".expandDay1Details").html($(".expandDay1Details").html() == 'CLOSE' ? 'EDIT' : 'CLOSE'); }); $(document).on("click", "#day2Header", function () { … | |
Hi, I've been strugelling with this code for days now, I new at javascript and really need help. This code worked perfectly and then just stopped working. I want the divs to change on a mouseover event, so basically when you hover over a td it goes to a other … |
The End.