15,688 Topics
![]() | |
Hi. I have a problem with some JS at my website. The user has to fill out a form, enter his/her name, e-mail, phonenumber, location etc. The problem is that I don't want to have a fake phonenumber entered to my database, so I want to verify the phonenumber by … | |
![]() | Hi, I'm new to JQuery and attempting to write a script to check username availability. My problem is that no matter what I type, I always get back "This username is already in use." JQuery source: [CODE] $(document).ready(function() { jQuery.validator.addMethod("usernameCheck", function(username) { var isSuccess = false; $.ajax({ url: "username_availability.php", data: … ![]() |
Why are there in the javascript variables both null and undefined? And when we use the null or undefined? please help me!!!!:icon_redface: | |
Hi, I'm a beginner of JavaScript. I need the code for creating [b]pgv_pvid[/b] and [b]ssid[/b]. I had searched the web, and got some code, I wonder if the code is right: [code]var curDate = new Date(); var curMs = curDate.getUTCMilliseconds(); pgv_pvid = (Math.round(Math.random() * 2147483647) * curMs) % 10000000000; ssid … | |
Hi, new to AJAX, trying to figure out how to do a very specific thing: I want to have a textarea update a database column and then pull down the info from that column and display it, without refreshing. I'm using JQuery and AJAX and PHP and SQL to do … | |
hi I have script that provides search in multiple sites. But i cannot understand why at the end we use [CODE] return false;[/CODE]? whynot we use return true? [CODE]<script type="text/javascript"> function dosearch() { var sf=document.searchform; for (i=sf.sengines.length-1; i > -1; i--) { if (sf.sengines[i].checked) { var submitto = sf.sengines[i].value + … | |
Hi, I've got a page that I would like to count how many times a each button or hyper-link was clicked, Basically it's what "google in-page analytics" dos'nt succeed to do in my site. 1. Is there a script that does it? 2. What is the best way to store … | |
Hi The below script does the job I am looking for I am not to sure how to make the drop down dependant ex ; Val 1 in box one return Val1 in Box 2 etc.. any idea someone Sydney [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> … | |
I have a textarea box that sends the information to Javascript via onclick(). I want to execute the code the user puts into the textarea. How can I do that? [CODE]var code = document.getElementById('code').value [/CODE] That's part of the function that gets called via onclick. See that variable is called … | |
hi ... frnds i am confused bcoz of j-script , i have used j-script code to hold the position of selected row of gridview . the gridview is supports to scrolling by <div id="grdWithScroll" style="overflow :scroll ; height:200px ; width:100%" onscroll="SetDivPosition()"> and j-script code is <script type="text/javascript"> window.onload = function(){ … | |
Hi, what I want to do is create a menu with rollover buttons but each button also changes the background image of a div. I've managed to change the colour of the div but not add an image there. I've added my code so you can have a look. Case … | |
Im having problems loading content with ajax, the problem its that lets say that I have 2 links on my index.html, one is #page1 and the other one is #games1, well have happens is that if I click on either of them it just loads the same site, even thought … | |
I have the following code doing ALMOST what I want. It shows an input field when the select value is "dropped". The problem I am having is that if I select "dropped" it will display the input field, but if i select a different value AFTER selecting "dropped" the input … | |
Hello, I'm trying to get a var from php into my jquery code, but I'm having no luck. Jquery: [CODE]$.ajax({ type : "POST", url : "sortProp.php", data : "f="+type+"&s="+filter, success : function(data){ $('#propHold').html(data); $('#propHold .prop:first').addClass('active'); alert(data.title); } }); [/CODE] Php: [CODE]$title = array("title" => "$propName"); json_encode($title);[/CODE] I can't seem to … | |
please help me with this.. ---how to put that in every level there will be limit in clicking the box..it will be display and will prompt game over when limit has been ended...the easy level will have less click while the difficult one will have more click.. ---and when you … | |
Hi. I am trying to develop a small webshop for some friends, and I tought it was working very well until I accidentally tested it in IE (works fine in Chrome and Firefox). When someone clicks the "add to basket" there is an On-Click that triggers a function. That function … | |
Look at my code... [CODE]<html> <head> <script> var div1 = ""; var div2 = ""; var div3 = ""; var div4 = ""; var div5 = ""; var div6 = ""; var div7 = ""; var div8 = ""; var div9 = ""; function NewDiv(type) { if(div1 == "") { … | |
I am trying to get information from my database that contains a foreign key that relate to another table, I am trying to enter details of an order and then have the customer ID of that order enter automatically from the customer table. [CODE] [B]Customer Table [/B] CREATE TABLE IF … | |
Hello all, i'm building a register page for my forum my problem faced is i can't disable the DAMN Button! while the user input duplicate or wrong format ! Pls help me! T^T [CODE]<?php include 'dbconn.php'; include 'Header.php'; ?> <form name="frmRegisteration" action="Register.php" method="post" onSubmit="return DataValidator()"> <?php $name = $_POST['txtname']; $password … | |
Hi, I am generating a string from AJAX data which contains forms and submit buttons. I then try to assign this string to a div using innerHTML. This works fine in IE but Firefox strips form tags and every thing in between form tags. How to solve this issue Example … | |
Hi all, I have table in Javascript and it has addrow, deleterow, submit, and functions. when i click it automatically adds new row and it has select option to choose some of them for ex. in added two rows one of them is Motherboard Asus and other is Motherboard Gigabyte. … | |
I am getting document.getElementById("pr_book") is null error [CODE] <script language="javascript"> google.load("books", "0"); function load_viewport() { var viewportDiv = document.getElementById("viewport"); var identifier = '<?php echo $var ?>'; var viewer = new google.books.DefaultViewer(viewportDiv, {showLinkChrome: false}); viewer.load(identifier,handle_not_found,success); var d = document.getElementById('parent'); d.removeChild(viewportDiv); } function handle_not_found() { document.getElementById("pr_book").style.display = 'none'; } function success() { … | |
I used [URL="http://www.ibm.com/developerworks/library/os-php-v525/index.html"]this[/URL] page for making upload progress bar. I downloaded it and uploaded it to the server (you can see it [URL="http://latinus.herobo.com/proba/progress.php"]here[/URL]), and I signed up to Google Maps API and I pasted the code, but it doesn't work. It uploads the file, but it doesn't write the upload … | |
Greetings folks, There seems to be an odd problem with Chrome / Cufon js. Cufon works fine in IE and Firefox, but Chrome is for whatever reason top aligning (vertically) the menu text. Odd enough, when you load the page, it shows you the text align and quickly top aligned … | |
Hey guy, I want to know if there is a way of using PHP in JavaScript. I have no idea how can i get the variables from PHP into JavaScript. I am making a pizza application, the php file is a confirmation page. The user can either go back to … | |
I have Mozilla Firefox 4.0 Beta 12 I have written a small javascript to detect ' and avoid it from getting typed in textbox. This works in IE but not on mozilla. Any suggestion ??? If that is not possible then any other logic to achieve same results ?? [CODE] … | |
I'm a totally beginner in javascript. i need some chunks of code of it. i have a form. i'm going to store the field into mysql. there are 2 conditions : one or all fields empty OR none is empty. when there's no empty field, the data will be stored. … | |
Hello guys, I have a very simple problem for you to solve. It's not simple for me but it's probably very easy to you guys. I've tried searching this but failed. Anyway, here is my problem. I have an image. When I call a function with onclick, I pass the … | |
![]() | Hey there, Anyone know how to use an "onSuccess" method or something similar for "rules" in JQuery validation? [CODE] rules: { username: { required: true, minlength: 3 } } [/CODE] Not quite sure where it would fit or how it would work here - any help would be appreciated. 1000 … |
hi i want to be a web developer, im studing javascript right know but i didnt now how to studey it actually the book im using is awful any recomendation other that w3school thanks for any one that want to help me. |
The End.