Software Archive
Read-only legacy content

A bug

wang_m_
New Contributor I
721 Views

All <ul></ul> tags would be removed after  I added a new page and saved under design mode,

0 Kudos
6 Replies
Elroy_A_Intel
Employee
721 Views
  1. Are you still experiencing this issue?
  2. What version of the XDK are you using?
  3. What steps do you follow to get this result?
0 Kudos
wang_m_
New Contributor I
721 Views

1.yes I still experiencing this issue

2.1912

3. original code

 <p class="center" id="article_list_panel_loading" style="padding-top:40px;">
                    <img src="./images/loading.gif">
                </p>
                <ul class="list widget uib_w_1 d-margins" data-uib="app_framework/listview" data-ver="1" id="portalArticleList">

                </ul>

                <p><a class="button block" id="articleListButton" onclick="articleListmore();" style="display:none">more</a>
                </p>

after I add a new page or modify an exist page under design mode ,the code becomes like this, all <ul></ul> tags gone

 <p class="center" id="article_list_panel_loading" style="padding-top:40px;">
                    <img src="./images/loading.gif">
                </p>

                <p><a class="button block" id="articleListButton" onclick="articleListmore();" style="display:none">more</a>
                </p>
            </div>

 

0 Kudos
wang_m_
New Contributor I
721 Views

A new issue , all pages gone ,it worked fine on former version

0 Kudos
Chris_P_Intel
Employee
721 Views

in the case of the original issue, for some frameworks (App Framework and JQM, maybe others) if you make a listview and then remove all the individual list items, the view itself will be removed when re-opened in App Designer.  That's why your empty <ul> gets taken away.  The workaround is to remove the data-uib attribute from the <ul>. That'll make it so that App Designer will leave it alone.

As to the missing pages, I'm not sure. Make sure your document is well formed. If you can't figure it out,  .zip up and post your project and maybe we can spot the issue.

Are you using source control (like Git) ? This is an extremely important part of professional software development. If you don't use source control, then the current version of your file is all you've got. So if a mistake occurs, like now, you have no recourse but to figure it out.  But if you had source control, you could simply go backwards to the last working version and re-resume.

 

0 Kudos
wang_m_
New Contributor I
721 Views

Thank you so much , it helps   ,this is my QR code

0 Kudos
wang_m_
New Contributor I
721 Views

By the way I meationed former version means XDK version not mine, after I upgrade XDK to the latest version ,my pages gone

0 Kudos
Reply