Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesScriptResource: ScriptResource: 'originalWidth' is null or not an object
Previous
 
Next
New Post
5/11/2010 4:32 AM
 
Hi, I'm developing a custom module using ajax toolkit extension.
I've used some ValidatorCalloutExtender, and all work fine before starting validation. After the validation is started (with the warnings validators popups) if I do some postback, I receive an error on IE browser and the page is no refreshed with the postback changement.
Below you can see the error reported on my browser:

Error Details Web page

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1;. NET CLR 2.0.50727; MDDR;. NET CLR 3.5.30729;. NET CLR 3.0.30729)
Timestamp: Tue, 11 May 2010 07:42:07 UTC


Message: 'originalWidth' is null or not an object
Line: 50
Char: 1
Code: 0
URI: http://localhost/dotnetnuke/ScriptRes...

Any Idea to solve!? I don't know where to find to solve it!
ThankYou!
 
New Post
5/11/2010 6:47 AM
 
I think it is a bug of Ajax Script Manager in Dotnetnuke Framework!
If I make a page with all same code, outside the DNN framework, with ajax script manager 1.0.10301 version all work fine!
I notice to you that in DNN I've installed AjaxControlToolkit.dll 1.0.10301 same version
How fix it into DNN framework?
 
New Post
5/11/2010 8:56 AM
 
You can try this bug using next code for your testing custom module:

View.ascx

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="View.ascx.vb" Inherits="Registrazione.View" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
  
      
  
        <table>
            <tr>
                <td>Name:</td>
                <td>
                    <asp:TextBox runat="server" ID="NameTextBox" BorderStyle="solid" BorderWidth="1px" BorderColor="#a9a9a9" />
                </td>
            </tr>
            <tr>
                <td>Phone Number:</td>
                <td>
                    <asp:TextBox runat="server" ID="PhoneNumberTextBox" BorderStyle="solid" BorderWidth="1px" BorderColor="#a9a9a9" />
                </td>
            </tr>
        </table>
        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
            Width="150px">
            <asp:ListItem>America</asp:ListItem>
            <asp:ListItem>Asia</asp:ListItem>
            <asp:ListItem>Europe</asp:ListItem>
        </asp:DropDownList>
        <br />
        <asp:DropDownList ID="DropDownList2" runat="server" Width="150px">
        </asp:DropDownList>
        <br />    
        <asp:RequiredFieldValidator runat="server" ID="NReq"
            ControlToValidate="NameTextBox"
            Display="None"
            ErrorMessage="<b>Required Field Missing</b><br />A name is required." />
        <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="NReqE"
            TargetControlID="NReq"
            HighlightCssClass="validatorCalloutHighlight" />    
                      
        <asp:RequiredFieldValidator runat="server" ID="PNReq"
            ControlToValidate="PhoneNumberTextBox"
            Display="None"
            ErrorMessage="<b>Required Field Missing</b><br />A phone number is required.<div style='margin-top:5px;padding:5px;border:1px solid #e9e9e9;background-color:white;'><b>Other Options:</b><br /><a href=' No phone number available in profile.");'>Extract from Profile</a></div>" />
        <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="PNReqE"
            TargetControlID="PNReq"
            HighlightCssClass="validatorCalloutHighlight"
            Width="350px" />     
                     
        <asp:RegularExpressionValidator runat="server" ID="PNRegEx"
            ControlToValidate="PhoneNumberTextBox"
            Display="None"
            ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}"
            ErrorMessage="<b>Invalid Field</b><br />Please enter a phone number in the format:<br />(###) ###-####" />
        <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="PNReqEx"
            TargetControlID="PNRegEx"
            HighlightCssClass="validatorCalloutHighlight" />
               
        <asp:Button ID="Button1" runat="server" Text="Submit" 
    OnClick="Button1_OnClick" Width="61px" />
            <br /><br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:Label id="lblMessage" runat="server" />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>

View.ascx.vb
Imports DotNetNuke
Partial Public Class View
    Inherits DotNetNuke.Entities.Modules.PortalModuleBase
    Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
        If Not Page.IsPostBack Then
            If DotNetNuke.Framework.AJAX.IsInstalled Then
                DotNetNuke.Framework.AJAX.RegisterScriptManager()
            End If
        End If
    End Sub
    Protected Sub Button1_OnClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
    End Sub
    Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles DropDownList1.SelectedIndexChanged
        DropDownList2.Items.Clear()
        Select Case DropDownList1.SelectedValue
            Case "America"
                DropDownList2.Items.Add(New ListItem("Alabama", "Alabama"))
                DropDownList2.Items.Add(New ListItem("Alaska", "Alaska"))
                DropDownList2.Items.Add(New ListItem("Arizona", "Alaska"))
                DropDownList2.Items.Add(New ListItem("Etc.", "Etc."))
            Case "Europe"
                DropDownList2.Items.Add(New ListItem("Austria", "Austria"))
                DropDownList2.Items.Add(New ListItem("Belgium", "Belgium"))
                DropDownList2.Items.Add(New ListItem("Bulgaria", "Bulgaria"))
                DropDownList2.Items.Add(New ListItem("Etc.", "Etc."))
            Case "Asia"
                DropDownList2.Items.Add(New ListItem("Abkhazia", "Abkhazia"))
                DropDownList2.Items.Add(New ListItem("Afghanistan", "Afghanistan"))
                DropDownList2.Items.Add(New ListItem("Akrotiri and Dhekelia", "Akrotiri and Dhekelia"))
                DropDownList2.Items.Add(New ListItem("Etc.", "Etc."))
        End Select
  
        If DropDownList1.SelectedValue = "America" Then
        End If
    End Sub
End Class
 
New Post
5/11/2010 9:33 AM
 
I've solved disabling partial rendering for view.ascx
But how fix it with partial rendering enabled!??
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesScriptResource: ScriptResource: 'originalWidth' is null or not an object


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out