| |   Skin:   
      User: Not logged in 
Newsletter Signup
XSLT Library
Latest XML Blogs
Featured Examples
Featured Articles
Book Chapters
Training Courses
Sign In
My Profile
My Articles
My Examples
My Favorites
My Resources
Add a Resource
About Me
My Blog
HeadGeek Articles
Talking Portfolio
World Trip Pics

Reply: Please help me link from an XML file?

Date Posted:4/23/2009 12:29 PM
Posted by:
Kerry Warnaar

Here's what I want to do:
When a user starts to type in a document name into a text box, the autosuggest fills in the rest of the name of the document. This part already works no problem. Then, when the user clicks on the search button, I want the document to be loaded on the webpage. So far, I have been able to get a JavaScript popup to tell me which document I selected.

The JavaScript code that I have is:
<script type="text/javascript">
function disp_alert()
var txt=document.getElementById("document").value
alert("You selected "+ txt);

The above code works, and is pulling from my xml file, but it's just telling me what I put into the text box. I really want it to link to the document or page it's supposed to link to.

The XML code that I have is:
<?xml version="1.0" encoding="UTF-8"?>
 <document id="1">
  <name>Fax Form 1</name>
 <document id="2">
  <name>Fax Form 2</name>
 <document id="3">
  <name>Fax Form 3</name>

Now, I know there should be code in my xml file to link to the forms, but I have been trying to figure that out but can't.

Can anyone please help me?

Thank you!

Fans of "The Office"
Dwight Bobbleheads are here!
  “It's me! I'm the bobblehead! Yes!”

Advertise on XMLPitstop

Advertise on XMLPitstop

EggHead Cafe
Web Servicee development
Printer ink
it outsourcing
online fax service
UK conference call service
chicago web design
Registro de Dominios
Domain Names
Car News
Juicy couture sunglasses
Video Surveillance
Skype vs. sipcall

4,127 Total Members
11 members(last 30 days)
3 members(last 7 days)
0 members(today)

1,948 Total Discussions
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

47,487 Total Blog Posts
0 Blogs(last 30 days)
0 Blogs(last 7 days)
0 Blogs(today)

8,699 Newsgroup Posts
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

14,138 Total Resources
3 Resources(last 30 days)
0 Resources(last 7 days)
0 Resources(today)


David Silverlight's| 2801 Florida Ave #225|Miami, FL 33133|Ph:305-447-1139