an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Page Editor Errot : jScript is HTML Box
Last Post 11/17/2009 3:04:19 PM By Bahram. 3 replies.
11/10/2009 12:07:32 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Page Editor Errot : jScript is HTML Box
 
I have an image player using jQuery and jScript code that works fine standalone and also on the HTML block.
 
But when I want t o edit the Block, The debugger activates and also Page Editor Does corrupt so the editor Will be on top of the Screen.
Also there is no way to save the changes,
 
Is there a Hot key to save.
 
 
 
11/11/2009 11:10:45 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Page Editor Errot : jScript is HTML Box
Can you use the debugger to figure out which line of javascript code is broken?
DotShoppingCart Staff
11/12/2009 2:18:56 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: Page Editor Errot : jScript is HTML Box
This is the line that code breaks: 
 
$('.blockEditor[containerId="212"]').draggable({opacity: 0.7, revert: true, scroll: true} )
    .droppable({
        accept:'.blockEditor[containerId="212"]',
        over: function(ev,ui) {
            $(this).addClass( parseInt($(this).attr('index')) < parseInt($(ui.draggable).attr('index')) ? 'upline' : 'underline');},
        out: function(ev,ui) {
            $(this).removeClass('upline').removeClass('underline');},
        drop:function(ev,ui) {
           //alert($(ui.draggable).attr('index') + ':' + $(this).attr('index'));
           $('#ctl00_masterContainerTop_hidMoveInfo212').val($(ui.draggable).attr('blockId') + ':' + $(this).attr('blockId'));
           $('#ctl00_masterContainerTop_btnPostBackButton212').click();
        }
    }).hide().show();
11/17/2009 3:04:19 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: Page Editor Errot : jScript is HTML Box
I have posted the line of code break