Web Hosting Talk







View Full Version : Need help in vb


Terryy
03-28-2008, 11:20 PM
Hi, i have recently created a form using visual basic as i wanted to create a search function using the form but after i have created the form, i do not know how to proceed on to code the proceess for doing the search and instead of displaying search results in words like those normal search engine, i would like my search function to display a table with certain information in it, anyone can guide me like any website that provides this codes??

funkytaco
03-31-2008, 05:05 PM
Your english seems rudimentary, so I'm sorry if I misunderstood. Try looking for "Planet Source Code" on Google.

Terryy
03-31-2008, 09:54 PM
thanks for the response, okie i manage to find something else beside vb which is javascript and i came across this website that shows an example @ http://wfx.webfeat.org/wfsearch/searchHelp?cid=10242&t=qs

But in order to use this on my webpage, theres a few things i dont quite understand and need the guidance of experts here.

<!-- Generates the category array required by showCategoryBox -->
<script language="JavaScript" Src="http://wfxsearch.webfeat.org/wfsearch/category?Client_ID=10242"></script>

<!-- Contains showCategoryBox function -->
<script language="JavaScript" Src="http://wfxsearch.webfeat.org/wfsearch/js?f=wfx"></script>

<form name="wfform" action="http://wfxsearch.webfeat.org/wfsearch/search" method="POST">

The three sentence code above contains three different url and i was wondering if i were to use it on my webpage,
what is the url i should input in there in order for this thing to work??


secondly:

<script>
// This function is called during the form submit to set required cookies
function setForm()
{
var sCookieText = '';
sCookieText += document.wfform.wf_field1.options[document.wfform.wf_field1.selectedIndex].value + ":";
sCookieText += document.wfform.wf_term1.value + ":";
document.cookie = 'wf_search_structure=' + sCookieText + '; Path=/';
document.cookie = 'wf_selected_databases=' +
document.wfform.Databases.options[document.wfform.Databases.selectedIndex].value + '; Path=/';
} </script>


Isit possible not to use this and have the form working still because when i tried to test their form,
it prompts me to enable cookie in my browser when its already enabled so this thing here looks pretty troublesome..


Lastly:

<!-- The following hidden fields are required to search WebFeat -->
<input type="hidden" name="Command" value="Search">
<input type="hidden" name="Client_ID" value="10242">
<input type="hidden" name="rtmpl" value="wfx_ui2.jsp">
<input type="hidden" name="format" value="JS">
<input type="hidden" name="wf_all_years" value="yes">
<input type="hidden" name="wf_codeset" value="utf-8">
<input type="hidden" name="noserial" value="1">

What are these hidden fields for and isit possible not to have them??

Thanks in advance to anyone who enlighten me.

Terryy
04-01-2008, 02:19 AM
Can anyone help me on this ??

linux-tech
04-03-2008, 03:24 AM
Can anyone help me on this ??

Yeah, someone can. The developers of the product.
WHT isn't a global 'helpdesk'. The helpdesk of the product you're trying to use should always be tried before posting here. If it's something you had designed, ask the designer.

The hidden fields of a form are usually hidden for a reason, and contain data that, well, should be passed to the end client. You'll need to keep those in the query if you want things going right. The other stuff, well, again, ask the developer.