Solved

link a href in the same home page in html

Posted on 2010-11-11
11
513 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
ID: 34114034
What you need is iframe
look it up in google "learn html iframe"
0
 
LVL 13

Accepted Solution

by:
duncanb7 earned 0 total points
ID: 34114291
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
ID: 34114703
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 16

Assisted Solution

by:jmatix
jmatix earned 480 total points
ID: 34114720
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
ID: 34114826
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
 
LVL 13

Author Comment

by:duncanb7
ID: 34114967
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
ID: 34114990
it is done just put <input type="text" name="text1" value="6666666">
0
 
LVL 16

Expert Comment

by:jmatix
ID: 34115036
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
ID: 34115114
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
ID: 34115637
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
ID: 34143489
THanks specially  imatix and others
reply this thread,

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Accordion won't close correctly 5 14
arrays and radio buttons 10 40
Need help with FaceBook login 2 21
Problem in javascript 17 31
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

730 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