Thank you very much. I'm sure this will give me the the right solution.
Frank
Thank you very much. I'm sure this will give me the the right solution.
Frank
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
Thank you very much. This is working!
Frank
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