Results 1 to 3 of 3
  1. #1
    Join Date
    January 9th, 2008
    Webmerge tags and Javascript

    I'm trying to use a Webmerge tag within a Javascript command. The relevant line in my template looks like this:

    <a href= 'javascript:window.location="mail"+"to:"+"[WM-Field:Username]"+"@"+"indiana"+"."+"edu"'>

    When I run Webmerge, it doesn't put anything in place of the WM tag; it just leaves an empty set of quotes. Instead, it's merging the contents of the Username field in place of the next Webmerge tag in the document.

    Does anyone know if it's even possible to use a WM tag within Javascript? If so, do I need to be escaping the tag in some way?


  2. #2
    Affiliate Manager
    Join Date
    January 18th, 2005
    Los Angeles, California
    WebMerge should never alter anything in a template outside of WebMerge tags. From your description it's not clear what it's doing: you wrote that it puts in empty quotes, then later noted that it's replacing the WM tag, which sounds like what we'd expect.

    Could I trouble you to post the result WebMerge is generating so I can see it directly?
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site

  3. #3
    Join Date
    January 9th, 2008
    Well, I don't know what I did, but as I was generating a file to send to you the problem appeared to fix itself. Maybe I had a stray character in there somewhere. Thanks anyway for your quick response!

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. creating links using Webmerge tags
    By swamala in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: February 29th, 2012, 05:33 PM
  2. SEOing javascript to create HTML <tags>
    By Cav in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: November 23rd, 2009, 06:30 AM
  3. Can Webmerge Create alt tags for images?
    By gravitydex in forum WebMerge (
    Replies: 7
    Last Post: April 23rd, 2005, 10:11 AM
  4. To Webmerge or not to webmerge, that is the question.
    By martyogelvie in forum Marketing Resources & Power Tools
    Replies: 10
    Last Post: March 12th, 2004, 10:55 PM
  5. Webmerge tags mal-formed in Dreamweaver
    By Doug247 in forum WebMerge (
    Replies: 6
    Last Post: September 18th, 2003, 07:31 AM

Posting Permissions

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