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

passing values stored in script to next page

i have different colors for shirt...

When I click the blue color the shirt color will change to blue color and
Near to that shirt I will have a button as design now when I click that button it get posted
To next page where I want the changed shirt color to be displayed(as I told when I click blue the shirt will change to blue that blue shirt has to be displayed in next page when I click the button)

Then the script is as follows


<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function changeColor(strType, strColor)
{

if (document.images) {
document[strType].src = '' + strType + '_' + strColor + '.jpg';
document[strType].src1 = strType + '_' + strColor ;
simg1 =document[strType].src1;

}
}

//-->
</SCRIPT>


this was the link for that blue color when I click this blue color it go the above script function.


<a href="javascript: changeColor('basic', 'blue')"><img src="blue.gif" width="22" height="17" border="0" alt="Grey/Black"></a></font></div>


in the script where simg1 is the variable where I store the result..
ex in that simg1 what is stored is that picture path simg=bluetshirt

how to pass the value in the script to next page…
Jun 26 '06 #1
4 3705
Banfa
9,065 Expert Mod 8TB
It would be helpful to see mor of the page code as you explaination is not 100% clear or if available provide a link to where the page is on the internet.
Jun 27 '06 #2
hi

actually this was the first time i am posting my forums..
so i dont knw where to upload the pages i have seen the option below..
but it is not accepting the asp or html file so how to upload it
if u dont mind can u tell me..

regards
meenu
Jun 28 '06 #3
Banfa
9,065 Expert Mod 8TB
It wont let you up load those extensions to prevent malicious code upload, just rename them to *.txt files or create a zip archive of them and upload that.
Jun 28 '06 #4
hi

i have attached the pages along with this...
not able to specify the path because i am testing in local server..
regards meenu
Attached Files
File Type: zip forum.zip (5.2 KB, 223 views)
File Type: zip forum.zip (5.2 KB, 148 views)
Jul 1 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Paul | last post by:
I want to use sessions to cover myself in case the user switches off cookies so I am passing the session ID manually through a hidden input field. This is what I have so far. index.php page...
1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
1
by: JD | last post by:
I posted this earlier and it disappeared from the NewsGroup I want to pass two parameters to a simple script running on my web server. The script "parpass.php" looks like this: <?php echo...
6
by: Robert Cohen | last post by:
Hi All, I have what is an easy question for you all, but I have not idea (this is in vbscript). I have this script below that works great. It figures out the user logged in and gives the AD...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
10
by: Noozer | last post by:
Below is some ASP, HTML and javascript. It is part of a page used to maintain a small database. This code did work at one time, but has since stopped. For some reason the data on my form is not...
2
by: RootShell | last post by:
Hello First of all i know that PHP is a server side, and JavaScript is a Client side programming language, but i need to know if there is any way i can add the variable "countDownInterval" from...
4
by: Ranginald | last post by:
Hi, I'm having trouble passing a parameter from my default.aspx page to my default2.aspx page. I have values from a query in a list box and the goal is to pass the "catID" from default.aspx...
1
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.