15,694 Topics
![]() | |
I want to make a Maze Game that that a learning AI player which should randomly moves and be able to learn the path that will solve the maze. the maze will have obstacles, colored in RED. when the AI reaches an obstacle, it will start again from the beginning … | |
REALLY basic stuff here. Pretty new to jQuery. I'm trying to add two values (these happen to be the total height of two sidebars. I use alert for each and receive the correct height. But, when I try to add these together, I get the [object Object] return. To make … | |
I'm in a fix with JQuery and ASP.Net! This is my script code. I have used autocomplete to list names of courses from a database. I have a web form named Courses.aspx which has a master page. <link rel="stylesheet" href="css/jquery-ui.css" /> <script src="js/jquery-1.8.3.js" type="text/javascript" language="javascript"></script> <script src="js/jquery-ui.js" type="text/javascript" language="javascript"></script> <script … | |
The follow code isn't working, I'll probably have to supply more info :) var headline = document.getElementById('header'); var headlineParent = headline.parentNode; var outputResults = document.getElementById('goat'); outputResults.innerHTML (outputResults); | |
I have been stumped by this completely. Please help. I have a jQuery site that has a form with 2 hidden fields. With javascript, I get information (2 numbers from phone sensors) and set those hidden fields with the numbers. (works fine). I then automatically submit the form, and correctly … | |
![]() | Howdy, How can I disable Javascript in Firefox (version 27 and 28) on Windows ? There is no checkbox on the Content tab as I read on other forums ! Regards from Begueradj ![]() |
I'll put it simple, I suck at Javascript. How would I make a code editor, using a textarea that you can press [tab] and then it does this: " ". And when you press enter, the indent stays. | |
if(document.form1.captcha.value != '$_SESSION["code"]'){ alert("Wrongwrong captcha \n"); return false; } hello ,i just want to ask why is it not running ?i decided to convert my php function to javascript . thank you | |
How can I include in a form uploading a picture from my computer? | |
Till now I was expecting that there in no block level scope in Javascript. But after reading this article I came to know that block-scoped variables are introduced in javascript. Although this article <[Everything you need to know about Javascript variable scope](http://www.coolcoder.in/2014/03/everything-you-need-to-know-about.html) > has a very good explaination about the … | |
I have an Android Project for my homework. I will upload an image from phone gallery and find color which is dominant but color band includes other remarkable colors. This is what I want to do exactly. I found a website when I was researching. http://lokeshdhakar.com/projects/color-thief/ . It’s written with … | |
Hi, I didn't know where to place this thread :) Any recommendations for an IDE app to save snippets of code within the program, I looked online, and there are many options, too hard to pick ! :) | |
I am beginer in java script. I need to do this in javascript I have a char feild, in which date is stored. I need to pass a parameters like 'PST'( pacfif timezone) and char feild, in which date is stored(2014-03-17 21:27:01). that should convert to CST time. | |
Hi, I am making a game in JS where a player has to move in a grid movement and the grid contains squares of different colours. Each colour should affect the player's speed. I am learning JS so I appreciate any help. I have the following code at the moment: … | |
Hi, I need to make a game in JavaScript where a user moves an image (or anything) around a grid and if they hit a wall they lose a life and in each grid box there needs to be colours and different colours have different speed affects on the player. … | |
[Click Here](http://download.geonames.org/export/zip/)In this link, there is a txt file with all the zipcode and lattitude, longitude for US. How do I get lattitude and longitude for a zipcode from this text file, using javascript as I wanna create a google map application, that displays a location after providing a zipcode. | |
var pizza = "hello there"; function orange() { document.write("hello there "+pizza); } orange(); function orange() { document.write("what is going on"+pizza); } var pizza = "hello there"; Why can't you create a global variable after a function, as done in the second example. Why for a global variable to work must … | |
This is really stupid question and i feel ashamed to ask but i kinda have to. So here is the thing, in my college/school we got some sort of homework which isn't a "must do" but i wish to for myself, so thing we need to do is, when i … | |
Hi I am new to javascript and am working on Linux mint OS.I would like to know how to randomise a 3*3 matrix consisting of nine thumbnail images every time you hit the refresh button in javascript,without displaying the same order of images twice in a consecutive manner. ![]() | |
So here is the thing its been days since im trying to solve this, i'm debuggin a project from the company i work, its a web system, and here is the thing i have a javascript file which im going to call 'docart.js' and a core file which i will … | |
Hello, I need to transliterate the names of employees that are fetched from my database and write the transliterated values back into the database... For this I need to run a javascript code in a loop for as many no of records as in the database.... The code I am … ![]() | |
Good Day, guys, please help me, after validation in javascript,I want the user to go to the next page. I tried window.open ("sinfo.php"); The problem was it opens in another tab. I want the next page (sinfo.php) to be on the current window. Thanx | |
Hi All, I want a script that will allow me open a link to open in a frame when clicked on the site when the link is. Please see this example page: http://www.samachar.com/US-judge-will-not-change-Pandoras-songwriters-licensing-rate-odpiKOfgdce.html Will appricate any help. Thanks | |
FB.api('/me', function(userInfo) { console.log(userInfo.email); var emailid = userInfo.email; console.log(emailid); }) $.ajax({ url: 'index.php?r=tryon/saveemailid', type:'post', data:{'saveemail':emailid}, success : function(data){ alert("success!"); } }); | |
Hello all, I am new to javascript and looking for some help. I have searched around different forums but my skills have not served me well to build a working script. I have a simple form with 4 checkboxes and a submit button. Each checbox has a unique value. The … | |
I have hopefully a relatively straight forward one for you guys. Unfortunately not so straight forward for me. I have a an existing java script that works with a group of checkboxes that I have. Its quite simple, If you select a checkbox and click submit the javascript function will … | |
I am very new to this and have been given code for a website i have. Please can someone help me and let me know how to convert code to an image? I have searched everywhere and cannot find the answer. ![]() | |
Hello all, I am new to javascript and looking for some help. I have searched around different forums but my skills have not served me well to build a working script. <script language="JavaScript"> var myDate = new Date(); /* hour is before noon */ if ( myDate.getHours() < 12 ) … | |
I have the Ajax call listed bellow inside a jquery function, and the ajax call is not working. I've used "alert" to debug and its like the jquery function didn't even had the ajax call. Nothing inside it is processed, with no sucess and no errors. Isn't it possible to … | |
<?php $con = mysql_connect("localhost","root",""); $db = mysql_select_db("abc"); if(!$db){ echo 'Could Not connect database'; } $sel = mysql_query("select * from user_registration"); ?> <script type="text/javascript" src="http://code.jquery.com/jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('input[type="checkbox"]').click(function(){ //how to select multiple checkbox value here?????????? }); }); </script> <div> <?php while($row = mysql_fetch_array($sel)){ ?> <label> <input type="checkbox" name="<?php echo $row['user_id']; … |
The End.