Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MHT format

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
We had a requirement to export links to html. to acheive that we are showing the links as html in a popup and user has to do "save as" from the browser. The saved html will look like this.

but in IE there is an option Web Archive(mht) format also along with html. if users saves the html as mht format the html in it very different than normal. like
the problem is: we even had import functionality also which should take the exported links html and read the file and add to datbase. since the user saved the file in mht format. the program is reading link as 3Dlink1 etc.
how to make the browser not show mht format in the "save as" dialog. or do i have to make the import take mht formats also. does anybody gone through this situation?
Please advise.
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vijaya,

Sorry, but as far as I can tell, it is not possible for a web application to do that kind of change in the browser window (for security reasons). There might be a way - perhaps you'd get more luck in a web development forum.
 
author & internet detective
Posts: 41849
904
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, it's not possible to change the save options. Why not just tell the user not to save in mht format?

Moving to our web forum.
 
vijaya bacina
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in IE7 the mht format is default in the save dialog box. i think it may be annoying to user to select another format everytime they save.
is there a way to read mht file and get the content. I have seen "Chilkat java MHT library" in my google search. has anyone tried this library before?
 
vijaya bacina
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would appreciate if anybody shed some light on this.
Thanks
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no way to hide it

You need to make your code smart enough when it is imported to say that the format is wrong. I am sure some reg exp can tell you that.

Have you tried to use the header



Eric
 
Friends help you move. Good friends help you move bodies. This tiny ad will help:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic