473,395 Members | 1,701 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.

Replace frame URL with entered word

3
I have a simple frame set up. With a header box containing the logo, and two columns underneath, the working part.
In the left side there is a form box to enter request into.
The request will be names of colors like; red, purple, yellow, blue and others.
Once the name of the color is entered into the box, and enter is hit, the desired color is shown in the 2nd column.

The entered word will need to be combined into a URL statement like this.
http://www.server.com/%REPLACETHIS%.html

With %REPLACETHIS% being replace by the entry word from the client.

The files stating colors are single files and are located on the server.
http://www.server.com/red.html
http://www.server.com/purple.html
http://www.server.com/yellow.html
http://www.server.com/blue.html

I don't want to set up a CGI-BIN search or Google search added to the site.



Thank you for any help and direction!









--------------------------------------------------------------------------------
Who's never won? Biggest Grammy Award surprises of all time on AOL Music.
Feb 4 '08 #1
5 2043
doharr
3
I have a simple frame set up. With a header box containing the logo, and two columns underneath, the working part.
In the left side there is a form box to enter request into.
The request will be names of colors like; red, purple, yellow, blue and others.
Once the name of the color is entered into the box, and enter is hit, the desired color is shown in the 2nd column.

The entered word will need to be combined into a URL statement like this.
http://www.server.com/%REPLACETHIS%.html

With %REPLACETHIS% being replace by the entry word from the client.

The files stating colors are single files and are located on the server.
http://www.server.com/red.html
http://www.server.com/purple.html
http://www.server.com/yellow.html
http://www.server.com/blue.html

I don't want to set up a CGI-BIN search or Google search added to the site.

Thank you for any help!
Feb 4 '08 #2
gits
5,390 Expert Mod 4TB
hi ...

you may use the window.location.href property of a window (frame) here, call a function like this, when your action occurs:

Expand|Select|Wrap|Line Numbers
  1. function open_page(node, frame) {
  2.     var url = 'http://www.server.com/%s.html';
  3.     url = url.replace(/%s/, node.value);
  4.  
  5.     frame.location.href = url;
  6. }
  7.  
pass references to the node (input-element) and the target-frame to it ... in case you have problems with it then post your code so that we may look at it together ...

kind regards
Feb 4 '08 #3
acoder
16,027 Expert Mod 8TB
Please remember to provide a meaningful Title for any threads started (see the FAQ entry Use a Good Thread Title).

This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.

Thanks!
Feb 4 '08 #4
drhowarddrfine
7,435 Expert 4TB
html/css cannot do this. You need javascript so I'll send this there.
Feb 4 '08 #5
gits
5,390 Expert Mod 4TB
threads merged ...

kind regards
MODERATOR
Feb 4 '08 #6

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

Similar topics

4
by: Craig Keightley | last post by:
Can these lines of sql statements be consolidated into one sql statement (possibly using reg exps??) BEGIN CODE ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Update...
3
by: - ions | last post by:
Hi, i would like to know how to replace every char in a string with a certin given char using the String.replace(char oldChar,char newChar). I would like to replace all letters with an underscore...
1
by: ROBT NISHIDA | last post by:
Hello, I have a frameset page with 4 frames. There is a form in frame that contains text input boxes. I have image buttons in some of the other frames that invoke javascript functions within...
2
by: Pat Sheen | last post by:
In IE6 I'm using the following html to have three frames. One of the frames is to open a locally stored MS Word document. <frameset rows="100,1*"> <frame name=SiteHdr...
5
by: Leo | last post by:
Why is it not possible to get the frame from the interpreter using the inspect library? IOW, why does this code: >>> from inspect import * >>> stack() produce:
2
by: Daniel | last post by:
I use an Access database to basically take data exports, import them, manipulate the data, and then turn them into exportable reports. I do this using numerous macros, and queries to get the data...
6
by: C# newbie | last post by:
Hello group, When I run an XPATH query first as: //*[contains(translate(.,\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\", \"abcdefghijklmnopqrstuvwxyz\")
1
by: punitpandia | last post by:
consider a frame has 720 words , each word is of 9 bits how can i fill up my frame of 720 words with numbers starting from 0 to 720. if we store this frame in a file then size taken by this...
17
by: alxasa | last post by:
Hi, can someone please show me how to most elegently do this?..... I have a textbox, and I want to search the contents of it and replace all instances of a certain word, and replace that word...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.