15,688 Topics

Member Avatar for
Member Avatar for tqmd1

Dear Coders I have following codes [CODE]<html> <head> <body> <center> <script language="JavaScript"> function checkpostal(){ var re=/^\D{A-Z}$/ if (myform.myinput.value.search(re)==-1) { alert("Good") }else{ alert("Bad") } } </script> <form name="myform"> <input type="text" name="myinput" size=15> <input type="button" onClick="checkpostal()" value="check"> </form> </center> </body> </html> [/CODE] With Onclick, I want to test input through regular expression …

Member Avatar for hielo
0
167
Member Avatar for sanityhien

Hello I'm new with AJAX and I'm trying to read an XML file with Javascript. It's supposed to display an alert message but it's not. What's wrong with my code? Thanks! :) HTML [CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>XML Exercise</title> <script type="text/javascript" src="xmlExercise.js"></script> </head> <body onLoad="getData()"> </body> </html>[/CODE] Javascript …

Member Avatar for Troy III
0
302
Member Avatar for jain1.anuj
Member Avatar for Mayank23

i need help, i want to pass a value to javascript from php and it keeps giving me "null". i want to get what picture the user selected. [CODE] <?php mysql_connect('localhost','root',''); mysql_select_db("ajax"); $query="SELECT * FROM xxxx"; $result= mysql_query($query); while($row= mysql_fetch_array($result)){ $rating=$row['ID']; echo "<img src =\"" .$row['filepath']."\" /><br/><a id=".$row['ID']." value='rating' onclick='getrating();'> …

Member Avatar for stbuchok
0
194
Member Avatar for Stickie

Hi, I'm not familiar with the AJAX way of doing this, hence why I'm posting this. I've got this form that needs to check if the user input is already in the database, if this isn't the case it should disable the submit button and display an error depending on …

Member Avatar for fobos
0
492
Member Avatar for tqmd1

Dear Experts I have following codes, it works fine to sum. but when I enter these values 2100.49+100.20 then it says 2,200.6,899,999,999,996 insted of 2,200.69. How to overcome this problem. Please help [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta …

Member Avatar for stbuchok
0
92
Member Avatar for theakshay

Hey guys, i have a javascript code for the "state-city" selection dropdown in my form. Now i have to provide an option for the user to add a state or add a city if it is not already present in the dropdown. I'm using php and mysql. Please help. Thanks …

Member Avatar for cereal
0
191
Member Avatar for peterpa

HI , CAN ANY ONE TELL ME HOW CAN I UPLOAD A FILE TO MY WEB SERVER WITH OUT USING <INPUT TYPE="FILE"/> , I JUST WANNA USE I BUTTON TO UPLOAD A FILE , AND WHENEVER I CLICKED ON THAT BUTTON I WANNA A FILE WHICH IS ON MY SYSTEM …

Member Avatar for diafol
0
235
Member Avatar for rad1964

I have a form, EWMS.php, that is a score sheet for a dart league. In this form I first have a user choose a division. Ajax returns that choice via MySQL database and PHP. Upon choosing a division that also fills in the next drop down choices of team, which …

Member Avatar for rad1964
0
181
Member Avatar for Tcll

anyone mind lending a hand :/ basically, what I have is a code containing 2 iframes inside a div. what I'd like to do is refresh one of the iframes when it's page recieves an update from another user. perhapse I could load the page on the document load, and …

Member Avatar for Tcll
0
164
Member Avatar for softDeveloper

Dear all, I'm passing a javascript String variable varname in a form inside a jsp to another page. [CODE] <form name="form1" action="nextpage.jsp" method="post "> <input type="hidden" name="varname" value="teste" /> <input type="button" value="button" onClick="document.form1.varname.value = function(window);"> <input type="submit" name="button" value="test1" /> </form> [/CODE] When I get the String in the next …

Member Avatar for softDeveloper
0
197
Member Avatar for minitauros

I would like to execute some Javascript after the document has loaded and even after the document.onload functions have been executed. Situation: I'm loading a text-edit field through ajax. When the user submits the form, he is redirected to a PHP file. That PHP file redirects him back to "file.php" …

Member Avatar for minitauros
0
105
Member Avatar for kaosjon

Hi, i am not sure whether this is in the right section or not but i am building an file upload site and want to be able to scan the files on upload for viruses etc.. How would i be able to do this? Any ideas to get me started? …

Member Avatar for Airshow
0
104
Member Avatar for jacob21

I need Javascript validations of : 1. 10 Digits cell number does not start with 0 2. Valid E Mail Address and 3. 6 Digits Pincode

Member Avatar for Airshow
1
142
Member Avatar for Buffalo101

Hello and Merry Christmas to all! Can anyone explain the correct behavior of a web application: what PHP is used for, what JavaScript is used for? For now, I want to make a simple page with radio buttons, drop down lists and text areas. Some will have data from the …

Member Avatar for diafol
0
244
Member Avatar for sachinmaster

I have a slight situation in my app in my jsfiddle. What I want to do which I can't achieve is that I want the functionality of the Option Type, Number of Answers and Answer buttons within each row to match the functionality on top. The problem is that under …

Member Avatar for sachinmaster
0
134
Member Avatar for Martin C++

Hello, I want to validate this form and display error right next to the input field. [code=html] <div id="regForm"> <form action="register.php" method="POST" onsubmit="return validate(this);"id=registration" name="registration"><p> Username: <input type="text" name="username" id="username_reg" /><br /> Password: <input type="password" name="password" id="password_reg" /><br /> Repeat password: <input type="password" name="repeatPassword" id="repeat_reg" /><br /> Email: <input type="text" …

Member Avatar for Airshow
0
131
Member Avatar for maxxxx

I have this alert box that I would like to add a sound after you click ok. Can this be done to the script I have here? Thanks [CODE] //<![CDATA[ var alertmessage="Well this the last and finale Assignment for the JavaScript Level One Course" //Alert only once per browser session …

0
74
Member Avatar for maxxxx

I'm looking for javascript of a bird flying across my screen, is there such thing? or maybe an airplane. Thanks.

0
81
Member Avatar for softDeveloper

Dear All, I'm working on a web application, JSP. I have a script with a javascript function that returns a String. I want this returned String to be passed to another page in a form, when a button is clicked. Any ideas on how to make this work? I was …

Member Avatar for softDeveloper
0
1K
Member Avatar for maxxxx

I have a drop down menu on my page, and I want to change the background color of the box from white to match the rest of the page, how do I do this. Thanks [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta …

Member Avatar for charisma
0
176
Member Avatar for vinc88

i am using netbean to develop a registration form. As this i want to know what is the coding to check input of text, integer, email , so i can restrict what they input..hope some 1 help me =)

Member Avatar for dean8710
0
126
Member Avatar for SamJoe1

Hello! I would be grateful if somebody can advise me how I can build site same as [url]http://www.guide2marbella.com/property/[/url], namely, I want to creat same search form on my site where I can search items by location, etc. I am very new to web development and know only HTML and CSS. …

Member Avatar for simplypixie
0
51
Member Avatar for vky.waqas

[B][B]Hello, i have a form with multiple text boxes jqgrid and a search button. on search button click, i want my jqgrid loads according to the filters that i have passed in text boxes. how can i meet this requirement.[/B][/B]

0
37
Member Avatar for Behseini

Hi Everyone I am trying to modify a jquery plugin ([URL="http://jqueryfordesigners.com/jquery-infinite-carousel/"]Infinite Carousel[/URL]) to present some boxes instead of a plain image content. Here is the [URL="http://www.geoca.com/Sample/index.html"]Demo[/URL] I m not sure if this is more styling or scripting issue but I am encountering with tow problems as: 1 - Contents of …

0
75
Member Avatar for softDeveloper

Hi All! I'm working on a web application, JSP, where a user selects the text with the mouse in html. I want this text to be inserted in a MySQL database as a java string using prepareStatement in Java and executeupdate. Example: String querystring = "INSERT INTO mySelectedTextTable(selectedTextWithMouse) VALUES (?)"; …

Member Avatar for softDeveloper
0
209
Member Avatar for kutchbhi

[CODE] <script type="text/javascript"> aLabe = document.getElementById('alabel') ; function init(){ aLabe.innerHTML= "asdf" ; } </script> <body onload="init()"> <div id="container"> <div id="header" > Google maps Intro 1</div> <div id="alabel">Yo!!</div> <div id="map_canvas"></div> </div> </body> [/CODE]In the above,line 4 throws an aLabe is null error. Why is this? isn't aLabe a global var which …

Member Avatar for kutchbhi
0
148
Member Avatar for rukshilag

my code has a print button and when that is clicked i want a new window to open up wit a list of details that the user edits. that is all the data of the form. (only the values) how do i do this?

Member Avatar for dean8710
0
384
Member Avatar for raphie

I would like to add an advanced print form into a customer web site. They have an online web form but they also want to have the form break apart into sections as PDF files so it's distributor print out only the sections they need. The full order form is …

Member Avatar for dean8710
0
2K
Member Avatar for sunny124

Hi, I am trying to make a round corners script in object oriented programming method. This is purely for learning purposes. The script is no where near complete but I am already having problems with it. I am trying out the techniques described in 'David Flanagan ' text book 'JavaScript: …

Member Avatar for sunny124
0
186

The End.