www.webdeveloper.com
Results 1 to 5 of 5

Thread: Parse error: syntax error, unexpected T_STRING in .js line 42

  1. #1
    Join Date
    Dec 2011
    Posts
    29

    Exclamation Parse error: syntax error, unexpected T_STRING in .js line 42

    hey guys I get this error
    Parse error: syntax error, unexpected T_STRING in /home/ebookrev/public_html/themeframe/templates/javascript/DD_roundies_0.0.2a.js on line 42

    there is the line 42
    Code:
    document.writeln('<?import namespace="' + this.ns + '" implementation="#default#VML" ?>');

  2. #2
    Join Date
    Aug 2008
    Posts
    13
    First of all, it looks like the JS page is being built dynamically. The <? ... ?> tags are probably being processed by a compiler if it is set up that way. That doesn't look like an error you would get in a browser console, but since you did not provide any other useful information I am just speculating.

    If that .js file is in fact being built in PHP then you need to change the + to .

    Otherwise, without useful information I cannot help. Give more detail bud.
    Free, Quick, SEO Friendly Backlinks: XEGS.com Web Directory

    Free Image Hosting

  3. #3
    Join Date
    Dec 2011
    Posts
    29

    Smile

    Quote Originally Posted by ScottAN View Post
    First of all, it looks like the JS page is being built dynamically. The <? ... ?> tags are probably being processed by a compiler if it is set up that way. That doesn't look like an error you would get in a browser console, but since you did not provide any other useful information I am just speculating.

    If that .js file is in fact being built in PHP then you need to change the + to .

    Otherwise, without useful information I cannot help. Give more detail bud.
    you can find out the full script here
    http://ebook-review.org/themeframe/t...dies_0.0.2a.js

  4. #4
    Join Date
    Aug 2007
    Posts
    3,767
    It's not a JavaScript error. I think this is being parsed when you don't want it to be. You want the following, or something similar, to appear on the page?
    Code:
    <?import namespace="DD_roundies" implementation="#default#VML" ?>
    Well, the server thinks (I imagine), that you have PHP or some other server-side language embedded there, and is trying to parse that. So you'll have to change your server settings so that all files aren't being parsed.

    There's probably another solution to deal with this specific file, but without knowing the precise details of your set-up, I don't know enough to say what it is.
    Great wit and madness are near allied, and fine a line their bounds divide.

  5. #5
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this 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
  •  
HTML5 Development Center



Recent Articles