Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - An Impossibility?

 
Thread Tools Search this Thread
Old 06-23-2003, 04:36 AM   #1
Default An Impossibility?


My employer has asked me to do what I believe is impossible. I told him so
and he disagrees. But, I visited the newsgroup while he was here earlier and
explained that many of you have forgotten more than I've ever known
regarding web design. I told him that I would put forth the situation to the
group and see if what he wants done is do-able. Here goes:

He has a website that contains a utility to search one of his wholesellers
inventory and returns the results based upon current pricing and
availability. But the results page (generated by the wholeseller's server)
contains some extraneous information above the results. My boss wants me to
design a site that will send the search query to the wholeseller's server
and then will remove the unwanted information from the results produced by
their server. Can this be done?

For a better visual of the problem, a copy of the search is located at
http://www.dccomm.net/bjpawn1/search.html . The form calls up an asp file
from the wholeseller's system. Can I control how the results are provided
without access to the wholeseller's server? The wholeseller, for what it's
worth, isn't very inclined to change their code to assist us.

Thanks,
Joe




Joe
  Reply With Quote
Old 06-23-2003, 04:53 AM   #2
Disco
 
Posts: n/a
Default Re: An Impossibility?

"Joe" <> wrote in message
news:HAuJa.309710$ ...
> My employer has asked me to do what I believe is impossible. I told him so
> and he disagrees. But, I visited the newsgroup while he was here earlier

and
> explained that many of you have forgotten more than I've ever known
> regarding web design. I told him that I would put forth the situation to

the
> group and see if what he wants done is do-able. Here goes:
>
> He has a website that contains a utility to search one of his wholesellers
> inventory and returns the results based upon current pricing and
> availability. But the results page (generated by the wholeseller's server)
> contains some extraneous information above the results. My boss wants me

to
> design a site that will send the search query to the wholeseller's server
> and then will remove the unwanted information from the results produced by
> their server. Can this be done?
>
> For a better visual of the problem, a copy of the search is located at
> http://www.dccomm.net/bjpawn1/search.html . The form calls up an asp file
> from the wholeseller's system. Can I control how the results are provided
> without access to the wholeseller's server? The wholeseller, for what it's
> worth, isn't very inclined to change their code to assist us.


Well, if your server scripts can interogate the returning data from the
wholesalers, then you can do whatever you want with the data.

What you could do is (and a real yucky way of doing it) if you know the
format that the wholesaler data is in, you could interogate the data
differently for that one wholesaler.

It would be nice, however, if your wholesalers returned an XML stream with
all of the data required and whatever else that is not required, then you
can do whatever using XSLT or whatever languages you are using.



  Reply With Quote
Old 06-23-2003, 07:22 AM   #3
William Tasso
 
Posts: n/a
Default Re: An Impossibility?

Joe wrote:
> ...
> My boss wants me to design a site that will send the search
> query to the wholeseller's server and then will remove the unwanted
> information from the results produced by their server. Can this be
> done?
> ...


Yep - How will depend on what resources are available on your server.

FWIW: I use XMLHTTP on my Win2k/IIS-5 server and manipulate the returned
markup with ASP.

--
William Tasso - http://www.WilliamTasso.com


  Reply With Quote
Old 06-23-2003, 07:43 AM   #4
m
 
Posts: n/a
Default Re: An Impossibility?

On or around Mon, 23 Jun 2003 03:36:07 GMT, there was a message,
possibly from "Joe" <>, as follows:

>My employer has asked me to do what I believe is impossible. I told him so
>and he disagrees. But, I visited the newsgroup while he was here earlier and
>explained that many of you have forgotten more than I've ever known
>regarding web design. I told him that I would put forth the situation to the
>group and see if what he wants done is do-able. Here goes:
>
>He has a website that contains a utility to search one of his wholesellers
>inventory and returns the results based upon current pricing and
>availability. But the results page (generated by the wholeseller's server)
>contains some extraneous information above the results. My boss wants me to
>design a site that will send the search query to the wholeseller's server
>and then will remove the unwanted information from the results produced by
>their server. Can this be done?
>
>For a better visual of the problem, a copy of the search is located at
>http://www.dccomm.net/bjpawn1/search.html . The form calls up an asp file
>from the wholeseller's system. Can I control how the results are provided
>without access to the wholeseller's server? The wholeseller, for what it's
>worth, isn't very inclined to change their code to assist us.
>
>Thanks,
>Joe
>

This should work:
Set up the search page to send its search parameters to a server
side program in Perl.

Let the program query the wholesaler's server using those parameters
and Perl's LWP::UserAgent module, which creates a web client that can
capture the results similar to the way a browser does.

Use the HTML:arser module to break the resulting page into usable
chunks, so that you can throw away whatever you want. (Alternately,
you might be able to throw away everything up to some matched regular
expression.)

Then the program can write the modified page to the visitor's browser
with CGI.pm module.

Or do something similar in another server side language.

HTH
m
http://www.mbstevens.com/bc.html


  Reply With Quote
Old 06-23-2003, 07:51 AM   #5
rf
 
Posts: n/a
Default Re: An Impossibility?


"Joe" <> wrote in message
news:HAuJa.309710$ ...

> My employer has asked me to do what I believe is impossible. I told him so
> and he disagrees.


<grin>
I'll bet you were not looking for all those positive answers
Damn. Now you have to go and learn heaps of new server side stuff.
</grin>

One point. If your hosts server does not support such server side stuff then
your only option is to get a new host.

Cheers
Richard.



  Reply With Quote
Old 06-24-2003, 12:12 AM   #6
Joe
 
Posts: n/a
Default Re: An Impossibility?


"rf" <> wrote in message
news:SrxJa.406$...
>
> "Joe" <> wrote in message
> news:HAuJa.309710$ ...
>
> > My employer has asked me to do what I believe is impossible. I told him

so
> > and he disagrees.

>
> <grin>
> I'll bet you were not looking for all those positive answers
> Damn. Now you have to go and learn heaps of new server side stuff.
> </grin>


Busted But, on the flip side, if he wants all of that done, he's going to
have to outsource it. He hopes to have the site up within the next couple of
weeks. Even though I'm a fairly quick study, I don't think I could learn
what I need to know in my "spare time" ( bear in mind I have a 3 year old
son and an 11 year old daughter).

>
> One point. If your hosts server does not support such server side stuff

then
> your only option is to get a new host.


The server we use is very cooperative with what they allow you to do. I've
had several domains hosted with them over the past 8 years. But, as I said,
it won't be me designing the thing. I'll just be the one implenenting it.


Joe
>
> Cheers
> Richard.
>
>
>



  Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump