yakecan / dropthings

Automatically exported from code.google.com/p/dropthings
0 stars 0 forks source link

Widget drag and drop is not working and Digg and fast flickr is not working on the godaddy asp.net hosting #244

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Hosting on the godaddy 
2. drag and drop any widget from first column to another column
3. drag and drop moved widget or any other widget to another column

What is the expected output? What do you see instead?
drag and droped widget should be moved to another column.
but it doesn't. it freezes when release mouse clicking and never get back its 
position. 
Moreover, every widgets are not dragable after that it happens.

If I refreshs webpage, widget is initialized on its original position which is 
the first column.

What version of the product are you using? On what operating system?
dropthings Ver 2.7.6. 
Godaddy asp.net 4.0 ultimate web hosting. 
sql server 2008. 
windows hosting

Please provide any additional information below.

www.badasstalk.com

Original issue reported on code.google.com by DevFor...@gmail.com on 24 Jun 2012 at 10:06

Attachments:

GoogleCodeExporter commented 9 years ago
And Digg and Fast flickr is not working.
you can check the error on the www.badasstalk.com

Original comment by DevFor...@gmail.com on 24 Jun 2012 at 10:18

Attachments:

GoogleCodeExporter commented 9 years ago
Please use Fiddler or Firebug to check if there's any HTTP 404. 

Most likely the Site URLs in web.config aren't properly configured. Maybe you 
still have http://localhost/Dropthings. 

Original comment by omaralzabir@gmail.com on 25 Jun 2012 at 8:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I uploaded the web.config file above and i cannot find any solution for the 
error.
I tried web debugger you posted but it is difficult for me, sorry.

Thank though.

Original comment by DevFor...@gmail.com on 26 Jun 2012 at 4:19

GoogleCodeExporter commented 9 years ago
The WCF services aren't loading. For ex,
https://www.badasstalk.com/API/Proxy.svc/ajax/js

This gives error. 

Please turn on <compilation debug="true"> so that you can see the exact error. 

Check this article on making WCF work on GoDaddy hosting:
http://www.itscodingtime.com/post/Installing-a-WCF-Service-to-GoDaddy.aspx

Original comment by omaralzabir@gmail.com on 26 Jun 2012 at 12:36

GoogleCodeExporter commented 9 years ago
Sorry but that doesn't solve the problem.

Original comment by DevFor...@gmail.com on 28 Jun 2012 at 3:53

Attachments:

GoogleCodeExporter commented 9 years ago
WCF REST Preview 2 is solved but widgets are still out of operating.

Why?

Original comment by DevFor...@gmail.com on 29 Jun 2012 at 3:56

Attachments:

GoogleCodeExporter commented 9 years ago
Could you use Firebug and see if there's any JS error or any XMLHTTP calls 
failing?

By the way, I can't browse the site going to: https://www.badasstalk.com/
nor http://www.badasstalk.com/

Original comment by omaralzabir@gmail.com on 29 Jun 2012 at 9:42

GoogleCodeExporter commented 9 years ago
I had the same problem with discountASP.net hosting -i.e. drag and drop widgets 
did not "stick". Saw HTTP 404 errors in debugger related to WCF services 
(Proxy, Widget, Page) eg. ".../ajax/js" etc. I used the web.config fix for 
GoDaddy listed above and now my drag and drop works and no more 404 errors. 
Thank you Omar!  

Original comment by rob0...@gmail.com on 3 Jul 2012 at 3:02

GoogleCodeExporter commented 9 years ago
I have also found this article on GoDaddy. Looks like GoDaddy does not have 
.svc build providers configured properly. Please see this article:

http://www.wpflearningexperience.com/?cat=17

Original comment by omaralzabir@gmail.com on 3 Jul 2012 at 7:30

GoogleCodeExporter commented 9 years ago
That doesn't solve the problem sadly.
Thank you anyway.

Original comment by DevFor...@gmail.com on 22 Jul 2012 at 9:31

GoogleCodeExporter commented 9 years ago
Widget.svc is not loaded well. and widget drag and drop is not working 
correctly.

I tried every methods that i can do, but they didn't solve it at all.

Below is the pictures that i captured.

[[[[[[[[[[[[[[[[Page.svc is Okay]]]]]]]]]]]

Original comment by DevFor...@gmail.com on 25 Jul 2012 at 11:30

Attachments:

GoogleCodeExporter commented 9 years ago
[[[[[[[[[[[[[[[[Page.svc is Okay]]]]]]]]]]]

Original comment by DevFor...@gmail.com on 25 Jul 2012 at 11:31

Attachments:

GoogleCodeExporter commented 9 years ago
[[[[[[[[[[[[[[[[Proxy.svc is Okay]]]]]]]]]]]

Original comment by DevFor...@gmail.com on 25 Jul 2012 at 11:31

Attachments:

GoogleCodeExporter commented 9 years ago
[[[[[[[[[[[[[[[[Proxy.svc is Okay]]]]]]]]]]]

Original comment by DevFor...@gmail.com on 25 Jul 2012 at 11:32

Attachments:

GoogleCodeExporter commented 9 years ago
But Widget.svc is  Not  Okay

Original comment by DevFor...@gmail.com on 25 Jul 2012 at 11:32

Attachments:

GoogleCodeExporter commented 9 years ago
But Widget.svc is  Not  Okay

Original comment by DevFor...@gmail.com on 25 Jul 2012 at 11:33

Attachments:

GoogleCodeExporter commented 9 years ago
How can i solve this problem?

Original comment by DevFor...@gmail.com on 25 Jul 2012 at 11:33

GoogleCodeExporter commented 9 years ago
<system.serviceModel>
        <diagnostics performanceCounters="All"/>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true">
      <baseAddressPrefixFilters>
        <add prefix="http://www.badasstalk.com"/>
      </baseAddressPrefixFilters>
    </serviceHostingEnvironment>
        <behaviors>
            <endpointBehaviors>
                <behavior name="webHttpEnablingBehaviour">
                    <webHttp/>
                </behavior>
                <behavior name="msAjaxBehavior">
                    <enableWebScript/>
                </behavior>
            </endpointBehaviors>
            <serviceBehaviors>
                <behavior name="defaultServiceBehavior">
                    <serviceThrottling maxConcurrentCalls="100" maxConcurrentInstances="100" maxConcurrentSessions="100"/>
                    <serviceTimeouts transactionTimeout="00:00:30"/>
                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug includeExceptionDetailInFaults="true"/>
                </behavior>
            </serviceBehaviors>
        </behaviors>
        <services>
            <service behaviorConfiguration="defaultServiceBehavior" name="Dropthings.RestApi.ProxyService">
                <host>
                    <baseAddresses>
                        <add baseAddress="http://www.badasstalk.com"/>
                    </baseAddresses>
                </host>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
        <endpoint address="" behaviorConfiguration="webHttpEnablingBehaviour" binding="webHttpBinding" bindingConfiguration="secureBinding" contract="Dropthings.RestApi.IProxyService" />
        <endpoint address="ajax" behaviorConfiguration="msAjaxBehavior" binding="webHttpBinding" bindingConfiguration="default" contract="Dropthings.RestApi.IProxyService"/>
                <endpoint address="pox" binding="basicHttpBinding" bindingConfiguration="secureBinding" contract="Dropthings.RestApi.IProxyService"/>
            </service>
            <service behaviorConfiguration="defaultServiceBehavior" name="Dropthings.RestApi.WidgetService">
                <host>
                    <baseAddresses>
                        <add baseAddress="http://www.badasstalk.com"/>
                    </baseAddresses>
                </host>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
        <endpoint address="" behaviorConfiguration="webHttpEnablingBehaviour" binding="webHttpBinding" bindingConfiguration="secureBinding" contract="Dropthings.RestApi.IWidgetservice" />
        <endpoint address="ajax" behaviorConfiguration="msAjaxBehavior" binding="webHttpBinding" bindingConfiguration="default" contract="Dropthings.RestApi.IWidgetService"/>
                <endpoint address="pox" binding="basicHttpBinding" bindingConfiguration="secureBinding" contract="Dropthings.RestApi.IWidgetService"/>
            </service>
            <service behaviorConfiguration="defaultServiceBehavior" name="Dropthings.RestApi.PageService">
                <host>
                    <baseAddresses>
                        <add baseAddress="http://www.badasstalk.com"/>
                    </baseAddresses>
                </host>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
        <endpoint address="" behaviorConfiguration="webHttpEnablingBehaviour" binding="webHttpBinding" bindingConfiguration="secureBinding" contract="Dropthings.RestApi.IPageService" />
        <endpoint address="ajax" behaviorConfiguration="msAjaxBehavior" binding="webHttpBinding" bindingConfiguration="default" contract="Dropthings.RestApi.IPageService"/>
                <endpoint address="pox" binding="basicHttpBinding" bindingConfiguration="secureBinding" contract="Dropthings.RestApi.IPageService"/>
            </service>
        </services>
        <client/>
        <bindings>
            <webHttpBinding>
        <binding name="default" allowCookies="true"></binding>
        <binding name="secureBinding" allowCookies="true">
          <security mode="Transport" />
        </binding>
      </webHttpBinding>
            <wsHttpBinding>
        <binding name="default" allowCookies="true"></binding>
            </wsHttpBinding>
            <basicHttpBinding>
        <binding name="secureBinding" allowCookies="true">
          <security mode="Transport" />
        </binding>
        <binding name="default" allowCookies="true"></binding>
            </basicHttpBinding>
        </bindings>
    </system.serviceModel>
</configuration>

Original comment by DevFor...@gmail.com on 25 Jul 2012 at 11:34

GoogleCodeExporter commented 9 years ago
It is my <ServiceModel> code in the "web.config" file.

Original comment by DevFor...@gmail.com on 25 Jul 2012 at 11:35

GoogleCodeExporter commented 9 years ago
Please turn off the customerror block from web.config so that it shows the real 
exception. from there we will have some clue.

Original comment by omaralzabir@gmail.com on 25 Jul 2012 at 1:23

GoogleCodeExporter commented 9 years ago
This is a picture of the error of Widget.svc with turned off the custom error 
block.

Original comment by DevFor...@gmail.com on 26 Jul 2012 at 10:17

Attachments:

GoogleCodeExporter commented 9 years ago
There are some possible solutions explained here. Please give these a shot:

http://stackoverflow.com/questions/691746/wcf-contract-name-imyservice-could-not
-be-found

Original comment by omaralzabir@gmail.com on 26 Jul 2012 at 10:27

GoogleCodeExporter commented 9 years ago
That solved widget.svc problem and thank you.

but didn't solve the previous problem what i mentioned before.

I debugged it finally and there is a captured screen for drag and drop freezing 
error.

It is originated from Myframework.js file, I suppose.

Original comment by DevFor...@gmail.com on 30 Jul 2012 at 11:55

Attachments:

GoogleCodeExporter commented 9 years ago
   // Queue update for a widget zone.
    updateWidgetZone: function (widgetZone) {
        // OMAR: update the widget zone after three seconds because user might drag & drop another widget
        // in the meantime.
        if ((DropthingsUI.__updateWidgetZoneTimerId || 0) === 0) {
            var zoneList = DropthingsUI.__widgetZonesToUpdate || [];
            zoneList.push(widgetZone);
            DropthingsUI.__widgetZonesToUpdate = zoneList;
            widgetZone.attr("__pendingUpdate", "1");
            DropthingsUI.__updateWidgetZoneTimerId = window.setTimeout(function () {
                jQuery(DropthingsUI.__widgetZonesToUpdate).each(function (index, zone) {
                    if (zone.attr("__pendingUpdate") == "1") {
                        zone.attr("__pendingUpdate", "0");
                        var f = function () { return Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack(); };
                        Utility.untilFalse(f, function () {
                            DropthingsUI.asyncPostbackWidgetZone(zone);
                        });
                    }
                });
                DropthingsUI.__updateWidgetZoneTimerId = 0;
            }, 1000);
        }
        else {
            // Restart the timer when another update is queued
            DropthingsUI.suspendPendingWidgetZoneUpdate();
            DropthingsUI.updateWidgetZone(widgetZone);
        }
    },
    suspendPendingWidgetZoneUpdate: function () {
        if (DropthingsUI.__updateWidgetZoneTimerId > 0) {
            window.clearTimeout(DropthingsUI.__updateWidgetZoneTimerId);
            DropthingsUI.__updateWidgetZoneTimerId = 0;
        }
    },
    asyncPostbackWidgetZone: function (widgetZone) {
        var postBackLink = widgetZone.parent().find("." + DropthingsUI.Attributes.WIDGET_ZONE_DUMMY_LINK);
        eval(postBackLink.attr('href'));
    },
    showWidgetGallery: function () {
        jQuery('#Widget_Gallery').show();
    },
    hideWidgetGallery: function () {
        jQuery('#Widget_Gallery').hide("slow");
    },
    Actions: {
        deleteWidget: function (instanceId) {
            dropthings.omaralzabir.com.widgetservice.DeleteWidgetInstance(instanceId);
            jQuery(DropthingsUI.getWidgetDivId('#' + instanceId)).remove();
        },

        maximizeWidget: function (widgetId) {
            var widget = jQuery('#' + widgetId);

            //if collaspe then expand it
            var widgetDef = DropthingsUI.getWidgetDef(widget.attr(DropthingsUI.Attributes.INSTANCE_ID));

            if (widgetDef.Maximized == false) {
                widgetDef.Maximized = true;
                if (!widgetDef.Expanded) {
                    widget.find('.widget_expand').click();
                }

                if (null !== DropthingsUI._LastMaximizedWidget) {
                    DropthingsUI._LastMaximizedWidget.restorePreviouslyMaximizedWidget();
                    DropthingsUI._LastMaximizedWidget.dispose();
                }

                DropthingsUI._LastMaximizedWidget = new WidgetMaximizeBehavior(widgetId);
                DropthingsUI._LastMaximizedWidget.maximize();

                dropthings.omaralzabir.com.widgetservice.MaximizeWidgetInstance(widget.attr(DropthingsUI.Attributes.INSTANCE_ID));
            }
        },

        restoreWidget: function (widgetId) {
            var widget = jQuery('#' + widgetId);
            var widgetDef = DropthingsUI.getWidgetDef(widget.attr(DropthingsUI.Attributes.INSTANCE_ID));

            if (widgetDef.Maximized == true) {
                widgetDef.Maximized = false;

                DropthingsUI._LastMaximizedWidget.restore();

                if (null !== DropthingsUI._LastMaximizedWidget) DropthingsUI._LastMaximizedWidget.dispose();

                dropthings.omaralzabir.com.widgetservice.RestoreWidgetInstance(widget.attr(DropthingsUI.Attributes.INSTANCE_ID));

            }
            return false;
        },

        collaspeWidget: function (widgetId, postbackUrl) {
            var widget = jQuery('#' + widgetId);

            var instanceId = widget.attr(DropthingsUI.Attributes.INSTANCE_ID);
            var widgetDef = DropthingsUI.getWidgetDef(instanceId);
            widgetDef.Expanded = false;
            dropthings.omaralzabir.com.widgetservice.CollaspeWidgetInstance(instanceId, postbackUrl, DropthingsUI.Actions._onCollaspeWidgetComplete);

            if (widgetDef.Maximized) {
                if (null !== DropthingsUI._LastMaximizedWidget) {
                    jQuery('#widgetMaxBackground').css('height', DropthingsUI._LastMaximizedWidget.visibleHeightIfWidgetCollasped);
                }
            }
        },

        _onCollaspeWidgetComplete: function (postbackUrl) {
            eval(postbackUrl);
        },

        expandWidget: function (widgetId, postbackUrl) {
            var widget = jQuery('#' + widgetId);

            var instanceId = widget.attr(DropthingsUI.Attributes.INSTANCE_ID);
            var widgetDef = DropthingsUI.getWidgetDef(instanceId);
            widgetDef.Expanded = true;
            dropthings.omaralzabir.com.widgetservice.ExpandWidgetInstance(instanceId, postbackUrl, DropthingsUI.Actions._onExpandWidgetComplete);

            if (widgetDef.Maximized) {
                if (null !== DropthingsUI._LastMaximizedWidget) {
                    jQuery('#widgetMaxBackground').css('height', DropthingsUI._LastMaximizedWidget.visibleHeightIfWidgetExpanded);
                }
            }
        },

        _onExpandWidgetComplete: function (postbackUrl) {
            eval(postbackUrl);
        },

        resizeWidget: function (widget, resizeHeight) {
            var instanceId = parseInt(widget.attr(DropthingsUI.Attributes.INSTANCE_ID));
            var widgetDef = DropthingsUI.getWidgetDef(instanceId);

            if (!widgetDef.Maximized) {
                dropthings.omaralzabir.com.widgetservice.ResizeWidgetInstance(instanceId, 0, resizeHeight);
                widgetDef.Resized = true;
                widgetDef.Height = resizeHeight;

            }

            return false;
        },

        deletePage: function (pageId) {
            dropthings.omaralzabir.com.pageservice.DeletePage(pageId, DropthingsUI.Actions._onDeletePageComplete);
            jQuery('#Tab' + pageId).remove();
        },

        _onDeletePageComplete: function (currentPageName) {
            document.location.href = '?' + encodeURI(currentPageName);
        },

        changePageLayout: function (newLayout) {
            dropthings.omaralzabir.com.pageservice.ChangePageLayout(newLayout, DropthingsUI.Actions._onChangePageLayoutComplete);
        },

        _onChangePageLayoutComplete: function (arg) {
            document.location = document.location.href;
        },

        newPage: function (newLayout) {
            dropthings.omaralzabir.com.pageservice.NewPage(newLayout, DropthingsUI.Actions._onNewPageComplete);
        },

        _onNewPageComplete: function (newPageName) {
            document.location.href = '?' + encodeURI(newPageName);
        },

        renamePage: function (newLabel) {
            var newPageName = document.getElementById(newLabel).value;
            dropthings.omaralzabir.com.pageservice.RenamePage(newPageName, DropthingsUI.Actions._onRenamePageComplete);
        },

        _onRenamePageComplete: function () {
            __doPostBack('TabUpdatePanel', '');
        },

        changePage: function (pageId, pageName) {
            document.location.href = '?' + encodeURI(pageName);
        },

        _onChangePageComplete: function (arg) {
            __doPostBack('UpdatePanelTabAndLayout', '');
        },

        onDrop: function (columnNo, instanceId, row, callback) {
->          
dropthings.omaralzabir.com.widgetservice.MoveWidgetInstance(instanceId, 
columnNo, row, callback);
        },

        onWidgetAdd: function (widgetId, columnNo, row, callback) {
            dropthings.omaralzabir.com.widgetservice.AddWidgetInstance(widgetId, columnNo, row, function () { callback(); });
        },
        hide: function (id) {
            document.getElementById(id).style.display = "none";
        },
        onTabItemDrop: function (tabId, orderNo, callback) {
            dropthings.omaralzabir.com.pageservice.MoveTab(tabId, orderNo, callback);
        },

        showHelp: function () {
            var request = new Sys.Net.WebRequest();
            request.set_httpVerb("GET");
            request.set_url('help.aspx');
            request.add_completed(function (executor) {
                if (executor.get_responseAvailable()) {
                    var helpDiv = $get('HelpDiv');
                    var helpLink = $get('HelpLink');

                    var helpLinkBounds = Sys.UI.DomElement.getBounds(helpLink);

                    helpDiv.style.top = (helpLinkBounds.y + helpLinkBounds.height) + "px";

                    var content = executor.get_responseData();
                    helpDiv.innerHTML = content;
                    helpDiv.style.display = "block";
                }
            });

            var executor = new Sys.Net.XMLHttpExecutor();
            request.set_executor(executor);
            executor.executeRequest();
        }
    }
};

Original comment by DevFor...@gmail.com on 30 Jul 2012 at 11:56

GoogleCodeExporter commented 9 years ago
It is " updateWidgetZone: function (widgetZone)" 

Original comment by DevFor...@gmail.com on 30 Jul 2012 at 11:56

GoogleCodeExporter commented 9 years ago
debugging arrow is stopped in here

          onDrop: function (columnNo, instanceId, row, callback) {
=>>>>>>>>          
dropthings.omaralzabir.com.widgetservice.MoveWidgetInstance(instanceId, 
columnNo, row, callback);
        },

Original comment by DevFor...@gmail.com on 30 Jul 2012 at 11:58

GoogleCodeExporter commented 9 years ago
I resolved this problem by adding this in the web.config file.

<serviceHostingEnvironment aspNetCompatibilityEnabled="true" 
multipleSiteBindingsEnabled="true" />

Add multipleSiteBindingsEnabled="true" to the serviceHostingEnvironment

Original comment by DevFor...@gmail.com on 22 Sep 2012 at 2:02

GoogleCodeExporter commented 9 years ago

Original comment by omaralzabir@gmail.com on 22 Sep 2012 at 10:16