473,405 Members | 2,334 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,405 software developers and data experts.

Div content shown in new web page

Hi
I am facing a problem. In the combo box when i select on option than i want to open a web page in the new window and the related data shown on that web page that i open in the new window. Please help me out.

Thanks

sunil
Oct 23 '08 #1
4 2773
gits
5,390 Expert Mod 4TB
what have you done so far? please describe a bit more what data you want to have in the new window ...

kind regards
Oct 23 '08 #2
what have you done so far? please describe a bit more what data you want to have in the new window ...

kind regards
simple div shown with the same id that in the option and the div.
Oct 23 '08 #3
gits
5,390 Expert Mod 4TB
since we are not supposed to provide full solutions here, please show the code you already have tried. the basic idea is to use the onchange-event of the select-element to call a JavaScript-function the open()s a window and passes the desired data to the new open window that you might reference from the opener. you could even use a variable to store a reference to the new window in the window from where you open it.

kind regards
Oct 23 '08 #4
since we are not supposed to provide full solutions here, please show the code you already have tried. the basic idea is to use the onchange-event of the select-element to call a JavaScript-function the open()s a window and passes the desired data to the new open window that you might reference from the opener. you could even use a variable to store a reference to the new window in the window from where you open it.

kind regards
[HTML]<body>
<form id="Mainfrm" name="Mainfrm">
<select name="state" size="1" onChange="javascript:window.open('newpage.html','m ywin','width=715,height=700');"-->
<option value="" selected>Choose a State</option>
<option value="six">Alabama</option>
<option value="six">Alaska</option>
</select>
</form>



<!-- I want to show is div with the same data in the new window webpage the div id and the option value is the same-->

<div id="six" class="hiddenDiv">
<span>Sales Person : Al Theriot</span>
<table border="1" cellpadding="0" cellspacing="0">
<tr><td width="10%"></td><td>Sun.Nov.30,2008</td><td>Mon.Dec.01,2008</td>
<td>Tues.Dec.02,2008</td><td>Wed.Dec.03,2008</td><td>Thurs.Dec.04,2008</td></tr>
</table>
</div>

</body>[/HTML]
please help me out.
Oct 23 '08 #5

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

Similar topics

10
by: clintonG | last post by:
Can somebody direct me to documents or source that supports the use of collapsible content that is collapsed by default when the page is loaded? The secondary objective would of course be...
1
by: Lenard Gunda | last post by:
Hi! I have the following problem. From my main page, when someone clicks a button, it uses client side javascript to open another .aspx page. This page displays content, based on what the...
2
by: marss | last post by:
I have a long page that contains few separate information blocks. When I print the page by means of window.print(), the content is automatically divided by pages. I look through and find I can...
7
by: Bon | last post by:
Dear all I create a master page with image buttons on the left-hand side for navigation. When a user clicks the student button, the content (i.e. ContentPlaceholder) in masterpage will be...
1
by: phil | last post by:
I decided to use AddOnPreRenderCompleteAsync to avoid holding on to a thread pool thread for too long. (I do some webserver I/O etc. during the page build). In the beginevent handler I fire up...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
4
by: bashetty | last post by:
Well its a strange problem i have, some of you might already faced it and have a solution. I have to maintain a set of unique "search key words" in meta tags for each content page in my site. With...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
9
by: jad2006 | last post by:
Hi guys We have a requirement like in one iframe we have to show one site and in another iframe we have to show some other external site, we did it using <iframe src="http://www.a.com">...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a VS 2008 ASP.NET webform that has a reportview tag on it, accessing an .RLDC report in local report. The columns for the report are essentially: Month Item #1 Item#2 Item#3 ...
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: 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...
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
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
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
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,...

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.