473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Willing to pay for solution

I need a javascript function that will decide a form action determined by a
form string.
For instance I want the javascript to set the form action to go to one
script when a code number is entered into a field
and I want it to default to another script when this code number is not
present.
I need to solution to this ASAP I am in the middle of a major project and
dont have time to handle this detail.
Anyone that can provide me with a solution shall be compensated via paypal
or method you request.
Please contact me at:
Lance.s AT themediamechanics DOT com

Thank you!

Jul 17 '05 #1
2 1571
"lance" <pa***@sams-cycles.com> wrote in message
news:i%***************@fe2.texas.rr.com...
I need a javascript function that will decide a form action determined by a form string.
For instance I want the javascript to set the form action to go to one
script when a code number is entered into a field
and I want it to default to another script when this code number is not
present.
I need to solution to this ASAP I am in the middle of a major project and
dont have time to handle this detail.

Dear Mr Stehling

1. This newsgroup is for Java, not Javascript. The two are
not the same.

2. As Javascript executes on the client (i.e. the browser), the
code is insecure - anyone can browse it. Hence this method is
unsuitable for any kind of sensitive information.

3. Clients cannot be guaranteed to have Javascript running -
about 10% of people don't, for one reason or another.

If #2 and #3 don't dissuade you, then the following may help:
<html>
<head>
<title>My Motorcycles</title>
<script language='JavaScript'>
<!--
function doCheck() {
secretCode = 12345;
txt = document.forms.f.myText.value;

if (parseInt(txt,10) == secretCode) {
top.location = 'secretpage.html';
return false;
}
else {
return true;
}
}
// -->
</script>
</head>
<body>
<form name='f' action='defaultpage.jsp' onsubmit='return doCheck();'>
<input name='myText' type='text' />
<input type='submit' />
</form>
</body>
</html>

This works with IE, I won't guarantee it on any other
browser; also, I think you would be better off using
server-side code.
Jul 17 '05 #2
"lance" <pa***@sams-cycles.com> wrote in message news:<i%***************@fe2.texas.rr.com>...
I need a javascript function that will decide a form action determined by a
form string.
For instance I want the javascript to set the form action to go to one
script when a code number is entered into a field
and I want it to default to another script when this code number is not
present.
I need to solution to this ASAP I am in the middle of a major project and
dont have time to handle this detail.
Anyone that can provide me with a solution shall be compensated via paypal
or method you request.
Please contact me at:
Lance.s AT themediamechanics DOT com

Thank you!


What form processing are you using..ASP,Servlet etc
Jul 17 '05 #3

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

Similar topics

0
by: RT | last post by:
Hello I am starting to do more work with Dreamweaver MX ­ Php & MySql and I find myself in need of help in the little things( writing good code for one) I¹m looking for someone who would be...
7
by: Minnie | last post by:
Hi everyone, I was trying to use a script called PHPrint, but I think the reason it's not working is because I have register globals off. This decision is not under my control, and I am not...
3
by: JGBNS via DotNetMonster.com | last post by:
Hi, I am new to this forumand I apologize as i am not a .net programmer but we have a program being developed by a .net programmer. Nowwe have run into an ftp snag and I think it is part ftp and...
15
by: scorpion53061 | last post by:
I have a time critical function I need assistance with. You should be familiar with windows forms, ADO.NET and MS Word Automation. If you are interested please email me at ...
4
by: Mark | last post by:
Hi Forum, I'm new to ASP.NET and have a basic question. If someone is willing to lay it out for me in an easy way to understand, I have a huge list of tasks I'm willing to pay to get...
0
by: Tsunami Tim | last post by:
To give you an idea of what I need help with... I am driving traffic to our company website with flyers that are going out to schools for our summer camp programs. All these flyers contain a...
3
by: pbd88 | last post by:
I need someone to write a program for me that reads these list of csv files off the command line and than displays an array where the file names( that include the date and year) are the headers for...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.