15,698 Topics

Member Avatar for
Member Avatar for kyle.santelices.31

if(document.form1.captcha.value != <?php echo json_encode($code) ?>){ alert("qq. \n"); return false; } whats wrong with my code? syntax error

Member Avatar for jstfsklh211
0
102
Member Avatar for VNexus

Hi Everyone, Thank you ahead of time for taking a look... Basically, the tables, rows, name and id tags below shown are pulled through by using PHP/cURL (code not shown for sake of realty). Generally, what I am looking to accomplish, is to use JavaScript to loop and parse through …

Member Avatar for VNexus
0
340
Member Avatar for Hanan_1

Hello everyone, I use the example from [Google](https://developers.google.com/maps/articles/phpsqlajax_v3) Now, I would like to know how to change center location from city to another city like this map in [example](http://http://www.enasher.com/billboards) please can you help me to know how becouse im new in google map and i have anthore question in my …

Member Avatar for Ajay Gokhale
0
381
Member Avatar for Iikeloa

Hi I need to put google maps inside my website so that the user can add his location (manually) Then the location will be stored in the database so I can brows it in the display page.I've looking over the web but couldn't find the way to do it :( …

Member Avatar for Ajay Gokhale
0
269
Member Avatar for binaryjc

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 …

Member Avatar for renoldscott
0
618
Member Avatar for gcarterm_1

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 …

Member Avatar for gcarterm_1
0
335
Member Avatar for momal

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 …

Member Avatar for momal
0
644
Member Avatar for Siberian

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);

Member Avatar for Siberian
0
137
Member Avatar for olegb

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 …

Member Avatar for JorgeM
0
186
Member Avatar for begueradj

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

Member Avatar for begueradj
0
227
Member Avatar for matrixdevuk

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.

Member Avatar for matrixdevuk
0
96
Member Avatar for kyle.santelices.31

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

Member Avatar for urtrivedi
0
228
Member Avatar for BTLSP
Member Avatar for BTLSP
0
127
Member Avatar for Mr

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 …

Member Avatar for evaipar
0
257
Member Avatar for oz_nc

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 …

0
131
Member Avatar for Siberian

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 ! :)

Member Avatar for Siberian
0
327
Member Avatar for raopatwari

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.

Member Avatar for Dervish1
0
75
Member Avatar for Kent55

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: …

Member Avatar for Dervish1
0
305
Member Avatar for Kent55

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. …

Member Avatar for Dervish1
0
239
Member Avatar for faysal.ishtiaq_1

[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.

Member Avatar for sina.ak.3
0
155
Member Avatar for Siberian

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 …

0
64
Member Avatar for Haru_1

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 …

Member Avatar for Haru_1
0
243
Member Avatar for winterprince

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.

Member Avatar for iamthwee
0
52
Member Avatar for CrankyMero

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 …

Member Avatar for k99rs
0
202
Member Avatar for nice_true

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 …

Member Avatar for stbuchok
0
220
Member Avatar for bLuEmEzzy

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

Member Avatar for bLuEmEzzy
0
103
Member Avatar for os.kwesi

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

Member Avatar for Alberto Bucur
0
53
Member Avatar for nileshbhanu

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!"); } });

Member Avatar for nileshbhanu
0
334
Member Avatar for emortals

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 …

Member Avatar for Alberto Bucur
0
260
Member Avatar for emortals

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 …

Member Avatar for emortals
0
168

The End.