This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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: 40797
829
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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic