loading a page within a frame problem

If you have anything to say - or advice to give - on the creation or publishing of ManiaLinks, here is the place to do it!

Moderator: TM-Patrol

Post Reply
jonasredant
wheelbarrow operator
wheelbarrow operator
Posts: 22
Joined: 23 Sep 2013 11:10
Owned TM-games: TMUF

loading a page within a frame problem

Post by jonasredant » 19 Aug 2014 08:25

Hi, I'm creating a Manialink for Trackmania United Forever.
I have the following problem:

The first page of the manialink (index.xml) that is displayed is this:

Image

Is has the following code:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<manialink>
    <timeout>0</timeout>
    <type>default</type>

<quad posn="-46 44.5 -31" sizen="92 14" image="http://jonasmanialink.freeiz.com/images/manialink_banner.jpg"></quad>
<include url="http://jonasmanialink.freeiz.com/menu.xml" />
<include url="http://jonasmanialink.freeiz.com/bar_onderaan.xml" />
<quad posn="-64 48 -32" sizen="128 96" image="http://jonasmanialink.freeiz.com/images/background.jpg"></quad>
<!--FRM=index-->
      <frame posn="-36 27 -32">
            <quad posn="0.4 -0.1 1" sizen="96.6 62.7" style="Bgs1" substyle="NavButtonBlink"></quad>
            <quad posn="0 0 2" sizen="97 63" style="Bgs1" substyle="BgCardBuddy"></quad>
            <label posn="49 -3 3" sizen="100 7" halign="center" textsize="8" text="Welcome to my Manialink page!!!" autonewline="1"></label>
            <label posn="49.2 -12.7 3" sizen="87.8 37" halign="center" textsize="4.5" text="Here you can find many things you can use in the game, such as tracks, mods, skins, avatars & horns. They make TrackMania even better and 
more enjoyable!!! Hope you like them ;-)" autonewline="1"></label>
      </frame>
</manialink>
Now suppose I click on Horns in the menu on the left, this button links to horns.xml
My intention is to load this new page in the blue frame on the right of the menu. But when
I do this, the other items like the menu itself, the background image, and the bar disappear
So I have to include the following code in horns.xml again, thus reloading the whole page again.

Code: Select all

<quad posn="-46 44.5 -31" sizen="92 14" image="http://jonasmanialink.freeiz.com/images/manialink_banner.jpg"></quad>
<include url="http://jonasmanialink.freeiz.com/menu.xml" />
<include url="http://jonasmanialink.freeiz.com/bar_onderaan.xml" />
<quad posn="-64 48 -32" sizen="128 96" image="http://jonasmanialink.freeiz.com/images/achtergrond.jpg"></quad>
So I wonder if I can display the content of horns.xml in a frame without having to include every
element (like the background image,...) again.

Post Reply