ampullae
07-08-2006, 05:47 AM
Hello. I am a new forum member and a fairly inexperienced developer. I could really use some help on what I believe must be a very common function.
My objective is to use javascript and cgi to search the O'Reilly book listings by keyword from a webpage hosted on my localhost. I could just use the O'Reilly webpage, however, I am trying to understand what goes on behind the scenes by using the API.
I have tried to sort the code on the O'Reilly search pages without success.
Overall, I am trying to declare a variable with a value of 'http://my.safaribooksonline.com/xmlapi/?mytoken=keyword' within a web form
Where,
- 'mytoken' is my O'Reilly issued token
- 'keyword' is a user-input keyword on the
Then, before sending data to my CGI script, I want to append the variable and the keyword so that it forms the complete URL so CGI can load it into my web browser.
Basically, this is just an HTTP Redirect, but I cannot get it to work. Now, I do not want anyone to write my code for me. However, can someone validate my approach? Am I using the right tools (CGI and Javascript)? Or, would you recommend something else? I had tried PHP and also asp.net... but am lost there, too.
Thank you very kindly.
My objective is to use javascript and cgi to search the O'Reilly book listings by keyword from a webpage hosted on my localhost. I could just use the O'Reilly webpage, however, I am trying to understand what goes on behind the scenes by using the API.
I have tried to sort the code on the O'Reilly search pages without success.
Overall, I am trying to declare a variable with a value of 'http://my.safaribooksonline.com/xmlapi/?mytoken=keyword' within a web form
Where,
- 'mytoken' is my O'Reilly issued token
- 'keyword' is a user-input keyword on the
Then, before sending data to my CGI script, I want to append the variable and the keyword so that it forms the complete URL so CGI can load it into my web browser.
Basically, this is just an HTTP Redirect, but I cannot get it to work. Now, I do not want anyone to write my code for me. However, can someone validate my approach? Am I using the right tools (CGI and Javascript)? Or, would you recommend something else? I had tried PHP and also asp.net... but am lost there, too.
Thank you very kindly.