Saturday, February 04, 2012   Click here to search  
Welcome: Register | Login
You Are Here » Forums
 
Orlando DotNetNuke® Users Group (ODUG) Forums
 
 
HomeHomeGeneralGeneralHow To, Tips & ...How To, Tips & ...DNN AJAX interferes with JavaScriptDNN AJAX interferes with JavaScript
Previous
 
Next
New Post
9/1/2009 10:22 AM
 

Dear ODUG:

DNN AJAX interferes with Javascript. If you go to the following url and hover over the any of the 4 pictures in the middle of the screen you will notice that the picture slides and changes to a nice red background:

https://www.surplussolutions-llc.com/...

But if you go to the dnnpage https://www.surplussolutions-llc.com/... page you will notice that the picture slides but does not turn read. The only difference between the 2 pages is that the following line is in the ddn page but not in the html page

<script src="http://orlando.dotnetnukeug.net/ScriptResource.axd?d=CYFxU1Fc8lFX180SePi54D11O4QWG9KNHbrvmJO2eJFeGPguC4EvQ36fvq9Wd15G0&amp;t=633083564260000000" type="text/javascript"></script>

I googled ScriptResource and found that it has something to do with AJAX. Is there a way to turn off AJAX in dnn 4.9.2 for this page?

Regards,
Charles Teague
President
V iparious
Elite Software Development

{email}cteague@viparious.com
{web} www.viparious.com
{phone} 863.683.9500
{fax} 888.210.3226
{address}
41 Lake Morton Drive, Suite 27
Lakeland, Florida 33801
 
New Post
9/1/2009 4:05 PM
 

Dear ODUG:

Commenting out one of the httpHandlers resolved the issue in the development enviroment:
<httpHandlers>
<!--add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/ -->
</httpHandlers>

What problems to you see with this? I am thinking that it may cause issues if I want to implement an AJAX module on the same site. I with prefer to stop the behavior only on the one page that I will have the javascript that the above interferes with. Any suggestions?

Regards,
Charles Teague
President
V iparious
Elite Software Development

{email}cteague@viparious.com
{web} www.viparious.com
{phone} 863.683.9500
{fax} 888.210.3226
{address}
41 Lake Morton Drive, Suite 27
Lakeland, Florida 33801
 
New Post
9/1/2009 4:22 PM
 

Have you used FireBug (or a similar tool) to step through the JavaScript to see exactly where the script is failing or conflicting? The IE8 debugger may help too.

 
New Post
9/1/2009 6:10 PM
 

OK so here's your error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; Media Center PC 5.0; InfoPath.2; .NET CLR 1.1.4322; Zune 3.0; .NET CLR 3.5.30729; OfficeLivePatch.1.3; MS-RTC LM 8; OfficeLiveConnector.1.4; .NET CLR 2.0.50727)
Timestamp: Tue, 1 Sep 2009 20:36:38 UTC


Message: Sys.ArgumentTypeException: Object of type 'Object' cannot be converted to type 'Array'.
Parameter name: array
Line: 1741
Char: 12
Code: 0
URI: https://www.surplussolutions-llc.com/...

And here's the code that references:

Array.forEach = function Array$forEach(array, method, instance) {
/// <param name="array" type="Array" elementMayBeNull="true"></param>
/// <param name="method" type="Function"></param>
/// <param name="instance" optional="true" mayBeNull="true"></param>
var e = Function._validateParams(arguments, [
{name: "array", type: Array, elementMayBeNull: true},
{name: "method", type: Function},
{name: "instance", mayBeNull: true, optional: true}
]);
if (e) throw e;

for (var i = 0, l = array.length; i < l; i++) {
var elt = array[i];
if (typeof(elt) !== 'undefined') method.call(instance, elt, i, array);
}
}

Somewhere in the code you have an undeclared or improperly declared array with an invalid type of OBJECT that you're trying to enumerate with .foreach , since I don't have the source it's hard to tell where.

Cheers,

Lee

 
New Post
9/2/2009 12:21 PM
Accepted Answer 

Dear Will, and Lee,

Thank you very much for your advice. I will look at using Firebug to trackdown the error that is displaying. In the meantime, I found that disabling AJAX on the Host settings page allows the slider to work in the development envirnoment. So, I changed the config file back to its orginial form. This allowed all the features of the website to work even the autocomplete that we created that uses AJAX (I believe this AJAX was implemented in pure Dot Net and does not use DNN AJAX).

Regards,
Charles Teague
President
V iparious
Elite Software Development

{email}cteague@viparious.com
{web} www.viparious.com
{phone} 863.683.9500
{fax} 888.210.3226
{address}
41 Lake Morton Drive, Suite 27
Lakeland, Florida 33801
 
Previous
 
Next
HomeHomeGeneralGeneralHow To, Tips & ...How To, Tips & ...DNN AJAX interferes with JavaScriptDNN AJAX interferes with JavaScript


 
     
 
Forum Policy
 
 

These Forums are dedicated to the discussion of the Orlando DotNetNukeUG Users Group surrounding the kindred usage of DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the UG, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 
     
Terms Of Use | Privacy Statement
© 2008-2011 Orlando DotNetNuke® Users Group (ODUG)
DotNetNuke® Powered! v5.6.3.45
DotNetNuke® Powered! v05.01.00
Skin designed by Will Strohl
Website hosted by Applied Innovations
Orlando DotNetNuke® Users Group
DotNetNuke® is a registered trademark of the DotNetNuke® Corporation