Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartClient window header label with link source

    "v9.0p_2013-07-15/PowerEdition Deployment\"

    I add the link href to the label shown on the window header, but I found that I was not able to click the link.

    I wonder if I did in a right way or does smartclient support this feature?

    Attached is the screen shot.

    Thanks,
    Attached Files

    #2
    We can't help to debug code from a screenshot, but if you show us the code you used to add that link, we may be able to help.

    Comment


      #3
      I attached a runnable test case.

      The test case shows following problems:

      1) Using Chrome, image icon in the table shows correctly, pod header label text shows correctly, when click the right arrow on the first row, it jumps to another page, the pod header label becomes a link and add new page title, but the anchor link is non clickable.

      2) Using IE9, image icon in the table shows correctly, pod header label is truncated. The link shows when I click the arrow, but the link is also truncated. But the link is clickable.

      3) Using Samsung Galaxy Tab 10.1 Android version 4.0.4, Model GT-P7510, there will be extra ellipses shown on the right of image icon. The pod label shows completely, but the link is also not clickable.

      Attached are just required jsp page, js files and image files.
      Just put all of them in a folder named Test, put smartclient isomorphic folder in also. With the tomcat server run, just give the url: http://localhost:8080/Test/viewTable.jsp then it should work.

      Thanks for your time.
      Attached Files

      Comment


        #4
        Also attached three screenshots about above three problems.
        Attached Files

        Comment


          #5
          This code is using JQuery to dynamically update DOM written out by SmartClient. This isn't supported.

          If you can create a similar problem using supported approaches, please let us know (with a new test case).

          Keep in mind, test cases should be minimal - this one appears to have a bunch of unrelated application logic.

          Comment


            #6
            Thanks, I will try to use smartclient setTitle to see if it works. Because this happens in another iframe, but the smartclient portlet object is defined in the parent frame, I do not know if I can get that object. Any way, I will try.

            But one problem is smartclient only problem. In the createTable page, I use the getValueIcon to set an image icon. Extra ellipsis shows on the right of the image icon on tablet. I don't think this problem has anything to do with jQuery or other stuff.
            Last edited by zhanghuancs; 26 Jul 2013, 04:19.

            Comment


              #7
              If you think there's an issue here that's unrelated to the invalid usage in your test case, please put together as a separate, minimal test case that doesn't involve invalid usage.

              Comment


                #8
                I think I solved most of my problems, including value icon with extra ellipses.

                But I still cannot get the link title clickable. I do not know if I did it in a right way.

                I just want the title on the portlet header could be a link, and the link is clickable.

                I just try the following simple code, the link is clickable on IE 9, but not clickable on Chrome and Firefox.

                Code:
                isc.PortalLayout.create({
                	width: "100%",
                	height: "100%",
                	portlets: [
                		 isc.Portlet.create({
                		         title: "<a href='http://www.smartclient.com'>Portlet 1</a>"
                		  })
                	 ]
                });
                Thank you very much.
                Last edited by zhanghuancs; 26 Jul 2013, 08:49.

                Comment


                  #9
                  We have made a change to address this issue.
                  Please try the next nightly build, dated Aug 3 or above.

                  Regards
                  Isomorphic Software

                  Comment


                    #10
                    I tried the latest build. Yes, it works now.

                    Thanks!!!

                    Comment

                    Working...
                    X