<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function getKeyCode()
{
var character = document.characterCode.character.value.substring(0,1);
var code = document.characterCode.character.value.charCodeAt(0);
var msg = "The ASCII Decimal Key Code for the...
This js file is simply being referenced by a html file as a script src tag. The form at the bottom of this js file will load. The enter zip section is the section I need an enter key validated in addition to pressing the GO button.
_________
var weatherstate;
weatherstate='show';
function...
I need a script that is solely written as a .js file. It needs to use document.write statements. Could someone could provide me with a simple example that does the following:
Any form name, as a button type.
If the cursor is a active in the input field, the enter key needs to be checked and...
Here is the entire .js file. It is being sourced from the main css. The GO function and button work fine, but hitting enter simply refreshes the page. I tried changing the form input type to button, but it doesn't work at all.
____________________________
var weatherstate...
Here is the code... I've tried changing the form input to submit, but it only refreshes the page...
______________________________
document.write("</select></form></div>");
document.write("<div align=\"center\"><form name=\"zipsearch\"...
Could someone give me an example of using the ENTER KEY if the cursor is active in a given form field? The form I created is in a .js file within a function.
What the users want is to hit enter after they have entered the form data instead/in addition to the submit button.
Thanks!
Yeah, I agree. Would that be in my html form code to do that sort of checking?
Thanks for your feedback, this forum is great. I am a native Wise/Winbatch programmer and am new to java and html still. With this type of feedback, I'll be up on my feet in no time..
Xutopia - that portion worked great - Thank you for the feedback.
I'm now faced with a dilemna like this:
I want to use the form value that I define a variable within a function (to make it simple) and splice in the form inputed value into a url.
For example, let's say the form asks for a...
I have a form that I want to kick-off a .js file. I can get the form to kick-off a function withhin the .html, but I need it to be integrated into a "already written" .js file. Basically what I want this to do is give a user two options -
1. Either lookup weather by zip, in which...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.