in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Javascript error adding image to new product

Last post 09-17-2009 1:47 PM by stockcer. 9 replies.
Page 1 of 1 (10 items)
Sort Posts: Previous Next
  • 06-05-2009 10:22 AM

    Javascript error adding image to new product

    I'm using the new version and am getting an error adding an image to a new product.  I double-click on the image I'd like to add and I get a javascript error as follows:

    Error 'window.top.document.getelementbyid(...)' is null or not an object

    imageselector.aspx?view=p&controlId=ctl00_ContentPlaceholder1_images_txtImageFile

     

    Hope someone can shed some light on this one.

     

     

     

    Regards,

    Paul

  • 06-05-2009 2:57 PM In reply to

    Re: Javascript error adding image to new product

    Please log this at CodePlex.
    --
    Big Smile ~ Chris
  • 06-06-2009 11:24 AM In reply to

    Re: Javascript error adding image to new product

    Im getting the same error. It appears that we are losing the master page refernce when linking to the ImageSelector.aspx page. Also I cant seem to find the following css class

    submodal-800-355

     

    Any thoughts?

  • 06-10-2009 1:07 PM In reply to

    Re: Javascript error adding image to new product

    I'm getting the same JavaScript error too. Any ideas how to fix this? Can't setup a test site without images... Thanks!

    Filed under: ,
  • 06-10-2009 4:58 PM In reply to

    • dtools
    • Top 500 Contributor
    • Joined on 06-02-2009
    • Posts 3

    Re: Javascript error adding image to new product

    Hi all. As you have no solution at the moment ^) - small tip how to "load"/bind images. All pictures are saved here "Web\repository\" so for ex. if you want to change the logo (it was my case ^)) ) paste path to the file, i.e. "repository/site/pictureName.png". Plz notice that path has no starting points kind of "../".
  • 06-10-2009 6:35 PM In reply to

    Re: Javascript error adding image to new product

    All, there is a resolution to this problem.  Go to Codeplex to get the answer, but it involves making a change to admin\control\image.aspx and one of the theme files, don't remember which one now.

     

    Cheers,

    Paul

  • 06-15-2009 6:09 PM In reply to

    • dtools
    • Top 500 Contributor
    • Joined on 06-02-2009
    • Posts 3

    Re: Javascript error adding image to new product

     I've found solution ant i's here http://dashcommerce.codeplex.com/WorkItem/View.aspx?WorkItemId=22916 but I cannot get how to fix it, moreover I cannot get if this bug exist in latest build why so few people encountered with it? Or I'm the lucky one?

    Filed under:
  • 06-16-2009 3:54 PM In reply to

    • dtools
    • Top 500 Contributor
    • Joined on 06-02-2009
    • Posts 3

    Re: Javascript error adding image to new product

    So.. Solution on codeplex works. How to apply it: in site.skin find string "<dashCommerce:HyperLink runat="server" CssClass="hyperlink" />" and replace it with "<dashCommerce:HyperLink runat="server" CssClass="submodal-800-400" SkinId="submodal-800-400" />"

    Thats it. 

  • 07-01-2009 12:35 PM In reply to

    Re: Javascript error adding image to new product

    The solution is to add the skinId  "<dashCommerce:HyperLink runat="server" CssClass="submodal-800-400" SkinId="submodal-800-400" />" rather than replace anything then just make sure any modal links use SkinId="submodal-800-400"

    Remember to change categoryedit.aspx as the bug is also replicated there for category images.

  • 09-17-2009 1:47 PM In reply to

    Re: Javascript error adding image to new product

    I could not figure out why 3.2 version did not work after following all of the tips below.  Then I figured it out.  It would help to move over all the directories.  I forgot to move over the resource folder.

Page 1 of 1 (10 items)