How to make PDF file downloadable in HTML link?

This is a common issue but few people know there’s a simple HTML 5 solution: <a href=”https://stackoverflow.com/questions/364946/./directory/yourfile.pdf” download=”newfilename”>Download the pdf</a> Where newfilename is the suggested filename for the user to save the file. Or it will default to the filename on the serverside if you leave it empty, like this: <a href=”https://stackoverflow.com/questions/364946/./directory/yourfile.pdf” download>Download the pdf</a> … Read more

Injected li items are not formatted with CSS style [closed]

Dynamically added listview elements must have its markup enhanced with this function: $(‘#listviewID’).listview(‘refresh’); Working example: http://jsfiddle.net/Gajotres/LrAyE/ In case you receive this error: cannot call methods on listview prior to initialization Then restyle your listview with this: $(‘#listviewID’).listview().listview(‘refresh’); First listview function will initialize listview and second one will restyle it. But do this ONLY if error … Read more