Hello acoder. I want to know another type of passing values between pages
I have three frames
frame1 for main horizontal menu
frame 2 for vertical submenu
frame 3 which is is loaded based on frame 2 submenu seletion
now i want to have value to be passed between the pages on frame3 based on submenu selection in frame 2
the frame2 has submenu as below
in a table there are two images based on selection of these i'm loading frame3
[HTML]<td><a onmouseover="sw apImage()" onmouseout="swa pImgRestore()" target="right_b ottom" href="page1.htm l" >
<img id="img" src= "Images.jpg " alt="img" name="img" border="0"/>
</a>
</td>
<td><a onmouseover="sw apImage()" onmouseout="swa pImgRestore()" target="right_b ottom" href="page2.htm l" >
<img id="img2" src= "Images2.jp g" alt="img" name="img2" border="0"/>
</a>
</td>
[/HTML]
now i want to pass value from page1 to page 2
please give me some idea
thanks
Feb 8 '08
13 8698
i'm stuck at this point itself.
i'm able to fetch the value in button using -
<script lang=javascript>
-
var sel= document.frm.btn_id.value
-
</script>
-
But in href=" page2.html?val= sel" that value will not be fetched but a blank value or "?val=sel" appears.
is the way i'm including the value right or its different
acoder 16,027
Recognized Expert Moderator MVP
Give the link an id and then change the href: - var link = document.getElementById("link");
-
link.href = "page2.html?val="+sel;
Thousand thanks are less for the immense help you have lent to me.
Its working perfectly.
Thanks alot
acoder 16,027
Recognized Expert Moderator MVP
You're welcome! Glad to hear that it works.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: London |
last post by:
Hello
Can you help me.
By ASP
How can I get the dropdown(control'name)'s selected value?
What is it's property'name?
|
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 courses to pass the correct option
value and then be displayed at the following URL:
http://www.dslextreme.com/users/kevinlyons/selectResults.html
I am passing countries, products, and courses. The first two display
|
by: Kevin Lyons |
last post by:
Hello,
I am trying to get all of my form elements passed correctly from the
following URL:
http://www.dslextreme.com/users/kevinlyons/selectBoxes.html
to the following URL:
http://www.dslextreme.com/users/kevinlyons/selectResults.html
I am passing name, email, countries, cities, products, courses, etc.
The others display as they should on the subsequent page,
|
by: Andy Sutorius |
last post by:
Hi,
I have 4 panels, each panel has a dropdown and a "next" button. I would like
to get the selected value of the dropdown after the next button is clicked.
I thought I could use the following (ddlChooseEmail.SelectedValue) to grab
the value but it does not work. Is there something special about panels that
I need to do in order to get the selected value of the dropdown?
Thanks,
|
by: Monty |
last post by:
I use a SELECT dropdown as the nav interface for jumping to a chosen
page number. When I setup up the SELECT element on the page, I want to
show the user the current page number they are on, so, I put "selected"
next to the page number, as shown below:
-------------------------------
<form name="pick" method="post" action="showit.php">
<select name="pggo"
onChange="this.options.selected;document.pick.submit();">
| |
by: Ben |
last post by:
I have a formview with a few dropdownlists (software version, database
version, etc). When a software version is selected, the database version
dropdownlist updates itself accordingly. When in edit mode, everything works
fine - the selected value in each list defaults to the value from the
database record (selectedvalue=bind...).
However, in insert mode (insertitem), it is not working. I pass in a value
on the query string that I would...
|
by: brendan.wong |
last post by:
hello. i have a really simple form that asks the user to select a
Month from a dropdown. the first time a user visits the page, the
highlighted option should be October, which works fine. then, if the
user submits the form, i want the dropdown to highlight whatever
selection that the user made in the resulting page. for example, if
the user chose February, then the code in the resulting page would look
something like <option...
|
by: SHOverine |
last post by:
Recently my web host decided to "upgrade". This change rendered many of my pages useless and I am scrambling to fix the issues, so you may see several posts from me in the coming days.
My first issue is that all of my dropdown menus are passing the last row to the next page as the session variable. The pages that I am talking about can be found at:
Weekly13_Test
The code that follows was operational until the change. Here is my...
|
by: ajos |
last post by:
Hello friends,
After thinking about this for sometime, i decided to post this in the java forum.
Well my problem here in detail is, i have 3 jsp pages where in a.jsp(for example) i have a combo box, based on the selection of the value in that combo box, b.jsp page gets populated with the value associated to a.jsp, and again based on the selection of value of the 2nd combobox my 3rd combo box gets populated, which is in c.jsp. I'm able to...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |