Html experts

spixol

New Member
Hi,

http://www.cokepubandbar.co.uk/trouble-shooting-guide.html

I have made something like this, and if you would look at the 'Choose a sympton' category, i want to add a search bar. I want this search bar to preform a feature when i search for 'Temperature - drink to warm', i want it to auto populate in the 'Diagnosis' stage just as clicking does. Does anyone have an idea that would lead me in the step direction.

Any suggestions would be grateful :)
 

spixol

New Member
It hasn't Chrishirst. I thank you for your previous responses which have been made counter productive. if you read this thread properly you would of realized that.. Im needing to add a search bar in the 'Choose your symptom' section and once searched it opens as per norm- in the 'diagnosis' section.
 

spixol

New Member
No i have replicated the exact trouble shooting option but i want to add to the content and add new lines and im afraid there will be alot of new lines/troubleshooting options leaving it in the same frame it will then have a scroll bar. Aand i think it would benfit from a search bar with auto fill so bottom quirys are easyily acessiable.
 

spixol

New Member
I have gotten the troubleshooting frame of that website now i want to add a search bar tool to it as i am wanting to extened the content and with a search bar i think it would be quicker for users to find what problems there having.
 

spixol

New Member
Chrishirst- this is what i need to be on the website:

AJAX Live Search
http://www.w3schools.com/php/php_ajax_livesearch.asp

How do i excute this on the website below so it will search for only the text in the 'choose a sympton' field.

Website that needs the AJAX Live Search Bar on it
http://www.cokepubandbar.co.uk/trouble-shooting-guide.html
 

JakClark

New Member
How do i excute this on the website below so it will search for only the text in the 'choose a sympton' field.

See the attached XML file over at W3. Put each symptom in the file and the corresponding URL/ anchor - a little like the following;

PHP:
<pages>
	<link>
		<title>Carbonation - flat drinks</title>
		<url>#</url>
	</link>

	<link>
		<title>Carbonation - excessive foaming</title>
		<url>#</url>
	</link>
</pages>

Etc. You could even go a step further and name the tags more appropriately - perhaps even nesting the diagnosis and remedies;

PHP:
<results>
	<symptom>
		<title>Carbonation - flat drinks</title>
		<url>#</url>

		<diagnosis>
			<title>CO2 cylinder valve closed</title>
			<url>#</url>
		</diagnosis>

		<diagnosis>
			<title>CO2 cylinder empty</title>
			<url>#</url>
		</diagnosis>
	</symptom>

	<symptom>
		<title>Carbonation - excessive foaming</title>
		<url>#</url>
	</symptom>
</results>
 

chrishirst

Well-Known Member
Staff member
To use AJAX (Asynchronous Javascript And XML) to search anything requires server side code and a database to return some results from.
 
Top