Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 07-21-2005, 05:09 PM Need Help in coding
IceMemory's Avatar
Skilled Talker

Posts: 89
Location: Nwe York
Trades: 1
I want to create an Address Bar, like in IE.

So visitor can type something and then press "go" button, broweser will redirect to typed page (with adding ".html" by and of typed text.)

Any Help?

Thank you in advance,
Ice!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by IceMemory; 07-21-2005 at 05:11 PM..
IceMemory is offline
Reply With Quote
View Public Profile Visit IceMemory's homepage!
 
 
Register now for full access!
Old 07-21-2005, 06:30 PM
Average Talker

Posts: 22
Trades: 0
Well I have no idea to solve your problem with HTML, DHTML, or CSS. Try PHP or JavaScript. If you are any good at PHP you can probably figure this out. I suggest you do something like this: First you go and make a box for the form, then make a seperate PHP page (like you would a submission form) *Make sure to include this page on your site*. This PHP page recieves the variable from the form name. Then it executes something like this,
Code:
goto $link
If you can't do this PHP submission form stuff just tell me and I'll help you out.
__________________

Please login or register to view this content. Registration is FREE

The Webmaster Forum

Please login or register to view this content. Registration is FREE
Directory of the Web -Webmaster Directory
htmlmaster is offline
Reply With Quote
View Public Profile
 
Old 07-21-2005, 06:44 PM
IceMemory's Avatar
Skilled Talker

Posts: 89
Location: Nwe York
Trades: 1
actually it's JavaScript ..
i dont want to use php on that page.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
IceMemory is offline
Reply With Quote
View Public Profile Visit IceMemory's homepage!
 
Old 07-22-2005, 02:38 AM
Enigmatic's Avatar
Registered User

Posts: 86
Location: No Fixed Abode
Trades: 0
##----[ THE FUNCTION ]----##
Code:
<script type="text/javascript">
function goToURL(form) {
  query = form.query.value;
  if(query == null || query == "") {
    alert("Error: Missing URL");
    return false;
  }
  document.location.href = query;
  return false;
}
</script>
##----[ THE FORM ]----##
Code:
<form onsubmit="return goToURL(this)" action="">
<input name="query" type="text" size="50" maxlength="255" value="http://" />
<input type="submit" value="Navigate &rsaquo;"/>
</form>
Enigmatic is offline
Reply With Quote
View Public Profile
 
Old 07-22-2005, 03:26 AM
IceMemory's Avatar
Skilled Talker

Posts: 89
Location: Nwe York
Trades: 1
COOL!

It's does work (I just added ".html" in code query = form.query.value+'.html';")

But.. now a height problem.. height it's like 2 bars where, and not one How can I fix it?

Thanks Again!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
IceMemory is offline
Reply With Quote
View Public Profile Visit IceMemory's homepage!
 
Old 07-22-2005, 03:37 AM
IceMemory's Avatar
Skilled Talker

Posts: 89
Location: Nwe York
Trades: 1
One more question..

How can I change "Navigate" button to some image?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
IceMemory is offline
Reply With Quote
View Public Profile Visit IceMemory's homepage!
 
Old 07-22-2005, 03:39 AM
IceMemory's Avatar
Skilled Talker

Posts: 89
Location: Nwe York
Trades: 1
Also... Already resolved a problem with height..

I just put <form tags> before <td> and after </td> Is it right thing to do?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
IceMemory is offline
Reply With Quote
View Public Profile Visit IceMemory's homepage!
 
Old 07-22-2005, 03:52 AM
Enigmatic's Avatar
Registered User

Posts: 86
Location: No Fixed Abode
Trades: 0
Quote:
It's does work (I just added ".html" in code query = form.query.value+'.html';")
What happens if the page they want doesn't have a .html suffix ?

Quote:
How can I change "Navigate" button to some image?
<input type="image">

Check out http://www.w3schools.com/tags/tag_input.asp for more info on this tag.

Quote:
Also... Already resolved a problem with height..

I just put <form tags> before <td> and after </td> Is it right thing to do?
I tend to build form like this :

<form tags>
<table>
<tr>
<td></td>
</tr>
</table>
</form>
Enigmatic is offline
Reply With Quote
View Public Profile
 
Old 07-22-2005, 03:54 AM
IceMemory's Avatar
Skilled Talker

Posts: 89
Location: Nwe York
Trades: 1
Thanks for Help!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
IceMemory is offline
Reply With Quote
View Public Profile Visit IceMemory's homepage!
 
Reply     « Reply to Need Help in coding
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28289 seconds with 12 queries