Solved

link a href in the same home page in html

Posted on 2010-11-11
11
504 Views
Last Modified: 2012-08-14
Dear Experts,

I get input box to input my product NO and then link to other URL according to
the input box number, for example, if  type 656 in the input box and  press enter key,
it will redirect to http://www.mywebsite.com/656.htm
I would like to know could I display 656.htm page into the same page of input box's html?  in other
words, display it right below the input box area because I need to type another new code like 1234 and its
1234.htm page will replace previous one of 656.htm right below the same page of input box.

I don't want to use frameset, because will feel the display not comfortable by the outlook of two frame

Please advise

Thanks

Duncan




0
Comment
Question by:duncanb7
  • 8
  • 2
11 Comments
 
LVL 10

Assisted Solution

by:aboo_s
aboo_s earned 20 total points
Comment Utility
What you need is iframe
look it up in google "learn html iframe"
0
 
LVL 13

Accepted Solution

by:
duncanb7 earned 0 total points
Comment Utility
Probably use frameset with  iframe , Right ? no other choices ?

Actually, I will go to search those framset information, but right now, I could not
change the URL from input box's porudction NO, like input number to 65 it
redirect to www.website.com/65.htm. Could help on this first at this thread
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/HTML/Q_26608513.html

It should be easy but I fail to my following code

<html>
<body>
<form method="get" action="http://www.mywebsite.com?code?.htm">
 PRODUCT-NO: <input type="text"  name="code" value="">
<input type="submit" value="Submit">
</form>
</body>
</html>
0
 
LVL 13

Author Comment

by:duncanb7
Comment Utility
The first issue is solved at http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/HTML/Q_26608513.html#a34114499

now going to frameset with iframe, Any one could provide me the simple code how
redirect url into second frame if the first frame is input box ?

THanks

Duncan
0
 
LVL 16

Assisted Solution

by:jmatix
jmatix earned 480 total points
Comment Utility
See this example:
<HTML>

<HEAD>

<META NAME="GENERATOR" Content="Microsoft Developer Studio">

<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">

<TITLE>Document Title</TITLE>

<script>

function formSubmit(frm)

{

	document.getElementById("frame1").src="http://www.mywebsite.com/"+frm.text1.value+".htm";

	return false;

}



</script>



</HEAD>

<body>

<form onsubmit="return formSubmit(this)">

<input type="text" name="text1"> 

<input type="submit" name="submit"> 

</form>

<iframe width="600" border="0px" id="frame1">

</body>

</HTML>

Open in new window

0
 
LVL 13

Author Comment

by:duncanb7
Comment Utility
Thanks, imatix, it work finally and I credit it to you 480 point with "A"  already even it is not shown because
the process of "request Attention " of this thread.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 13

Author Comment

by:duncanb7
Comment Utility
Dear Imatix,

One more help, could I put default webpage at second frame ?
I mean when first frame open, it will set default webpage in second frame as default

0
 
LVL 13

Author Comment

by:duncanb7
Comment Utility
it is done just put <input type="text" name="text1" value="6666666">
0
 
LVL 16

Expert Comment

by:jmatix
Comment Utility
Or you can change the <iframe> to :

<iframe width="600" border="0" id="frame1" src="http://www.mywebsite.com/6666666.htm">
0
 
LVL 13

Author Comment

by:duncanb7
Comment Utility
thanks it work finally with src=......, I mentioned previously value=66666666 that doesn't work and it is misunderstood
0
 
LVL 13

Author Comment

by:duncanb7
Comment Utility
Dear Imatix,

Could you help on this with frame scroll bar merge together with IE window scroll bar at
the new thread

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/HTML/Q_26609115.html
0
 
LVL 13

Author Closing Comment

by:duncanb7
Comment Utility
THanks specially  imatix and others
reply this thread,

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now