473,472 Members | 1,747 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Javascript onChange if field1 = xxx then change field2 = yyy

if name="Joe1" echo "jo**@company.com" to email
if name="Joe2" echo "jo**@company.com" to email

input type="textbox" id="name"
input type="textbox" id="email"

-----------------------------------------------------------------------------

I am trying to achieve the above but so far with no luck :(

Would anyone be able to help ?

i b i z a _ r a v e @ h o t m a i l . c o m

Many Thanks in advanced !!

Oct 30 '07 #1
3 1755
wrote on 30 okt 2007 in comp.lang.javascript:
if name="Joe1" echo "jo**@company.com" to email
if name="Joe2" echo "jo**@company.com" to email

input type="textbox" id="name"
input type="textbox" id="email"

------

I am trying to achieve the above but so far with no luck :(

Would anyone be able to help ?
No, as this is not javascript.

Please ask in the NG that accomodates that language,

or be more explicit and show correct code and html.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 30 '07 #2
ibizara said the following on 11/19/2007 8:47 AM:

I guess you can't fathom the ability to quote what you are replying to?

Many thanks a lot closer to perfection!! :)
Would it be easy to add a var ?

If 'this' = 'jason'
Change 'that' to 'j****@email.com'

If 'this' = 'bob'
Change 'that' to 'b**@email.com'

etc...
Maybe you should have tested what I posted before you butchered it up
and then reposted asking to make it do what it did to start with.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 19 '07 #3
ibizara said the following on 11/26/2007 7:27 AM:
Many, Many Thanks to "Randy Webb" !!
You just lost any, and all, brownie points for posting 626 lines of
code, without quoting, to say thank you. Not a good thing.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 26 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jim | last post by:
Hello, I have a simple problem which I am guessing has an easy answer within JavaScript. I have a form1 with two fields, field1 and field2. I want the contents of field1 to be transferred to...
5
by: perryche | last post by:
Problem #1: I have a form, which says, has 2 fields: F1 & F2 (both Dates). I want to be able to change F1 and F2 will change to be the same as F1 in the codes. However, I will still be able...
3
by: Lyners | last post by:
I have a table within a cell of a datagrid. I am doing updates without postback to the server using Javascript. I have everything working, except referencing a table within the datagrid cell. ...
11
by: Marcelo | last post by:
Hi, I need to make a robot that fills forms. I already made that with php sites, but now I need that in a javascript pages site ( the robot can be php,asp, asp.net ), anyone knows how can I do...
7
by: Paulo Roberto | last post by:
Hi everybody, how r u? I hope fine... People, I have a Javascript function wich returns true ou false, how do I assign the result on ASP variable? <% blnResult = Javascript:function() %> ...
2
by: SP | last post by:
Hi, I need a GridView that when I click on a row or on a HyperLinkField a javascript call raise . It is possible? The grid is in a window open from a parent window. Onclick in a row selected,...
3
by: google | last post by:
I am trying to complete a javascript application and am having problems with code similar to that show below. Much testing has shown that Firefox finishes the code shown in around 0.25 secs but...
2
by: Yorian | last post by:
Hi, Another problem another question (as usual). I want to retrieve data through ajax, within the data there is some javascript which needs to be used (I figured that one out using eval ())....
8
by: kerriejones | last post by:
I am trying to create a simple login routine, and am failing completely, I have tried to simplify the test and still no luck. HTML <form method="post" action="" > <div> <input...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.