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

how can i set "SRC" attribute in frames dynamically

17
Hi everyone,
i have a JSP with two frames..as part of frame one the user enter the inputs and click on the query data button.the new window should be opend for displaying the result.

But my idea is whenever the user click on the querydata button , i want to pass the thar URL as part of second frame.

E:x:
[HTML]<FRAME ID=frame1 noresize scrolling="no" src="/Guest/Nuserinfo.jsp" name="InUserInfo">
<FRAME ID=frame2 noresize scrolling="no" src=' ' name="OutUserInfo">[/HTML]

my requirement is ..i want to set the value of "SRC" of second frame with URL generated by the frame1. is it possible ..let me know

Thanks&Regardds,
akaley
Dec 19 '07 #1
5 6839
improvcornartist
303 Expert 100+
You can try
Expand|Select|Wrap|Line Numbers
  1. parent.frame2.location='http://www.google.com';
Dec 19 '07 #2
akaley
17
You can try
Expand|Select|Wrap|Line Numbers
  1. parent.frame2.location='http://www.google.com';

Thanks for u r reply ,
it's working...........

But i face one problem..iam using scrolling="yes" in the both FRAMES. but in the lower portion of the frames "scrolls" are coming after double clicking the window only..

Please let me know..what is the problem


Thanks&Regards
akaley
Dec 20 '07 #3
improvcornartist
303 Expert 100+
I'm not quite sure I understand, but it sounds like your content is bigger than your frame.
Dec 20 '07 #4
akaley
17
I'm not quite sure I understand, but it sounds like your content is bigger than your frame.
hey iam faced one more problem with Frames..

one.jp
--------
[HTML]<HTML>
<HEAD>
<base target="_self">
</HEAD>

<FRAMESET ID=outerFrameset ROWS=38%,*" border="1" frameborder="0" framespacing="0" name="MainFrame" >
<FRAME ID=frame1 scrolling="auto" src="/.../Nuserinfo.jsp" name="InUserInfo">
<FRAME ID=frame2 scrolling="auto" src="" name="OutUserInfo">
</FRAMESET>
</BODY>
</HTML>

[/HTML]iam setting the SRC attribute dynamically...

if iam opend two.jsp after one.jsp... the two.jsp opend in frame1 portion of the
one.jsp..the frame2 of one.jsp still not close.Iam not getting the problem.


Please check my code ..let me know anty wrong in my code
Thanks&Regards
akaley
Dec 21 '07 #5
acoder
16,027 Expert Mod 8TB
if iam opend two.jsp after one.jsp... the two.jsp opend in frame1 portion of the
one.jsp..the frame2 of one.jsp still not close.Iam not getting the problem.
If I understand correctly, you're trying to open two.jsp outside the frames or you want it to take up the whole screen space. Is that correct?

You can remove frame2 if you want or change the cols/rows attributes of the frameset.
Dec 22 '07 #6

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

Similar topics

12
by: bhennon | last post by:
Hey all, I have a small php script that calls a random image at the following page. http://www.2006ymcanationals.com/random.php IT WORKS IF I go directly to the above link. I am trying to...
24
by: Charles Crume | last post by:
Hello; My "index.htm" page has 3 frames (content, navigation bar, and logo). I set the "SRC" of the "logo" frame to a blank gif image and then want to change it's contents after the other two...
1
by: Kevin Potter | last post by:
We have an application that has been running on IIS4 and IIS5 for quite some time, without problem We're now migrating to IIS6 (windows/2003), and have run into a what might? be a Javascipt...
6
by: |-|erc | last post by:
Hi, can a .js file read a parameter into it from the HTML file? this is the code to use in peoples HTML files, each member has their own id. <!-- TopCounters Code START --> <script...
9
by: David D. | last post by:
Does the file extension matter when including a JavaScript file in an HTML page? Normally, one would include a JavaScript file in an HTML page using <script src="foo.JS" type="text/javascript">...
23
by: Loony | last post by:
I have got a code like this in HTML section in ASP file which includes javascript file! The script works under MS IE but doesn't with Firefox! Can anybody tell me what is wrong? <HTML>...
3
by: Kevin Buchan | last post by:
I have a web page that I want to JIT compile using the 'src' attribute in the Page directive. I've done this many times and life has normally been great, as a result. However, I find myself...
9
by: Burak Gunay | last post by:
Hello, In my asp.net 2.0 page, I have a hyperlink with an arrow image <a id="imgtest" href="#"onclick="return hideColumn()"> <img id="imgArrow" src="App_Themes/Trmis/WebResource3.gif"...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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
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...
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.