Perhaps a silly question, but I couldn't find it answered in the forums here and HTML5 suggestions via Google didn't work for me. The scenario is... I have a single page servicing iPad and iPhone, but displaying different external (in the app) HTML files. Instead of having to do document.write everywhere, I'd far prefer pulling in a pre baked HTML segment instead.
Do-able?
// find out device type
var device = NKGetDeviceType(); var isiPad = (device.match(/iPad/i) != null);
if (isiPad) {
// it's an iPad
// insert an iPad friendly HTML file here
} else {
// it's an iPhone
// insert an iPad friendly HTML file here
}


