Results 1 to 4 of 4

Thread: How can I make links from an event?

  1. #1
    Join Date
    Oct 2012
    Location
    England
    Posts
    103
    Thanks
    28
    Thanked 2 Times in 1 Post

    Default How can I make links from an event?

    Hi,

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



    Code:
      ['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?
    Last edited by jscheuer1; 10-08-2012 at 02:55 PM. Reason: Format

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    With a little luck:

    Code:
    ['<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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2012
    Location
    England
    Posts
    103
    Thanks
    28
    Thanked 2 Times in 1 Post

    Default

    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.

  4. #4
    Join Date
    Oct 2012
    Location
    England
    Posts
    103
    Thanks
    28
    Thanked 2 Times in 1 Post

    Default

    yes, that did it, thanks.

Similar Threads

  1. Replies: 0
    Last Post: 07-03-2009, 07:26 AM
  2. Replies: 2
    Last Post: 11-30-2008, 10:12 AM
  3. Replies: 0
    Last Post: 09-02-2008, 06:37 PM
  4. Why do tab links ignore onclick event
    By adibih in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 05-13-2008, 10:33 PM
  5. tabcontent (make the first tab links works)
    By thed0od in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 01-18-2007, 09:48 PM

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
  •