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

2 IFrames -Iframe1 btn onclick load iframe2 src & pass iframe1 txtbox val as param

200 100+
Hi, I need help please.

I need to create a textbox with a report url in an iframe below.
Onclick of button create IFrame and pass textbox value into parameter of iframe src.

I'm not to sure how to do this, i think some javascript is needed as I want the button to check the textbox is not blank value first and then create iframe and pass textbox value as parameter.

Does anyone have another method where there are 2 iframes:
Having the textbox & button in first frame - then Onclick check textbox not blank and load second iframe - load and pass textbox value as parameter.

Expand|Select|Wrap|Line Numbers
  1.  
  2. <form id="form1">
  3. <table><tr>
  4.  
  5. <input type="text" text="Keyword" id="keyword" value="">
  6. <input type="button" text="filter" id="filter" onclick="
  7.    <IFRAME id="frame1" src="http://srv08-za199/BI&rs:Command=Render&Key="+filter.value+"></IFRAME>"
  8.  
  9. </tr>
  10.  
Please Assist!
Nov 16 '08 #1
4 2910
David Laakso
397 Expert 256MB
Do you have an (X)HTML/CSS question?
Nov 16 '08 #2
ismailc
200 100+
Hi, I thought that this was an HTML question, should i repost to javascript?
Nov 17 '08 #3
ismailc
200 100+
Working!

Expand|Select|Wrap|Line Numbers
  1. <tr>
  2.   <input type="text" text="Keyword" id="keyword" value="">
  3.   <input type="button" text="filter" id="filter" onClick="(document.getElementById('keyword').value=='') ? alert('Enter a Keyword!'); document.getElementById('frame1').src='http://srv08-za199/BI&rs:Command=Render&Key='+document.getElementById('keyword').value;">
  4. </tr>
  5. <tr>
  6.    <IFRAME id="frame1" src="blank.htm">iframe_placeholder_value</IFRAME>
  7.  
  8. </tr>
  9.  
Nov 17 '08 #4
acoder
16,027 Expert Mod 8TB
Yes, it was a JavaScript question - moved to JavaScript.

Thanks for posting your solution, but I noticed one thing: you've probably got a missing colon for the short-hand if-else syntax.

PS. can you please ensure you use code tags properly (without a colon in the opening and closing tag). Thanks.
Nov 17 '08 #5

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

Similar topics

10
by: maxim vexler | last post by:
I'm reading a lot of talks lately about the term iFrame and with your permission would like to ask a few question about that : - what is iFrame, i mean what is it good for ? - does all the...
7
by: Scott | last post by:
Hello All, I've been reading all of the various issues with Iframes in netscape. I have tried all of the various fixes posted, and have even implemented both an iframe and ilayer. My problem is...
1
by: Nick Tew | last post by:
Hello, This relates to the previous post i've left. This problem is do with the browser's back and forward buttons. When clicked, can it be made to affect any history NOT in the iframes....
7
by: bscofield | last post by:
What would be the danger in having a lot of hidden iframes? i.e. potentialy 30-40. I need to store a bunch of data and thought about using hidden iframes to do it but wasn't sure if this would bog...
2
by: Guadala Harry | last post by:
1. Are IFrames supported only in uplevel versions of IE? If not IE exclusively, what browsers support IFrames? 2. Are IFrames going to be supported in the future - as far as anyone knows - or...
3
by: Giggle Girl | last post by:
Is there a way to use Javascript to detect if a browser supports IFrames, or (if it DOES support them) that IFrame use is enabled? Thanks, Ann
4
by: Alex D. | last post by:
Hi guys. I have two nestes IFRAMES in one of my pages. The main page has an Iframe that points to an aspx page, this page has another Iframe that points to a regular html file. My problem is when...
5
by: Gary | last post by:
If one has two iframes side by side is it possible to get them both to scroll when the user scrolls one of them? If it is possible is there a reference that will help me in solving this. ...
11
by: Kent Feiler | last post by:
One thing I like about frames is that they're a good place to stow Javascript. Javascript that I'd like to be around while the visible content of the screen changes goes in the frame declaration...
19
by: wmanzo | last post by:
I have a really professional conspiracy movie site and I use tons of layers and an external scroll bar assembly. I would like to put the various sections into MS Iframes and in order to clean up...
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:
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?
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:
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
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...

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.