Results 1 to 6 of 6
  1.    #1  
    I tried adding global searches, but I broke my interface. I went over my edits a hundred times and can't find anything wrong with them, so I figured I'll post them here and hope that someone might be able to point out the problem.

    Ok, here's what I have for global-search-assistant.jsjsjs

    Code:
    GlobalSearchAssistant = Class.create({  
      initialize : function(controller, appAssistant) {
      	this.launcherAssistant = appAssistant;
        this.currentFilter = '';
        this.controller = controller;
    	this.searchExplicitlyExpanded = false;
    	this.noMatches = false;
    	this.offset=0;
    	this.limit=40;
    	this.URLs = {
    		'google':$L("www.google.com/m/search?client=ms-palm-webOS&channel=iss&q="),
    		'wikipedia':$L("http://en.wikipedia.org/wiki/Special:Search/"),
    		'twitter': $L("http://search.twitter.com/search?q="),
    		'imdb': $L("http://www.imdb.com/find?s=all&q="),
    		'mirriamwebster': $L("http://www.merriam-webster.com/dictionary/")
    	};
    Code:
    	clearSearch: function() {
    		if (this.delayShowAppsConatactsTimeout)
    			window.clearTimeout(this.delayShowAppsConatactsTimeout);
    		this.currentFilter = "";
    		this.searchExplicitlyExpanded = false;
    		this.noMatches = false;
    		this.hideContactsDiv();
    		this.launcherIconsDiv.hide();
    		this.dialDiv.hide();
    		this.numberDiv.hide();
    		this.webDrawer.showWeb =  false ;
    		this.controller.modelChanged(this.webDrawer);
    		this.expandedSearchDrawer.showExpanded = false;
    		this.controller.modelChanged(this.expandedSearchDrawer);
    		this.searchApps.clear();
    		$('google').removeClassName('selected');
    		$('map').removeClassName('selected');
    		$('wikipedia').removeClassName('selected');
    		$('twitter').removeClassName('selected');
    		$('imdb').removeClassName('selected');
    		$('mirriamwebster').removeClassName('selected');
    		$('web').removeClassName('selected');
    		if (this.controller.get('searchterm')) {
    			this.controller.get('searchterm').mojo.setText("");
    			this.controller.get('searchterm').mojo.blur();
    		}
    		this.gpsInfo = undefined;
    	},
    for expanded-searches-div.html
    Code:
    	<div class="palm-row" id="imdb" name="search-identifier" x-mojo-tap-highlight="persistent">
    		<div class="palm-row-wrapper">
    			<div class="search-imdb"></div>
    		</div>
    	</div>
    	<div class="palm-row" id="merriamwebster" name="search-identifier" x-mojo-tap-highlight="persistent">
    		<div class="palm-row-wrapper">
    			<div class="search-merriamwebster"></div>
    		</div>
    	</div>
    global-search.css
    Code:
    .palm-group.search .search-imdb {
                    width: 100%;
                    height: 52px;
                    background: url(../images/search-twitter.png) center center no-repeat;
    }
    .palm-group.search .search-merriamwebster {
                    width: 100%;
                    height: 52px;
                    background: url(../images/search-twitter.png) center center no-repeat;
    }
    I used the twitter images as a temp solution. The problem I'm having is there is no distinction between the twitter search button and the imdb one in the icons...then if I try a search it pretty much just breaks the entire interface, and leaves me with only the bottom buttons to use.

    Thanks in advance for any help. In the meantime I'm going to restore these three files
  2. jsabo's Avatar
    Posts
    427 Posts
    Global Posts
    479 Global Posts
    #2  
    Something's hard-coded to twitter, so a few thoughts:

    1- Make sure Twitter is last in all three pages

    2- Don't try reusing the image. I don't think that it really uses the image name to pick the seach URL, but I could be wrong

    3- It's possible that this is working, but the order isn't what you think, and because you reused the image, you think you're going to IMDB but really going to twitter. If all three buttons take you to twitter, you can ignore this comment
  3. #3  
    There a quite a few problems I found try these fixes (Make sure the spaces are aligned, I can't align them on here for some reason):

    Code:
    global-search-assistant.jsjsjs
    
    Code:
    GlobalSearchAssistant = Class.create({  
      initialize : function(controller, appAssistant) {
      	this.launcherAssistant = appAssistant;
        this.currentFilter = '';
        this.controller = controller;
    	this.searchExplicitlyExpanded = false;
    	this.noMatches = false;
    	this.offset=0;
    	this.limit=40;
    	this.URLs = {
    		'google':$L("www.google.com/m/search?client=ms-palm-webOS&channel=iss&q="),
    		'wikipedia':$L("http://en.wikipedia.org/wiki/Special:Search/"),
    		'twitter': $L("http://search.twitter.com/search?q="),
    		'imdb': $L("http://www.imdb.com/find?s=all&q="),
    		'merriamwebster': $L("http://www.merriam-webster.com/dictionary/")
    	};
    Code:
    clearSearch: function() {
    		if (this.delayShowAppsConatactsTimeout)
    			window.clearTimeout(this.delayShowAppsConatactsTimeout);
    		this.currentFilter = "";
    		this.searchExplicitlyExpanded = false;
    		this.noMatches = false;
    		this.hideContactsDiv();
    		this.launcherIconsDiv.hide();
    		this.dialDiv.hide();
    		this.numberDiv.hide();
    		this.webDrawer.showWeb =  false ;
    		this.controller.modelChanged(this.webDrawer);
    		this.expandedSearchDrawer.showExpanded = false;
    		this.controller.modelChanged(this.expandedSearchDrawer);
    		this.searchApps.clear();
    		$('google').removeClassName('selected');
    		$('map').removeClassName('selected');
    		$('wikipedia').removeClassName('selected');
                          $('imdb').removeClassName('selected');
    		$('merriamwebster').removeClassName('selected');	
                          $('twitter').removeClassName('selected');
    		$('web').removeClassName('selected');
    		if (this.controller.get('searchterm')) {
    			this.controller.get('searchterm').mojo.setText("");
    			this.controller.get('searchterm').mojo.blur();
    		}
    		this.gpsInfo = undefined;
    	},
    Code:
    for expanded-searches-div.html
    Code:
    	<div class="palm-row" id="imdb" name="search-identifier" x-mojo-tap-highlight="persistent">
    		<div class="palm-row-wrapper">
    			<div class="search-imdb"></div>
    		</div>
    	</div>
    	<div class="palm-row" id="merriamwebster" name="search-identifier" x-mojo-tap-highlight="persistent">
    		<div class="palm-row-wrapper">
    			<div class="search-merriamwebster"></div>
    		</div>
    	</div>
    Code:
    global-search.css
    Code:
    .palm-group.search .search-imdb {
                    width: 100%;
                    height: 52px;
                    background: url(../images/search-imdb.png) center center no-repeat;
    }
    insert blank line here
    .palm-group.search .search-merriamwebster {
                    width: 100%;
                    height: 52px;
                    background: url(../images/search-merriamwebster.png) center center no-repeat;
    }
    insert blank line here
    Make sure you move the search png's to /usr/lib/luna/system/luna-applauncher/images

    Let me know if any of this helps you!
    Palm History: Palm III>IIIc>CLIÉ NR70v>CLIÉ TG50>Tungsten C>Treo 650>Treo 700p>Centro>Pre!! 6/5/09
    Phone History: Way too long

    Sorry Timmy, SERO does not work with the Pre.
    If you have an iTouch click me.
  4.    #4  
    I fixed it, and it works! I changed the order in the "expanded-searches-div.html" file to let twitter be last. Now I have another really odd problem is, whenever I restart my phone I lose all my data!
  5. #5  
    Did you remember to mount -o remount,ro / after?
    Palm History: Palm III>IIIc>CLIÉ NR70v>CLIÉ TG50>Tungsten C>Treo 650>Treo 700p>Centro>Pre!! 6/5/09
    Phone History: Way too long

    Sorry Timmy, SERO does not work with the Pre.
    If you have an iTouch click me.
  6.    #6  
    I thought that's what it was but remounting it in read only didn't fix it...it's weird but I have a feeling that it's the cause.

Posting Permissions