Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: urgent help?

  1. #1
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    urgent help?

    Hi.

    A browser error message has come up on a website I was routinely updating:


    Message: '0.offsetWidth' is null or not an object
    Line: 335
    Char: 5
    Code: 0
    URI: http://www.cimmagazine.com/assets/te...llite_1.0.1.js

    I have ventured behind the scenes to investigate however cannot locate where this offset width is. Can someone please suggest some ideas on how I might proceed? Below is the coding I am dealing with, the problem is within the carousel section. I understand I have to visit line 335 to work out what is going on but as far as I am concerned I cannot locate what is wrong in that section.

    Your help is greatly appreciated.




    </div>
    <div class="pic-holder" height="347" width="453">
    <img src="[*hero_image2*]" alt="" height="347" width="453"/>
    <div class="rimage-text" ><div>
    [*hero_text2*]
    </div></div>
    </div>
    <div class="pic-holder" height="347" width="453">
    <img src="[*hero_image3*]" alt="" height="347" width="453"/>
    <div class="rimage-text" ><div>
    [*hero_text3*]
    </div></div>
    </div>

    </div>

    <div class="rim-arrows clear">
    <a href="#prev" class="rim-left" id="rim-prev" >&nbsp;</a>
    <a href="#next" class="rim-right" id="rim-next" >&nbsp;</a>
    </div>
    <a href="index.php?id=2" title="View other headlines" class="rim-more">View other headlines</a>
    </div>
    <!--cim_home_headlines}}-->
    <div class="headlines">
    <h2>Headlines</h2>
    [!Ditto? &parents=`2` &display=`3` &tpl=`cim_headline_short` &orderBy=`pub_date DESC`!]
    </div>
    </div>
    <div class="issues clear" style="margin-bottom:10px;">
    <img src="[*latest-issue-top*]" style="float:left" />
    <div style="float:left; width:599px;background-color: #333; padding: 13px">
    <div class="isues-title">LATEST ISSUE INCLUDES:</div>
    <div class="clear">
    <div class="isues-text-left">{{latest_link1}}<br />{{latest_link2}}</div>
    <div class="isues-text-center">{{latest_link3}}<br />{{latest_link4}}</div>
    <div class="isues-text-right">{{latest_link5}}<br />{{latest_link6}}</div>
    </div>
    <div class="isues-bottom">
    <form id="submag-form1" action="[(site_url)][~13~]" method="post">
    <fieldset>
    <span>+ MUCH MORE!</span> <label for="is-subscribe">Subscribe today</label> <input type="text" name="email" id="email" class="validate[required,custom[email]]" /> <input type="submit" value="next" class="red-button" />
    </fieldset>
    </form>
    </div>
    </div>
    </div>
    <div class="left-bottom clear">
    <div class="lb-left">
    <h2>Special deals</h2>

    <!-- CAROUSEL -->

    <div id="deals" class="deals">
    [*spec_deals*]
    <a href="#" class="deals-left" id="deals-left"></a>
    <a href="#" class="deals-right" id="deals-right"></a>
    </div>


    <div class="popular">
    <h2>MOST POPULAR</h2>
    [*cim_popular*]
    <!--cim_most_pop}}-->
    </div>
    </div>
    <div class="lb-right">
    <div class="left-advertisement'">
    <span>advertisement <img src="assets/templates/cim/images/advertisement-arrow.gif" alt="advertisement" height="9" width="7" /></span><br />
    <div class="slideshow ss300">
    [*ads_block_300x250*]
    </div>
    </div>
    </div>
    </div>
    </div>

    <!--cim_home_right}}-->
    <div class="right-main">
    <div class="enewsletter">


    <form id="enewsletter-form" action="[(site_url)][~13~]" method="post">
    <fieldset class="clear">
    <div class="en-title">
    sign up to receive our<br />
    <span>eNEWSLETTER</span>
    </div>
    <input type="hidden" name="formid" value="enewsletter-form" />
    <label for="en-email">EMAIL ADDRESS</label>
    <input type="text" name="en-email" id="en-email" class="en-text" eform="Your Email Address:email:1" />
    <label for="en-format">Preferred format</label>
    <select name="format" id="en-format" eform_options="Select Country::1" >
    <option value="Text" selected="selected">Plain Text</option>
    <option value="HTML">HTML</option>
    </select>
    [!captcha-display!]
    <label for="vericode">Enter security code</label>
    <input type="text" name="en-code" id="en-code" class="en-text mb-6" eform="Code:string:1" />

    <input type="hidden" name="action" value="sendForm" />
    <input type="submit" value="SUBSCRIBE" class="red-button fl-right" />
    </fieldset>
    </form>

    </div>
    <div class="right-advertisement">
    <span>advertisement <img src="assets/templates/cim/images/advertisement-arrow.gif" alt="advertisement" height="9" width="7" /></span><br />
    <div class="slideshow ss160">
    [*ads_block_160x290_top*]
    </div>
    <div class="slideshow ss160">
    [*ads_block_160x290_btm*]
    </div>
    </div>
    </div>
    <!-- HOME_RIGHT END -->
    </div>
    </div>

    {{cim_footer}}

    </div>
    </body>
    </html>

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,332
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Can you post a link to your live site so we can try and recreate the error?

    Also when posting code here, use the code tag button in the editor window. That hash mark is the code button. It makes code more reading with scrollbars.
    Teed

  • Users who have thanked teedoff for this post:

    ladyv (02-09-2011)

  • #3
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thank you for the quick response, Teed!

    http://www.cimmagazine.com/

    The problem is on the home page, the first page you see, at the bottom of the page there is meant to be advertising - in the backend I can see the images that are there, but they are not viewable from the front end. I deleted an image on the backend and ever since then this has been happening.

    Thank you thank you!!!!!!


  •  

    Posting Permissions

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