[CLOSED] FormLayout Error while debugging

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] FormLayout Error while debugging

    Hi,

    I have a strange error. Please find sample project attached.


    If I set panel.Layout = "form" I get a Js error (parentNode is null). Please see BaseInstanceEditor.setSectionProps method.


    Strange thing is if I use


    http://localhost.:4463/WidgetEditor.aspx (notice . after localhost)


    instead of


    http://localhost:4463/WidgetEditor.aspx


    Everything works.


    Regards.


    -tansu
  2. #2

    RE: [CLOSED] FormLayout Error while debugging

    Forgot to add [1.0], sorry.
  3. #3

    RE: [CLOSED] FormLayout Error while debugging

    Hi,

    Any comment ? Problem seems related with FormLayout. Trying to figure out but still no result.


    Regards.


    -tansu
  4. #4

    RE: [CLOSED] FormLayout Error while debugging

    Any update on this ? I'm trying to solve since yesterday.
  5. #5

    RE: [CLOSED] FormLayout Error while debugging

    Hi,

    I finally found the problem.
    UpdatePanel destroy previous markup first (The DOM of the body gets totally wiped) and then executes generated script. Therefore FormLayout cannot correctly destroy previous instance (ExtJS can't clean up properly because the UpdatePanel have wiped out the whole DOM. The components assume that they exist in the DOM until you destroy them.)


    I am not sure about possible fix because I am not sure how to destroy widgets before markup destroying (in the UpdatePanel context)


    At this moment I added try/catch block (not sure about side effects). Please try update from SVN and retest
  6. #6

    RE: [CLOSED] FormLayout Error while debugging

    Thanks Vladimir,

    Strange thing:
    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">

    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">http://localhost.:4463/WidgetEditor.aspx (notice . after localhost)
    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">

    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">instead of
    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">

    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">http://localhost:4463/WidgetEditor.aspx
    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">

    Everything works. If I deploy to production environment everything works. Script debugging may cause this, because in Chrome http://localhost:4463/WidgetEditor.aspx also works.


    Regards,


    -tansu
  7. #7

    RE: [CLOSED] FormLayout Error while debugging

    tansu (6/18/2010)Thanks Vladimir,

    Strange thing:
    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">

    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">http://localhost.:4463/WidgetEditor.aspx (notice . after localhost)
    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">

    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">instead of
    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">

    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">http://localhost:4463/WidgetEditor.aspx
    <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); ">

    Everything works. If I deploy to production environment everything works. Script debugging may cause this, because in Chrome http://localhost:4463/WidgetEditor.aspx also works.


    Regards,


    -tansu
    Isn't this explained by Vladimirs comments above? Your last comment appears to be the same as your first comment, which was replied to by Vladimir.


    Can you provide more information? Maybe a simplified .aspx code sample demonstrating the full scenario?


    Geoffrey McGill
    Founder
  8. #8

    RE: [CLOSED] FormLayout Error while debugging

    Hi,

    I justed wanted to inform you. Vladimir's comment says there seems a problem with updatepanel. What I want to say is this error does not occur if I don't use script debugging with Vs.Net. I just want to share with you.


    Regards.


    -tansu
  9. #9

    RE: [CLOSED] FormLayout Error while debugging

    BTW I have attached a very simpe aspx page.
  10. #10

    RE: [CLOSED] FormLayout Error while debugging

    tansu (6/18/2010) BTW I have attached a very simpe aspx page.
    Thanks for the update. I think the attachment might be missing. I could not see attached to any of your posts.


    Geoffrey McGill
    Founder
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Help debugging various javascript errors
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 23, 2010, 12:31 PM
  2. Replies: 5
    Last Post: Mar 30, 2010, 11:12 AM
  3. [CLOSED] width not set in FormLayout
    By idrissb in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 25, 2010, 8:39 PM
  4. Replies: 0
    Last Post: Dec 27, 2009, 1:47 PM
  5. is javascript debugging possible with coolite
    By joydeepsen in forum 1.x Help
    Replies: 1
    Last Post: Jun 12, 2009, 11:16 AM

Posting Permissions