Problem with IE7

Forum to discuss the Web client version of Servoy.

Problem with IE7

Postby abeermann » Fri Aug 05, 2011 10:32 am

Hello Everybody

On my form i have a button to show files from the filesystem.
On action i do:
Code: Select all
vdokument = '//servername/..../.../router-alle.htm';
var file = plugins.file.convertToJSFile(vdokument);
plugins.file.writeFile(file.getName(), file.getBytes());


Everything works as expected:
With Firefox as default browser:
When starting webclient with firefox the open dialog pops up and the file is shown in a new firefox window!(incl. german umlaute ü,ä,...)
When starting webclient with firefox and choosing IE7 in the open dialog the file is shown in a new IE7 window!(incl. german umlaute ü,ä,...)
When starting webclient with IE7 the open dialog pops up and the file is shown in a new firefox window!(incl. german umlaute ü,ä,...)

But:
With IE7 as default browser:
When starting webclient with IE7 the open dialog pops up (no open with option) and the file is shown in the same window!???
German umlaute(ä,ü,..) are missing ???
TABs are enabled in the browser options!! Even setting:open links in a new window seems not to work!???
German umlaute are allways missing ???

What do i miss??
Any help welcomed
Regards
Albert
abeermann
 
Posts: 106
Joined: Fri Nov 26, 2010 12:46 pm

Re: Problem with IE7

Postby jcompagner » Fri Aug 05, 2011 11:30 am

you are pushing a html so the browser will see that that it can open it them self.
And i guess the default behavior of IE7 is to just open it.. (it sees it as if you click on a link..)
Don't know if we can do much about that. I also don't know why you are suddenly loosing umlautes and so on, i guess somehow it is not send out as an UTF8
Maybe you can play a bit with the 3th argument of the writeFile which is the mime type.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Problem with IE7

Postby abeermann » Mon Aug 08, 2011 5:15 pm

Hello
var mimeType = 'application/xhtml+xml' solves one problem.
Now the german Umlaute are allways shown correctly.
Thank you.

I have no idear how to force the IE7 to open the file in a new tab or a new window.
I someone accidental closes the window with "X" the browser is cloesed,the application is gone and on our application server we found the client still connected.


Regards
Albert
abeermann
 
Posts: 106
Joined: Fri Nov 26, 2010 12:46 pm

Re: Problem with IE7

Postby jcompagner » Mon Aug 08, 2011 5:30 pm

if you close the browser then the client will be active for the at least the timeout value (30 minutes)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 6 guests