XWidgetSoft Forum
https://www.bbs.xwidget.com/

[Bug] HtmlPanel bugs
https://www.bbs.xwidget.com/viewtopic.php?f=3&t=4363
Page 1 of 1

Author:  hamid [ April 11th, 2014, 5:33 pm ]
Post subject:  [Bug] HtmlPanel bugs

xwidget 1.8.8.1111 portable
===========

1. [Html code or URL] box doesn't support html code as it titled so.

2. there is no properties or command available in script code to change the htmlpanel's url through code.
(something like: htmlpanel1.html=... or htmlpanel1.code=...)

3. when changing one of the width or height of html panel through code the other also changes,
also the x,y (top and left) of the htmlpanel will change without requesting for it.

4. there is no scrollbars or aligning or auto-resizing option available in the htmlpanel
to view the page in correct conditions

===========

Author:  Jimking [ April 11th, 2014, 5:56 pm ]
Post subject:  Re: [Bug] HtmlPanel bugs

Hamid maybe you should check the latest version of XWidget v1.9.1.402 and re-check if the bugs are still there..

Author:  hamid [ April 11th, 2014, 6:30 pm ]
Post subject:  Re: [Bug] HtmlPanel bugs

jimking wrote:
Hamid maybe you should check the latest version of XWidget v1.9.1.402 and re-check if the bugs are still there..

i didn't update because i see there are some bugs added in newer versions,
can you check these with new version and post the results?

Author:  Jimking [ April 11th, 2014, 7:19 pm ]
Post subject:  Re: [Bug] HtmlPanel bugs

hamid wrote:
jimking wrote:
Hamid maybe you should check the latest version of XWidget v1.9.1.402 and re-check if the bugs are still there..

i didn't update because i see there are some bugs added in newer versions,
can you check these with new version and post the results?

I use a while the last version and really I don't notice any "new" bugs man..

Author:  digigamer [ April 12th, 2014, 12:18 am ]
Post subject:  Re: [Bug] HtmlPanel bugs

Tested with latest version,
1. [BUG DOES NOT EXIST] HTMLPanel SUPPORTS HTML CODE, only thing is that must be well formed. And yes, the designer doesn't show the preview. You need to debug to see something in live.

2. FEATURE MISSING Setting the URL/HTML in code DOES NOT work.

3. [BUG EXISTS]Resize bugs DO exist. (Sorry that I was running chrome frame inside IE11 on windows7 x64. This could be an issue)

4. FEATURE MISSING Feature missing since long... I would love to have scrollbars. (Wait, there was an HTML trick that shows scrollbars, but unfortunately, with no access to DOM, we couldn't 'inject' anything!)

Author:  Jimking [ April 12th, 2014, 2:58 am ]
Post subject:  Re: [Bug] HtmlPanel bugs

About the n.4 @dg if you check the test youtube widget that I posted here, you will see that the scrollbars exist and the resize right click option DOESN'T WORK. So, all depend on the site or the margins/size of the widget?!

Author:  hamid [ April 12th, 2014, 8:38 am ]
Post subject:  Re: [Bug] HtmlPanel bugs

XWidget 1.9.1.402 portable
=============
i just tested with latest version and still problems exist...

=============

digigamer wrote:
Tested with latest version,
1. [BUG DOES NOT EXIST] HTMLPanel SUPPORTS HTML CODE, only thing is that must be well formed. And yes, the designer doesn't show the preview. You need to debug to see something in live.
yes, you're right...
i tested again and it works with some of the codes, but not all of them,
since i'm not experienced in html coding, i don't know if it is a bug or not.



Quote:
2. FEATURE MISSING Setting the URL/HTML in code DOES NOT work.




Quote:
3. [BUG DOES NOT EXIST]Resize bugs DO NOT exist. (I never recall they did in earlier versions... or may be for me only, sometimes programs do not work as expected!)
i tried with 2 versions and i have this problem in both of them...
just to more clarify:
when you use only [htmlpanel1.Width+=10] the htmlpanel should only get 10pixel bigger, but it also attach to the top left corner of screen; and if you execute command more and more htmlpanel will go up-left more&more until it completely gets out of the screen
also same happens for other commands but in different way:
([htmlpanel1.Height+=10] ; [htmlpanel1.Top=100] ; [htmlpanel1.Left=100])
to test it out:
you can add each of them to a datetimecoreOnUpdate() to see what happens




Quote:
4. FEATURE MISSING Feature missing since long... I would love to have scrollbars. (Wait, there was an HTML trick that shows scrollbars, but unfortunately, with no access to DOM, we couldn't 'inject' anything!)
i have also some temporary solutions for this:
-you can use <iframe> in an html file and have scrollbars in there
-if you know more on html coding you can also add a input box in the html file and load the url directly from html and without xwidget's commands
-also another solution to have scrollbar is using <frameset> but it only works for first page and after you go to a link, you will lose scrollbar; it can be helpful because it can fit the content to widget, maybe using it together with <iframe> can help



>>and here i should say that:
some of the codes doesn't works through htmlpanel box
but works when i add it to html file and load the html file in htmlpanel code box:
example of this: <iframe> and <frameset>

====================

Author:  meme [ April 12th, 2014, 1:11 pm ]
Post subject:  Re: [Bug] HtmlPanel bugs

Is it possible to add the option in designer to show or hide scroll bars on the html panel, making them part of the html panel not part of the content. :?:
Then the scrolling could be controlled by the widget, this would allow the user or code to position or reposition the content of the panel, with something like htmlpanel1.Xoffset and htmlpanel1.Yoffset

Author:  digigamer [ April 13th, 2014, 3:58 am ]
Post subject:  Re: [Bug] HtmlPanel bugs

hamid wrote:
i tested again and it works with some of the codes, but not all of them,
since i'm not experienced in html coding, i don't know if it is a bug or not.

In theory, It should support all that your installed version of IE does. If that's too old, and you can't upgrade (XP machine for instance), Grab Chrome Frame.

Quote:
3. [BUG DOES NOT EXIST]Resize bugs DO NOT exist. (I never recall they did in earlier versions... or may be for me only, sometimes programs do not work as expected!)

I'm changing it to MAY EXIST. May be bits and browser has something to do with it.

Quote:
-you can use <iframe> in an html file and have scrollbars in there
-if you know more on html coding you can also add a input box in the html file and load the url directly from html and without xwidget's commands
-also another solution to have scrollbar is using <frameset> but it only works for first page and after you go to a link, you will lose scrollbar; it can be helpful because it can fit the content to widget, maybe using it together with <iframe> can help

That won't be the case if I wanted to show something like a part of twitter.com. Yes, the scrollbars are not an issue unigue to XWidget. It is related to the Mickeysoft's own implementation of IHTMLPanel2... It provides a really poor way to control them.
Quote:
>>and here i should say that:
some of the codes doesn't works through htmlpanel box
but works when i add it to html file and load the html file in htmlpanel code box:
example of this: <iframe> and <frameset>

Something to do with absolute/relative URLs and cross-origin policies. You cannot refer to a different website in your iframe, especially when it is in a local file. Most, if not all levels of security settings shall block it.

jimking wrote:
About the n.4 @dg if you check the test youtube widget that I posted here, you will see that the scrollbars exist and the resize right click option DOESN'T WORK. So, all depend on the site or the margins/size of the widget?!

You use an "IFRAME" to show that youtube widget. That's exactly we're trying to 'inject' to show scrollbars.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/