Hey epots9 it rocks!
I don't know how to say it, but really thank you for your time.
Ed
PS I hope I can keep your e-mail for other projects but this time for real money.
User Profile
Collapse
-
quick question eposts9, is showing the city and state but I'm missing the zipcode.
do I need to add to this code the zip?Code:document.getElementById('city1').innerHTML = city + ', ' + state;
ex. Santa, Clara (missing the zip code)
EdLeave a comment:
-
I GOT IT! it finally works!
your da man! thanks for patience! and good help!
EdLeave a comment:
-
eposts9 here again, like this:
E...Code:var city = document.getElementById('city').value = results[0]; var state = document.getElementById('state').value = results[1]; var city1 = document.getElementById('city1').innerHTML = city + ', ' + state; var zipcode = document.getElementById('zipcode').value; document.getElementById('state1').innerHTML = "North Call 408-458-4855";Leave a comment:
-
epost9 which variable do I need to declare?
Ed...Code:document.getElementById('city').value = results[0]; document.getElementById('state').value = results[1]; document.getElementById('city1').innerHTML = city + ', ' + state; document.getElementById('zip').value; document.getElementById('state1').innerHTML = "North Call 408-458-4855";Leave a comment:
-
By the way your line 6 is wrong if you look at the code is no a ONE long line.
Thanks again
Ed...Leave a comment:
-
Can you show me one example of how to declare the variables? Please.
Thanks a lot for your help!
Ed...Leave a comment:
-
Yes I did, here is the HTML with the chnages:
...Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>ZIP Code to City and State using XmlHttpRequest</title> <script language="javascript" type="text/javascript">
Leave a comment:
-
nope still same, just shows the text boxes info and nothing on the DIV
I wonder if the DIV tag is wrong?
EdLeave a comment:
-
-
Hey epots, thanks for your help! I've updated with the new tags and still don't work? is there anything missing in the DIV tags? I've just can't figure this out?
here is the new HTML and script code:
...Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head>
Leave a comment:
-
Here is the HTML with changes:
...Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>ZIP Code to City and State using XmlHttpRequest</title> <script language="javascript" type="text/javascript"> var
Leave a comment:
-
But I'm trying to get zip, city and state info inside the textboxes from there I want to extract that information and put it in another line, if I was to remove handleHttpRespo nse you try to getElementById( 'city') then nothing works! on the DIV all I want in there is to be able to have the output from the city, state and zipcode once onblur updates the textbox, but I wan to keep the information also inside the textboxes.. I hope this is clear enough?...Leave a comment:
-
DIV tags don't show text from onblur
I'm totally lost! I've been trying for several days to make Onblur fill in the city, state after the user inputs inside a textbox a 5 digit zip code, from the the zip, city, state text boxes I want to extract the info and pu it in a separate line like this:
a) user puts a zipcode:95051
b) Onblur fills in city and state
c) a new line in the same page showing ex.
Support Services
SantaClara,CA 95051
... -
In the above posts I have the code and html:
I want onblur to update the city,state when the user inputs his 5 digit zipcode, the also generate on a separate line City, State ZipCode in one line.
Thanks
EdLeave a comment:
-
-
Wonderful! Thanks for your master teaching technique!
It rocks!
EdLeave a comment:
-
I've tried everything and does not work the submit option, it keeps telling me there's not enough characters?
I've loaded the HTMLcode to this page: http://www.echildcarem anagement.com/prototype/step6.html
Thanks for your time!
Ed...Leave a comment:
-
I can not post the html code! I/m getting an error: the message is too short? I know the message is long! wht's wrong with the submissing form?
EdLeave a comment:
-
Onblur does not update
I'm trying to update the form's text box city, state from the user input using onblur, focus. So far 3 days and zero results!
here is my code:
phpcode: newcityState.ph p
[CODE=php]<?php
/**
* Connects to the database.
* Return false if connection failed.
* Be sure to change the $database_name. $database_usern ame , and
* $database_passw ord values to reflect your database...
No activity results to display
Show More
Leave a comment: