15,688 Topics
![]() | |
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? | |
can any one post me php/my sql sample code where i can have collapsable rows with jquery ... for example i have main row (parents rows)and all child rows row of each parent rows open when i click on any parent row.. Thnaks ![]() | |
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 ? ![]() | |
Hi, On google Chrome there is an event when someone closes the window that merely asks if you really want to leave ONLY. What i wanted was to know if there is a way in jquery or javascript that enables the logout code to be run on chrome,(or any other … ![]() | |
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 … | |
Hi, I'm working on a website where i have the list of all products and its info: image, description, reference and a button to see more images of the product. I want to create a checkbox that when is checked all the info is hidden except the image. I'm using … ![]() | |
If someone managed to execute a remote code by exploiting a browser vulnerabil,can or can't a good AV stop it? 1.does the code run under the process name of the browser so AV wouldn't block it? 2.or as a separate process so av can detect and block it if it … | |
Hi, Daniweb I'm working on a website where i did a search system and then i listed the results founded. And now i want to move them with JQuery Sortable. But i'm having dificults can someone help me please? Here's the code: <?php require_once('Connections/futura.php'); ?> <?PHP $prod=$_GET['q2']; $query_prod="SELECT * FROM … | |
![]() | I have a calendar code that contains a table with the td for days of the month as follows: <td class="event"> <div class="eventList" title="Events For Today"> <ul> <li>Event 1</li> <li>Event 2</li> </ul> <br /> <a class="anEvent" href="#">[myDateHere]</a> </div> </td> *[myDate] refers to the day of the month... At the bottom … ![]() |
Here is the code copied from w3schools ([url]http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_suggest):[/url] [CODE]<html> <head> <script type="text/javascript"> function showHint(str) { if (str.length==0) { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState == 4) { … | |
I have looked at quite a few posts on the issue and there seem to be several ways of doing this which is causing me confusion. The validation errors are popping up properly but the form is sent without entry in the form fields. I have tried a few different … | |
i have a error in this program...i m tryin to write a java GUI program that converts character to corresponding integer and vice versa...tis is my code...can anyone help me solve the error???the error is : 1 error found: File: C:\Users\Kumaresen Nair\Desktop\Conversion.java [line: 58] Error: The local variable word may … ![]() | |
Let's debate about the flaws and the benefits of Javascript and HTML/HTML5 and how effectivaly they work together. Lets also talk about what improvements you would like to see in future developments of both. i would love to see every ones opinions. ![]() | |
following is my code,It need to include function on index.php. But, I want to make it **counter.js** I tried my best but I failed to make that. can anyone help me? <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> // JavaScript Function $(document).ready(function() { $('.slogan_main').slogan_main(); $('.slogan_social').slogan_social(); $('#social_media').social_media(); }); $.fn.extend({ social_media: function() { return … | |
Hi, I'm getting `this.form undefined` error message when I submit it. Do I miss anything? Thanks function signup_scramble(uid) { alert(uid.value); return false; } <form action="do_signup" method="post" onsubmit="return signup_scramble(this.form.text_username)"> Username : <input type="text" name="text_username" value="" /><br /> Password : <input type="password" name="text_password" value="" /><br /> <input type="submit" name="submit_button" value="Signup" /> </form> | |
Hi, I am creating a small page with the help of jquery , What I want is when I click on **shortdesc** TR class, only the corresponding **fulldesc ** TR class should be visible. Currently Its showing all the **fulldesc** TR clasees. Please help me to solve this. Following is … | |
Hi, Am using index page with the iframe and redirecting to the login page(login.html). On going to the page, index.html, am getting redirected to login.html. In login.html, it's ask for USERNAME and the PASSWORD. On entering, wrong username or the password, my iframe size keeps on decreasing on each submit … | |
Hey I want to declare a variable that is global that I can use (and modify) all over my website. Ive read that I may be able to do it with jQuery but not sure how to (more importantly, where). Its a simple text field, nothing else. Specifically it must … | |
Hey all, writing some code but keep getting a javascript related "Not Implemented" error. The code is window.onload=setTimeout('loadAll()',10); The code works fine but the error is annoying in that "An error has occured.." keeps popping up. Oh how I love cross browser coding. Anyways, any input is appreciated, thanks! | |
Hey Let me see how I describe this.... I have a textbox (inside of a form) and that form also has a button that calls a Javascript function that does some unrelated stuff. This is all inside of Lightbox. I want to be able to type in text in that … | |
Hello all, Im new here and looking for some advice re the google maps javascript API (which im also pretty new at) The background: I have managed to get some pages that use the googlemaps interface up and running add markers to them etc and allow the user view directions … | |
Hey everyone, Does anyone know of any good JavaScript 3D charts? I found a Pie chart that works pretty nicely (http://keith-wood.name/gChart.html), but now looking for a 3D bar chart. Thanks, Cassie :) | |
hi i have this variable which looks like this ؛ 002005 And i want to split it into two halfs three each . What i want to do is to put the first 3 numbers in a new variable and to remove its starting zero padding to get only 2 … ![]() |
The End.