Results 1 to 6 of 6
  1. #1
    Newbie
    Join Date
    August 21st, 2005
    Posts
    4
    Please could someone help me?
    Hi Everone

    Wonderfull program, saving me hours, hit a slight snag, can you help?

    I publish a lot of readers submitted articles on my site, each one having a URL at the bottom of the page linking to the writer of the articles website.

    I use access as my record source and export to a text file.

    I have successfully created my pages with the the hyperlinks working fine but I want to use target="_blank" in order for a new window to be opened.

    Can I use WM-AccessLink in conjunction with target="_blank" ?

    If so could you please give me an example of the syntax layout

    Sorry if you have already answered this question but i cant find it.

    Kindest regards

    Tony

  2. #2
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Hmmm....I'm not sure the WM-AccessLink tag currently carries over any JavaScript directives as the WM-Field tag does. I'll have to review the code.

    Are you sure you want to be using the WM-AccessLink tag? It's specialized for use only with link fields from Access DBs, and may produce unexpected results if used with anything else.
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  3. #3
    Newbie
    Join Date
    August 21st, 2005
    Posts
    4
    Is there another way of doing it?
    Hi Richard

    Thanks for the feedback

    Im storing active hyperlinks in the database and they do transfer across ok and work well using WM-AccessLink.

    I have tried using WM-Field to do the job but the links do not transfer across as active hyperlinks.

    Is there another way perhaps to store and transfer across an active hyperlink with the target="_blank" code attached to it?

    I dont mind using Excel?

    If so, could you please give me a code example?

    Or perhaps this is just not possible at the moment and I will have to modify all of my created hyperlinks by hand.

    Trouble is you see is that when my visitors click on their link Ive probably lost my visitor for good, where as if I open in a new window Ive got them back when they close the window.

    Kindest regards

    Tony

  4. #4
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    If you have a convenient way to split the link fields into two fields, one for the label and one for the URL, you could easily do what you need with a template like this:

    <a href="[WM-Field: UrlField]" target="_blank">[WM-Field: LabelField]</a>
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  5. #5
    Newbie
    Join Date
    August 21st, 2005
    Posts
    4
    Thank's Richard, Why didn't I think of that
    Hi Richard

    That's brilliant and works just fine.

    My fieldname in the access database is url

    I found that if you remove the hash symbols that access automatically inserts when it encounters a hyperlink, then you dont need an extra label field you can just do this:-

    <A href="[WM-Field: url]" target="_blank">[WM-Field: url]</a>

    Thank's very much for your help in this matter.

    Kindest regards

    Tony

    PS I will post a link to one of the the finished pages tomorrow as it is 2.30 am now here in the UK and well past my bedtime.

  6. #6
    Newbie
    Join Date
    August 21st, 2005
    Posts
    4
    The finished product
    Hi richard

    Not sure whether you will be interested, here is one of the finished pages.

    http://www.freetipson.co.uk/healthca...ild_sleep.html

    Once again, thank's for your help.

    Kindest regards

    Tony

  7. Newsletter Signup

+ Reply to Thread

Posting Permissions

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