XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 17th, 2004, 12:59 PM
gMan2020 gMan2020 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 gMan2020 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Links using an image...HELP!

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.

Reply With Quote
  #2  
Old August 17th, 2004, 01:05 PM
Teflon's Avatar
Teflon Teflon is offline
Teflon The Black
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Woodbridge VA
Posts: 246 Teflon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 28 m 14 sec
Reputation Power: 5
Send a message via AIM to Teflon
this post should be able to help you out.

http://forums.devshed.com/t160714/s.html
__________________
Teflon - The Black <desc>Mark This Up</desc>

Reply With Quote
  #3  
Old August 17th, 2004, 01:18 PM
gMan2020 gMan2020 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 gMan2020 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by Teflon
this post should be able to help you out.

URL



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.

Reply With Quote
  #4  
Old August 17th, 2004, 01:29 PM
NotGoddess's Avatar
NotGoddess NotGoddess is offline
Kung-fu Kitty
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 350 NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 9 m 2 sec
Reputation Power: 10
Send a message via AIM to NotGoddess
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:
<a style="display:block;width:X;height:Y;background:url(thatimage.gif);">title</a
Where X and Y are the width/height needed to display the image.

If this doesn't help, try posting a link and/or attaching the files.

Reply With Quote
  #5  
Old August 17th, 2004, 01:44 PM
gMan2020 gMan2020 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 gMan2020 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

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.

Reply With Quote
  #6  
Old August 17th, 2004, 01:58 PM
NotGoddess's Avatar
NotGoddess NotGoddess is offline
Kung-fu Kitty
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 350 NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 9 m 2 sec
Reputation Power: 10
Send a message via AIM to NotGoddess
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.

Reply With Quote
  #7  
Old August 17th, 2004, 02:01 PM
gMan2020 gMan2020 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 gMan2020 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Links using an image...HELP!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT