PDA

View Full Version : How can I make links from an event?



Jay Dog
10-08-2012, 10:45 AM
Hi,

This is my first post but I have been working on this as an event manager for our school website:




['Big Wood School Open Evening', '10/3'],
['National Poetry Day', '10/4'],
['Year 8 PSHE NUT', '10/4'],
['Year 9 Esteem Programme', '10/4'],
['Visit to War Horse', '10/4'],
['Inset Day', '10/5'],
['Year 11 What Next event at Harvey Haddon', '10/10'],
['Capital One visit for Year 8', '10/10'],
['Year 8 PHSE NUT', '10/11'],
['Year 9 Esteem Programme', '10/11'],
['Mock Interview Week', '10/15'],
['Horrible Histories Trip', '10/16'],
['Capital One visit for Year 8', '10/17'],
['Year 7 Settling in Evening', '10/17'],
['Year 10 Btec visit to Space Centre', '10/19'],
['Halt term holiday starts', '10/20'],
['Back to school', '10/29'],

This is only a fraction of the code, if you need to see it all, I will send link to URL.



The events come up when we reach a certain date by saying 'this week at school'.

How can I make one of the events a link to another page, such as this ['Mock Interview Week', '10/15'], and when it comes up, you can click it and then go to another webpage, for sake of argument amazon.com?

jscheuer1
10-08-2012, 03:00 PM
With a little luck:


['<a href="http://www.amazon.com/" target="_blank">Mock Interview Week</a>', '10/15'],

That assumes that the part of the script we cannot see inserts that field as HTML into the generated markup. We can't know that for sure without seeing the whole script. So if that doesn't work, please post a link to the page.

Jay Dog
10-09-2012, 08:49 AM
That's brilliant but how do I do it so that it doesn't open a new page but just goes from the main page to that page? Is it something to do with the target?

I'll have a play with it and see if that works. Thanks.

Jay Dog
10-09-2012, 08:51 AM
yes, that did it, thanks. :cool: