473,382 Members | 1,329 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,382 software developers and data experts.

setting the variables

I like to set the variable to something else and embedded in the url string.
where did I do wrong?

aholder = document.orgzform.a.value;
bholder = document.orgzform.b.value;
cholder = document.orgzform.c.value;

//set values into a variable
var passurlvalue = "&aID" + aIDholder + "&bID" + bIDholder + "&cID" + cIDholder
//Passing the values
location.href="orgz03.cfm?&reedit=1" + "&j=" + jholder + passurlvalue;

thanks in advance,
s/RC
Jul 23 '05 #1
1 1233
reneecccwest wrote:
I like to set the variable to something else and embedded in the url string.
where did I do wrong?
aholder = document.orgzform.a.value;
bholder = document.orgzform.b.value;
cholder = document.orgzform.c.value;
//set values into a variable
var passurlvalue = "&aID" + aIDholder + "&bID" + bIDholder + "&cID" + cIDholder
//Passing the values
location.href="orgz03.cfm?&reedit=1" + "&j=" + jholder + passurlvalue;


You declare variable "aholder" but you refer to variable "aIDholder" in
the string. Also you include an ampersand immediately after the question
mark, I believe you don't want to use one there. See if this works for you:

function buildurlstring() {
var aIDholder = document.orgzform.a.value;
var bIDholder = document.orgzform.b.value;
var cIDholder = document.orgzform.c.value;
var baseurl = 'orgz03.cfm';
var passurl = '?reedit=1';
passurl += '&j=' + jholder;
passurl += '&aID='+aIDholder;
passurl += '&bID='+bIDholder;
passurl += '&cID='+cIDholder;
location.href=baseurl+passurl;
}

Mike

Jul 23 '05 #2

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

Similar topics

5
by: mydejamail | last post by:
Coming from an objectpascal background with strict type checking, I am being driven nuts by PHP. Stuff like using variables without declaring them, case sensitivity of variables, getting true,...
4
by: Sami Viitanen | last post by:
Hello, Is there any other way to set variables than os.putenv(). Putenv doesn't actually put any values to actual system variables.. I'm trying to set CVSEDITOR variable automatically from...
2
by: Rick Kasten | last post by:
Here's what I need to do: 1) Write "Password:" to the console - I know how to do that 2) Accept input that is not written back to the console - I know how to do that (Term::ReadKey) 3) Set the...
7
by: danny | last post by:
Hello everyone, How can I go about setting a number of variables using a table which will have the variable names to be declared in one table. The data to be assigned will reside in another. As...
8
by: David McDivitt | last post by:
I need to set tabs on java generated pages. Pages have four sections: header, sidebar, body, and footer. The sidebar and body change dynamically. The tab key must go to anchors, fields, and buttons...
1
by: Rainbow | last post by:
Hi, I tried to change the print setting by PrintDialog dlg = new PrintDialog(); dlg.AllowSomePages = true; dlg.AllowSelection = true; dlg.Document = pd; dlg.PrinterSettings.MinimumPage = 1;...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
41
by: Jim | last post by:
Hi guys, I have an object which represents an "item" in a CMS "component" where an "item" in the most basic form just a field, and a "component" is effectively a table. "item" objects can be...
5
by: Henaro | last post by:
Hello~ I am having trouble setting environment variables in C++ on win32. The code that is not working is: char prxy; char pf_cmd1 = "set http_proxy="; ....
2
by: bart.hernalsteen | last post by:
Hi, I want to read the envorinment setting "path" and then on certain conditions change this setting. ex path : "%SystemRoot%\system32;%SystemRoot%;%SystemRoot% \System32\Wbem;C:\Program...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.