15,113 Topics

Member Avatar for
Member Avatar for varma51

actually i want to compare pass1.value with pass2.value...dis is my code please check it.. <html> <head> <script type="text/javascrpit"> function myFunction() { alert " pass1.value"; var x=document.getElementById("pass1").value; var y=document.getElementById("pass2").value; if(x == y) { alert "password matches"; } else { alert "password dosn't matches"; } } </script> </head> <form name="mailform" method="POST" action="#"> …

Member Avatar for subramanya.vl
0
68
Member Avatar for Thevenin

Hi all, I am trying to create an horizontal menu with an horizontal submenu and I would like to leave the submenu opened after a click. Unfortunately I am not so good in jQuery and I need some help to create it. Here is the link with the code + …

Member Avatar for elneco
0
121
Member Avatar for eburlea

Hi. In March current year I started learning html, css, php, mysql, and a month ago started with Javascript. I have a webpage that I am working on to have practical tasks for finding solutions to them. I have created a Javascript code that colores the rows of a table …

Member Avatar for eburlea
0
243
Member Avatar for Stuugie

Hi all, I'm about to get a little long winded here and I'm sorry for that but I have a couple of issues that I need guidance with. I have assembled a procedure that basically performs a bunch of web browser clicks to query Statistics Canada (SC). The query itself …

Member Avatar for Stuugie
0
524
Member Avatar for eburlea

Hi. I have a javascript code inserted before closing tag </body> that is meant to change the color of a table row when the mouse is placed over it. It works only when I remove the css file. Please advise what is the problem, I need them working together. The …

Member Avatar for eburlea
0
217
Member Avatar for rubai

hi, I am new to javascript learning. I just want to know the detail explanation of this code given in w3schools. http://www.w3schools.com/js/tryit.asp?filename=tryjs_lightbulb I know method match() works for finding match. But I can not understand the function. I have knowlege of C. Know if...else, while loop, for loop and the …

Member Avatar for Taywin
0
556
Member Avatar for Szabi Zsoldos

Hi guys, A quick problem that I'm facing with a return method. I've created a page for a friend with a questionnaire and i am validating all the radio buttons, this works nicely. When i want to verify the input fields of text type, it alerts me but the return …

Member Avatar for Szabi Zsoldos
0
142
Member Avatar for rotten69

Hey there, I'm just having a tiny problem with this function. the toggle function works fine but what I want to do is to display the date whenever particular buttons are clicked or active. function showDate(element){ if(element == "#selection3" || element == "#selection4"){ document.getElementById("dateinput").style.visibility = "visible"; }else{ document.getElementById("dateinput").style.visibility = "hidden"; …

Member Avatar for rotten69
0
288
Member Avatar for lunie15

how do you validate a form soo there is no alerts all i need is image and words to display next to the text box when something incorrect has been typed in

Member Avatar for Bachu
0
1K
Member Avatar for Eggstraordinary

I'm having trouble with this code. Whenever i clicked the button to show the hidden text, it displays the text but only like for 1 second and hides again. Am i missing or something? $(document).ready(function(){ $("h3").hide(); $(window).load(function(){ $('#loginbutton').click(function(){ $("h3").show(); }); }); });

Member Avatar for Eggstraordinary
0
128
Member Avatar for ssfox

Hello Every one, Im trying to modify the following code so it can save for multiple edited text while at the moment this code only saving one (first) edited text ... could anybody please modify this code for me say for example: you modify it to save 3 or 4 …

Member Avatar for ssfox
0
355
Member Avatar for hlamster

I am trying to toggle rows in a table based on the selection of a radio button. The functions is as follows: <script language='javascript' type='text/javascript'> function showHideRows(clsName, hideshow) { var table = document.getElementById('fullTable'); var rows = table.getElementsByTagName('tr'); for(var i=0;i<rows.length;i++) { if(rows[i].className != clsName) continue; if(hideshow='hide') { rows[i].style.display = 'none'; } …

Member Avatar for hlamster
0
588
Member Avatar for divyakrishnan

Hi.. I used following regular expression "/^[0-9]{1,2}\-\[0-9]{1,2}\-\[0-9]{4}$/" for email validation. It won't check the mail id like "testmail@gmail" . It will work "testmail@gmai" Can anybody suggest solution for this?

Member Avatar for pritaeas
0
79
Member Avatar for cali_dotcom

i have a php application where users can apply for a bonus. but there is a confirmation page before the bonus redemption code runs. the issue is that in IE, if you hit f5 right after you click the continue button, the confirmation page refreshes while the bonus redemption code …

Member Avatar for pritaeas
0
742
Member Avatar for cigoL..:)

Hi guys! I don't know if i post it in the right forum page, but I would like to ask if it's possible to put color on the last row of your table (LAST ROW ONLY). the data is from SQL. I would appericiate any references or links, snippets, anything! …

Member Avatar for diafol
0
106
Member Avatar for code739

Hi fellas, i have this situation i have an field that ask for a mobile number like: `Mobile number <input type="text"/>` now i want that instead of the input type, the user could choose a certain mobile code like +63 and its prefixes or is there any librirary for this... …

Member Avatar for radow
0
63
Member Avatar for alanlee9898

Hi, I wanted to create a progress bar with the jquery modal when it's downloading. How I can do it in jquery / Ajax ? I was trying with this http://johnculviner.com/post/2012/03/22/Ajax-like-feature-rich-file-downloads-with-jQuery-File-Download.aspx , but not working. The code for the download link : <a class="download" href="${cmd.fileUrl}"><span>CSV</span></a> It's using url to download …

Member Avatar for alanlee9898
0
550
Member Avatar for tibormarias

Dear Sirs, I have been playing around with this so far, and couldn't get a good solution. Well I have my simple code : <html> <body> <a href="#" onClick="document.write('P');>P</a> <div id="a">a</div> </body> </html> Well, normally, this onClick event directs us to a new empty page showing a 'P'. I want …

Member Avatar for JorgeM
0
1K
Member Avatar for nagachaitanya

<!DOCTYPE html> <html> <head> <script> function formSubmit() { document.getElementById("frm1").submit(); } </script> </head> <body> <p>Enter some text in the fields below, then press the "Submit form" button to submit the form.</p> <form action = ""> Auth: <select name = "Auth"> <option value = "Server1">Server-1</option> <option value = "Server2">Server-2</option> <option value = …

Member Avatar for JorgeM
0
147
Member Avatar for eburlea

Hello. Please advise what is wrong in the following code that align and border attributes change when mouse is over the table, except the background color. <table id="myTable" width="200px" cellpadding="0px" cellspacing="0px"> <tr> <td>One</td> <td>Two</td> <td>Three</td> </tr> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> </table> <script> myTable.onmouseover = function(){ myTable.setAttribute("align","center"); myTable.setAttribute("border","1px solid"); myTable.setAttribute("bgcolor","#FF0000"); …

Member Avatar for eburlea
0
24K
Member Avatar for DrChocolate

Dear Everyone, I have a functional instant search (in draft at [Click Here](http://www.woofwoofwoof.org/is08/search.htm)). I want the search to function very similarly to Google. This will help sighted people figure it out, and bring me much more in compliance with accessibility standards. Unfortunately, I'm missing two "Google-oid" features: . 1) **How …

Member Avatar for Airshow
0
345
Member Avatar for raul8

Using Ajax after an year...please tell me what I'm missing: JSP/Ajax File: [CODE]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> <script type="text/javascript"> function login() { var xmlhttp; var username = document.getElementById('username').value; var queryString = "username="+username; …

Member Avatar for i_M_patil
0
248
Member Avatar for Gobble45

Hi all, I am setting up a registration form for a website im building. When the user enters his/her information i would like to validate that the Username/Email aren't already in use. At this point in time ive got my mind set on a function that runs 2 seconds after …

Member Avatar for Gobble45
0
481
Member Avatar for Tko_1

Not mine but has been usefull so thought i would share. <script type="text/javascript"> function toggleMe(a){ var e=document.getElementById(a); if(!e)return true; if(e.style.display=="none"){ e.style.display="block" } else{ e.style.display="none" } return true; } </script> <input type="button" onclick="return toggleMe('para1')" value="Toggle"> <div id="para1" style="display:none"> blah blah blah blah blah blah blah blah blah blah blah blah blah …

Member Avatar for Troy III
0
206
Member Avatar for jeffcogswell

IE9 is on the horizon, and there has been plenty said about it. But what about its web development aspects? In this article I look at its web developer tools, and decide whether I'll start using it in my own web development. Like most web developers, I abandoned IE several …

Member Avatar for fiascolabs
2
1K
Member Avatar for EonsNearby

My team and I are tasked with making an interactive animation, that teaches college students about DNS cache poisoning, and host it on a website designed in HTML5. The interactive animation needs to be viewable with all web browsers and without requiring any plug-ins or downloads (e.g. Flash cannot be …

Member Avatar for Taywin
0
104
Member Avatar for millsy007

Hi I am using some code to validate uk postcode. I was wondering how I could make this work with AJAX so that the check is carried out on entry. Here is what I have so far: <form name="postcodeform" method="post"> <input type="postcode" /> Postcode<br /> </form> function IsPostcode($postcode) { $postcode …

Member Avatar for Taywin
0
373
Member Avatar for Buppy

Hi, I have the following HTML: <ul> <li> <div>Something</div> <ul> <li> <div>Something</div> <ul> <li> <div>Something</div> //more lists can come </li> <li> <div>Something</div> </li> </ul> </li> <li> <div>Something</div> </li> </ul> </li> <li> <div>Something</div> </li> </ul> The list can continue endlessly and the count of sublist is unknown (user defined). Is there …

Member Avatar for stbuchok
0
101
Member Avatar for code739

Hi guys i have a problem here i have and input type file which will be containing an image file <input type="file" onchange="validate(this)"/> now my code below work in its extension detection but if it is invalid the input file still have i value i want it that if the …

Member Avatar for code739
0
3K
Member Avatar for Khav

Hi Guys , i started experimenting a little bit with javascript . I want a javascript dialog that ask user to delete a file.Buttons should be yes or no.The javascript should load as soon as page load **No button is used**. Can you please post a sample code for it …

Member Avatar for Khav
0
3K

The End.