Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
How to put HTML link in XML Nav Bar?
Old 09-01-2009, 03:57 PM How to put HTML link in XML Nav Bar?
Novice Talker

Posts: 5
Name: Brian
Trades: 0
I downloaded an XML template and I would like to put an html link into one of the buttons on the navigation bar so when clicked it takes the user to another web page. I'm really new at this XML thing so I'm hoping someone can give me a quick and simple answer. Here is the code so far:

<menuitems>
<menuitem name="ABOUT" filename="about.xml"/>
<menuitem name="SHOP" (need HTML link here)/>
<menuitem name="CONTACT" filename="contactform.xml"/>
<menuitems>

If someone could help, I would greatly appreciate it.

Thanks!
bdavis86 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-01-2009, 07:04 PM Re: How to put HTML link in XML Nav Bar?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
XML being totally up to you, you can do as you want.
As long as you don't have a DTD to conform to.

This is valid:
Code:
<menuitems>
    <menuitem name="ABOUT" filename="about.xml"/>
    <menuitem name="SHOP">http://www.yourshop.com</menuitem>
    <menuitem name="CONTACT" filename="contactform.xml"/>
<menuitems>
this is ok too:

Code:
<menuitems>
     <menuitem name="ABOUT" filename="about.xml"/>
     <menuitem name="SHOP" href="http://www.yourshop.com" />
     <menuitem name="CONTACT" filename="contactform.xml"/>
 <menuitems>
It all depends how you parse the XML at the end...

You say it's an xml template...
For which engine, which parser.
You should look for a documentation here, because it's totally up to the code that parse your template to generate the html.
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 09-01-2009 at 07:05 PM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 09-02-2009, 09:28 AM Re: How to put HTML link in XML Nav Bar?
Novice Talker

Posts: 5
Name: Brian
Trades: 0
Hey,

Thanks for the help, but I tried both of those examples and neither worked. I don't know where to find the parsing information or anything, but here's the template I'm using, maybe this can somehow answer your questions.

http://www.flashcomponents.net/compo...tomizable.html
bdavis86 is offline
Reply With Quote
View Public Profile
 
Old 09-02-2009, 09:42 AM Re: How to put HTML link in XML Nav Bar?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Well, nothing more I can do...
It's the flash component that does the parsing of the xml config file.

You will have to ask them how to do it, because without the flash sources, there is no way of finding this (except luck).

But just an idea:
try to put the full url into the filename="" property.
Maybe it simply works that way:
Code:
<menuitems>
     <menuitem name="ABOUT" filename="about.xml"/>
     <menuitem name="SHOP" filename="http://www.yourshop.com" />
     <menuitem name="CONTACT" filename="contactform.xml"/>
 <menuitems>
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 09-02-2009 at 09:44 AM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 09-02-2009, 10:09 AM Re: How to put HTML link in XML Nav Bar?
Novice Talker

Posts: 5
Name: Brian
Trades: 0
Unfortunately that didn't work either

I have all the source files, I just don't understand how to read the actionscript or where to start looking.
bdavis86 is offline
Reply With Quote
View Public Profile
 
Old 09-02-2009, 10:19 AM Re: How to put HTML link in XML Nav Bar?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
maybe it's not designed to be able to do so...
Can you post the source of the file?
Or, if you buyed it and dont' want other people to fetch it, send it to me either as an attachement (in a private message) or to tschork@gmail.com

I never did actionScript, but it cannot be that far from other programming languages I know.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 09-02-2009, 10:25 AM Re: How to put HTML link in XML Nav Bar?
Novice Talker

Posts: 5
Name: Brian
Trades: 0
I just sent some of the files over, hopefully you can figure something out.
bdavis86 is offline
Reply With Quote
View Public Profile
 
Old 09-02-2009, 10:50 AM Re: How to put HTML link in XML Nav Bar?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Well, I'm at work right now, so you'll have to wait a couple of hours before I'll be able to look at them.
I don't have access to a flash editor right now.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 09-02-2009, 10:59 AM Re: How to put HTML link in XML Nav Bar?
Novice Talker

Posts: 5
Name: Brian
Trades: 0
Well anyways, I appreciate the help. I'd love to be able to link to an external page somehow, but I can't figure it out...hope you can.

Thanks again!
bdavis86 is offline
Reply With Quote
View Public Profile
 
Old 09-02-2009, 04:21 PM Re: How to put HTML link in XML Nav Bar?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
I'm sorry, but as far as I understand it, this flash tries to load in the main "movie", and it don't simply go to a new page with another flash movie in it.
I honestly don't see how to add the "go to url" function easily.

Edit:
Now, thinking about it...
The demo config file given was not working.
I mean, I've included the "contact.swf" link, but clicking on it didn't do anything.
So, I cannot say if it's my install that is foobared or if the contact.fla needs to be customized before it works, no idea.

But the point is, that when I added an url in the config file with this form:
Code:
<menuitems>
  <menuitem name="CONTACT" filename="contactform.swf"/>
  <menuitem name="av.com" filename="http://www.av.com"/>
</menuitems>
I saw the "av.com" link appearing.

Try it out, maybe it works for you.
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 09-02-2009 at 05:12 PM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to How to put HTML link in XML Nav Bar?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.57887 seconds with 12 queries