W
wherez73
Hi,
IE7 has a search bar from which you can search on the internet. It is
also possible to add a site to the list of sources for this bar. The
only disadvantage of this is that it pass the full text entered in the
search bar as one search term to the destination site. This is no
problem for Google but it is for sites like the Dutch phonebook
(http://www.detelefoongids.nl). These kind of sites are using more
than one search term, each separated. E.g. Name and City.
So what I am planning to do is to create my own search page and split
the arguments in the URL and use them to redirect to the phonebook
site.
The exact URL used by the phone book is
http://dtgi.detelefoongids.nl/dtgi/...homepage&type=basic&wie=jansen&waar=amsterdam
where "jansen" is the name of the person and "amsterdam" the city.
"Wie" is the dutch translation of who and "waar" stands for
"location".
Basically this is what I have planned:
1) Create a form with two fields, name and city;
2) When clicking on submit it will forward the visitor to the URL
mentioned above by passing the values of the form fields to this URL;
3) The form must also be able to read the values from the URL passed
from the IE7 search bar (see below for more information);
4) When the IE7 search bar is used the form must submit automatically.
Note for the 3th point above:
Because IE7 will pass all text as one term to the destination site the
URL of my page, opened from the search bar, will be something like
"http://domain.com/phonebook.html?terms=<name> <city>". As you can see
the name and city are not separated. These are in this format
undetectable by any script in the form. The only way to separate them
is to let the user add a character manually when entering the text in
the search bar. For example: name+city. In this case the URL for my
page, opened from the search bar, will be "http://domain.com/
phonebook.html?terms=<name>+<city>".
As you see the form must be able to separate the name and the city by
using a + sign as the separator.
I am only partially able to create a page with this form. Is somebody
out there who is able to set this thing up?
Regards,
Jasper
IE7 has a search bar from which you can search on the internet. It is
also possible to add a site to the list of sources for this bar. The
only disadvantage of this is that it pass the full text entered in the
search bar as one search term to the destination site. This is no
problem for Google but it is for sites like the Dutch phonebook
(http://www.detelefoongids.nl). These kind of sites are using more
than one search term, each separated. E.g. Name and City.
So what I am planning to do is to create my own search page and split
the arguments in the URL and use them to redirect to the phonebook
site.
The exact URL used by the phone book is
http://dtgi.detelefoongids.nl/dtgi/...homepage&type=basic&wie=jansen&waar=amsterdam
where "jansen" is the name of the person and "amsterdam" the city.
"Wie" is the dutch translation of who and "waar" stands for
"location".
Basically this is what I have planned:
1) Create a form with two fields, name and city;
2) When clicking on submit it will forward the visitor to the URL
mentioned above by passing the values of the form fields to this URL;
3) The form must also be able to read the values from the URL passed
from the IE7 search bar (see below for more information);
4) When the IE7 search bar is used the form must submit automatically.
Note for the 3th point above:
Because IE7 will pass all text as one term to the destination site the
URL of my page, opened from the search bar, will be something like
"http://domain.com/phonebook.html?terms=<name> <city>". As you can see
the name and city are not separated. These are in this format
undetectable by any script in the form. The only way to separate them
is to let the user add a character manually when entering the text in
the search bar. For example: name+city. In this case the URL for my
page, opened from the search bar, will be "http://domain.com/
phonebook.html?terms=<name>+<city>".
As you see the form must be able to separate the name and the city by
using a + sign as the separator.
I am only partially able to create a page with this form. Is somebody
out there who is able to set this thing up?
Regards,
Jasper