SunQuest
 
           JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old February 22nd, 2004, 03:44 AM
thefunnyboy thefunnyboy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Coimbatore
Posts: 2 thefunnyboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to thefunnyboy
Question Link Generator

Hi,I have around a hundred html files, named 1.htm, 2.htm, 3.htm and so on...
Now i want a search text box, like for example, the user types "1" in the input
box and clicks on submit, 1.htm loads in the window... or in another target window.

I tried passing the value to the top, but i do not know how to add ".htm" to the end
of the file name and i do not want the person to type it either.

Can you help me?

PS:- What i am asking is similar to google etc. You enter a search term Ex. "ball"
and the next page is of the type, google.com?q=ball&lan=en&

Here you can see that the user input- "ball" was inserted between the other two data,
google.com and lan=en&.

Similarly, I am in the need, but i just dont know how to go about it.
Mine will be like mydomain.com/userinput.htm where the useriput is generated inside the
link.

Thank you.

Reply With Quote
  #2  
Old February 22nd, 2004, 05:44 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Try using this Javascript - when the user presses the button (trigger using onclick event)
Code:
function go() {
  varUserValue = document.frmName.textbox.value
  document.location.href = varUserValue + '.htm'
}
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old March 2nd, 2004, 10:17 AM
thefunnyboy thefunnyboy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Coimbatore
Posts: 2 thefunnyboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to thefunnyboy
Talking Thank you...

Was really helpful... thanx a lot and apologies for replying so late...

Bye..

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Link Generator


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway