I’m learning how to put together a web app by converting one of my old MS Access apps over to Xojo. I don’t currently have a license to build a web app, so I’m running it out of the IDE. So far things are coming together pretty well, thanks to this and the old RB forums and Chris’ webinars. I’ve run into a couple of quirky problems, the most vexing mentioned here:
When I try to run my app using IE 10, I get notified that the browser is not supported. I can hit F12 and change the user agent to IE 9, and things load. I’ve also added the “Return True” code to the “AllowUnsupportedBrowser” session event to keep the error from popping up at all. However:
The weblistbox that I populate upon opening the application does not render properly. The records are listed, but if I use vertical scroll, I quickly move down into a blank, gray area. It’s as if the weblistbox is unaware of the last record and allows scrolling past it. I can scroll all the way back to the top to see the records again. To make things more interesting:
If I select a record and click a button to access a detail page and then return to the list page, the weblistbox is properly rendered and works as expected.
I only have this problem in IE. If I open the application in Firefox, everything works as expected.
I’m building the web app on a Windows 7 (64-bit) box.
I just realized that I should have posed this in the Web area. Sorry! Not sure I can move it and don’t want to cross-post.
(I moved this to the Web channel for you.)
What version of Xojo are you using? I don’t have IE 10 any longer as my Windows installations seem to have auto-updated to IE 11, but I don’t get a warning when running a web app using Xojo 2014r1.1.
I’m at 2014r1.1, like yourself. Thanks! BTW … I meant “Paul” not “Chris” in my original post. I’ve a friend Chris Lefavre and my addled brain mixed you up! Thanks for the great webinars!
It turns out I had a Windows VM (Windows 7x86) that still had IE 10 on it, but it is working fine running Xojo web apps. I do not get an “unsupported browser” error running either the Eddie’s Electronics sample app or a simple dummy app with a single button.
I tried creating a simple app with just a command button and still get the compatibility warning. I’m running IE 10 (10.0.9200.16897) on Windows 7 Pro SP1 64-bit. All updates seem to be in place.
I installed a Xojo demo copy on another machine and tried creating a dummy app with the same result.
Do me a favor. Put a label on the page and in the shown event put
Label1.text = Session.Header(“user-agent”)
And return true from the Session.AllowUnsupportedBrowser event.
I’d like to see what it’s showing.
Mozilla/4.0??? (my question marks).
Is that the whole returned string? If so there’s something screwing with your configuration. A normal IE10 user agent string looks like this:
Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)
If that’s not the case, the framework simply can’t tell what your browser is and just rejects it.
Sorry, I didn’t make the label big enough. Here’s the complete string:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
It’s compatibility view!
My browser was in that mode to deal with an application that’s not supported beyond IE8. I turned off Compatibility View and the browser is recognized properly. At least that problem is solved!
Unfortunately, the weblistbox is still not rendering properly.
More grist for the improperly rendering weblistbox mill …
After further testing, I’ve determined that if I populate the weblistbox during the Shown event of either the weblistbox object or the web page, the weblistbox renders properly. Unfortunately it appears blank until the query has completed (which takes a few seconds).
If I load the data during the Open event of either, the weblistbox does not render properly.
Remember that behavior only occurs under IE. Firefox is fine.
Please file a bug report in Feedback with a simple project showing the behavior you are seeing.
[quote=85737:@Michael Nagel]It’s compatibility view!
My browser was in that mode to deal with an application that’s not supported beyond IE8. I turned off Compatibility View and the browser is recognized properly. At least that problem is solved! :-)[/quote]
That’s what I thought