SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2004
    Location
    boston, ma
    Posts
    149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I move "scr" info to external file

    Hi Folks,

    Doctype XHTML 1.0 transitional

    Problem code:
    <script type="text/javascript" language="javascript" src="http://tell.lifechurchministries.org/tell/lib/popup.js.php?text=1&header=&footer=&header_align=&footer_align=&taf_button=&back_color=&text_color=&url=&url_text="></script>
    <a href="javascriptpen_tell_window()" title="opens a new window">E-mail This Page to a Friend</a>
    <noscript>&nbsp;</noscript>

    Will not validate.

    The code is generated by a Tell A Friend script that I am using (I did not design because I am not a programmer yet)

    Is there a way for me to move the "scr" information to an external file?

    Sincerely,
    VRM

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,445
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)

    valid - src

    Quote Originally Posted by vrmartin
    move the "scr" information to an external file?
    The source is in an external file already.
    Quote Originally Posted by vrmartin
    Will not validate.
    Change the "&"s to "&amp;"

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2004
    Location
    boston, ma
    Posts
    149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Thanks! It works

    I was not sure if you could replace symbols with entities in javascript, but I guess you can. Made the substitutions and the code validates.

    Sincerely,
    VRM


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
  •