Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2008
    Posts
    170
    Plugin Contributions
    0

    Default JS code appearing on login page....which file?

    Having a problem with my client's store login page. When I go to:
    http://www.jamwestfoods.com/store/in...ain_page=login

    I get this error that appears right after the <body> tag:
    onload="update_zone(document.create_account); document.login.email_address.focus();"

    Where is this coming from? Which tpl file do I have to correct or is it some other file?

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: JS code appearing on login page....which file?

    Your body tag reads:
    Code:
    <body> onload="update_zone(document.create_account); document.login.email_address.focus();"
    Mine reads:
    Code:
    <body id="loginBody" onload="update_zone(document.create_account); document.login.email_address.focus();">
    So, somehow you've removed the onload from within the < > tags.

    Use the Developers Toolkit under TOOLS in admin to search for the php file that's involved.

  3. #3
    Join Date
    Jun 2008
    Posts
    170
    Plugin Contributions
    0

    Default Re: JS code appearing on login page....which file?

    It was the tpl_main_page file. I was trying to lose the ID.

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: JS code appearing on login page....which file?

    Quote Originally Posted by datatv View Post
    It was the tpl_main_page file. I was trying to lose the ID.
    By ID, you mean the DIV ID for style purposes?

  5. #5
    Join Date
    Jun 2008
    Posts
    170
    Plugin Contributions
    0

    Default Re: JS code appearing on login page....which file?

    Yes, I needed to lose loginBody to make my layout work properly.

 

 

Similar Threads

  1. v154 Which file contains the code for "Add to cart"?
    By joecooper in forum General Questions
    Replies: 11
    Last Post: 7 Oct 2015, 05:07 PM
  2. Odd code appearing on description page
    By james11 in forum General Questions
    Replies: 1
    Last Post: 19 Sep 2013, 10:04 PM
  3. Mass code appearing at bottom of defaulted template page
    By TerryHughes in forum General Questions
    Replies: 1
    Last Post: 30 Mar 2011, 05:58 PM
  4. my main page which file has...
    By ewalker3 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Sep 2007, 03:27 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
  •  
disjunctive-egg