|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello, to let you know I know VERY LITTLE about XML but have been asked to tweak a navigation bar that was built by someone else. The navigation bar is made up of several <webpage></webpage> attributes. How do I get the image I have inserted in this line of code <webpage glink="images/buttons/siho_gif/provdirectory.gif" title="Provider Directory" url="_ProviderSearch.asp" UserType="M" NodeId="LEVEL1_0"/> to act as a link. The image shows up...but the "title" is the only portion that acts as a link...the image looks like it's going to link but when you pass the cursor over it, it isn't attached to anything. Again, I'm very new to XML...sorry if this is a stupid/easy question. None of the examples I found on-line dealt with this <webpage> attribute in the way I needed it to. Thanks in advance.
![]() |
|
#2
|
||||
|
||||
|
__________________
Teflon - The Black <desc>Mark This Up</desc> |
|
#3
|
|||
|
|||
|
Quote:
One thing I maybe should have mentioned. This code isn't in an .xsl file but instead is in a .xml file. Does that change things in regard to the post you mentioned since it seems to pertain mainly to xsl. |
|
#4
|
||||
|
||||
|
It sounds like your code sets the image up either as a background image or image in a element outside the anchor (<a>). First, find out where this is being done, then modify it.
Try something like: PHP Code:
If this doesn't help, try posting a link and/or attaching the files. |
|
#5
|
|||
|
|||
|
Here is a good chunk of the code that will give you an idea of what I'm working with...hopefully:
- <website> - <webpage glink="images/new.gif" title="Member Services" UserType="M" NodeId="LEVEL1"> <webpage glink="images/buttons/siho_gif/provdirectory.gif" title="Provider Directory" url="_ProviderSearch.asp" UserType="M" NodeId="LEVEL1_0" /> <webpage title="Eligibility Info" url="EligibilitySearch.asp" UserType="M" NodeId="LEVEL1_1" /> <webpage title="Claims Inquiry" url="ClaimsInquiry.asp" UserType="M" NodeId="LEVEL1_2" /> <webpage title="FAQ's" url="_DisplayXML.asp?Title=FAQ&XMLDoc=faq.xml&XSLDoc=faq.xsl" UserType="M" NodeId="LEVEL1_3" /> <webpage title="Request ID Card" url="idcardreq.asp" UserType="M" NodeId="LEVEL1_4" /> <webpage title="Change Password" url="ChangePW.asp" UserType="M" NodeId="LEVEL1_5" /> <webpage title="Change Address" url="MemberAddrChange.asp" UserType="M" NodeId="LEVEL1_6" /> <webpage title="Change PCP" url="MemberPCPChange.asp" UserType="M" NodeId="LEVEL1_7" /> <webpage secure="Y" title="Log Off" url="logout.asp" UserType="*" NodeId="LEVEL1_8" /> </webpage> </website> To restate the issue I'm having...I want the image found after glink= to actually be a link but what happens shows up next to the text found in the "title" and that text is only thing that works as a link. |
|
#6
|
||||
|
||||
|
There may be a small misunderstanding here.
The xml you show is just the data for the page. There is another file that defines the structure of the document. Some file that has instructions to say '<glink> is an image' and '<title> is the text to use between the <a> tags'. There may be something within the page itself, but generally xml data is by itself. It may be an xsl stylesheet, or a script of some kind. It looks like you use asp...check that out. When you link to the page that displays this information, do you see "somefile.xml" in the address bar, or "somefile.asp?someother&text" or "somefile.php?someother&text", or "somefile.html" ? That should give you a clue on where to look for the transformation information. That is where a change would be made. If this is some sort of generic transformation program (e.g. that you don't have access to modify) you could try replacing the <title> with the <glink> data and see if the program can handle an image there, or try omitting the <title> and see if it falls back to the image as a default. |
|
#7
|
|||
|
|||
|
Thanks for the help so far...it's greatly appreciated. I see what you are saying about the other files playing a part in all this. I'll check into that. Thanks again.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Links using an image...HELP! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|