Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2006
    Location
    Preston, Lancashire, England
    Posts
    285
    Thanks
    0
    Thanked 0 Times in 0 Posts

    loading variables via URL?

    Hello.

    I was to set a up a number of feeds for a number of people.
    For example Affiliate 1 could have a feed, in their site colours, for the foodball fixtures and horse racing meets.
    Affiliate 2 could have the same.

    I was wondering if there was a way i could load a variable into the xml page like this. international-football.xml?site=mysite.

    Then in the xml page is will load the xsl file from the "mysite" folder
    OR
    In the xsl page it will load the css file from the "mysite" folder.

    Does anyone know if this is possible.

    Cheers

    edited
    i have this
    Code:
    <xsl:variable name="approvedParams" select="substring-after($queryString, 'site=')"/>
    
    <link rel="stylesheet" type="text/css" href="{$approvedParams}/style.css" />
    which will get the sitename from the information after the site= but i can't read the url
    Last edited by MRMAN; 05-23-2006 at 06:04 PM.

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts
    Everything after the ? is known as the "query string", and can only be included by either a server-side processing script such as PHP or Perl, or by a client-side script such as JavaScript.

    What's your preference? I'll move this thread to the appropriate forum.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #3
    Regular Coder
    Join Date
    Jan 2006
    Location
    Preston, Lancashire, England
    Posts
    285
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Howdy. Would be able to move this to the javascript forum.

    Thank you


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •