//______________________________________________________________________________
BookReader.prototype.search = function(term) {
//console.log('search called with term=' + term);
-
- $('#textSrch').blur(); //cause mobile safari to hide the keyboard
-
var url = 'http://'+this.server.replace(/:.+/, ''); //remove the port and userdir
- url += '/~edward/inside_jsonp.php?item_id='+this.bookId;
+ url += '/fulltext/inside.php?item_id='+this.bookId;
url += '&doc='+this.subPrefix; //TODO: test with subitem
url += '&path='+this.bookPath.replace(new RegExp('/'+this.subPrefix+'$'), ''); //remove subPrefix from end of path
url += '&q='+escape(term);