Welcome to TalkGraphics.com
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Location
    Belgium
    Posts
    57

    Default Re: Get url from a textfile

    Thank you very much. I'm sure this will give me the the right solution.
    Frank

  2. #2
    Join Date
    Aug 2004
    Location
    Belgium
    Posts
    57

    Default Re: Get url from a textfile

    TO: Acorn

    I've tried your example and that works fine when the JS is in the Xara File.
    I have now tried to change the concept and put the JS-file in index_htm_files which is easier for me for maintenance.
    However this is not working.

    This is what I've done:

    Header page properties:

    <script src="index_htm_files/gmail.js">
    </script>

    Object link properties:

    javascript: alert(window.location.href='https://mail.google.com/mail/u/' + gmail_blue + '/#inbox');
    javascript: alert(window.location.href='https://mail.google.com/mail/u/' + gmail_green + '/#inbox');

    gmail.js in index_htm_files:

    <script
    var gmail_green = 5;
    var gmail_blue = 3;>
    </script>

    I've put my Xara-testproject in a RAR-file but I could'nt find how to attach it.

    Frank

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,907

    Default Re: Get url from a textfile

    Quote Originally Posted by GK5 View Post
    TO: Acorn

    I've tried your example and that works fine when the JS is in the Xara File.
    I have now tried to change the concept and put the JS-file in index_htm_files which is easier for me for maintenance.
    However this is not working.

    This is what I've done:

    Header page properties:

    <script src="index_htm_files/gmail.js">
    </script>

    Object link properties:

    javascript: alert(window.location.href='https://mail.google.com/mail/u/' + gmail_blue + '/#inbox');
    javascript: alert(window.location.href='https://mail.google.com/mail/u/' + gmail_green + '/#inbox');

    gmail.js in index_htm_files:

    <script
    var gmail_green = 5;
    var gmail_blue = 3;>
    </script>

    I've put my Xara-testproject in a RAR-file but I could'nt find how to attach it.

    Frank
    Almost there Frank.

    A referenced JS file does not need the SCRIPT tags as it knows it is JavaScript.
    The file is just:

    var gmail_green = 5;
    var gmail_blue = 3;

    It might still have worked if you had copied what I had used:
    <script>
    var gmail_green = 5;
    var gmail_blue = 3;
    </script> - the closing angle bracket was in the wrong place.

    When you fin it all works, you can remove the alert() part of the Link:
    javascript: window.location.href='https://mail.google.com/mail/u/' + gmail_blue + '/#inbox';

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  4. #4
    Join Date
    Aug 2004
    Location
    Belgium
    Posts
    57

    Default Re: Get url from a textfile

    Thank you very much. This is working!
    Frank

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,907

    Default Re: Get url from a textfile

    Quote Originally Posted by GK5 View Post
    Thank you very much. This is working!
    Frank
    Frank, I'm glad. Come back with more questions or an update.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Bookmarks

Posting Permissions

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