Moderator: Tech Team
 Selin
				Selin
			






 
		
 Aerial Attack
				Aerial Attack
			

 
		Aerial Attack wrote:The saved searches no longer work for "tournament" games.
This is because previously there was only a text box to do partial matches against game titles.
Now that there is a drop-down box (holding the tournament names), the script needs to be able to remember the dropdownbox.selectedvalue (NOT .selectedId ?)
Hope that explains it a little better.
 
 
 Selin
				Selin
			






 
		// The Save Button Handler
var saveButtonHandler = function saveButtonHandler()
{
var name= prompt("Please Name this search (reusing a name will overwrite it)",loadedName);
if (name!="" && name != null)
{
var searchDetails=new Object();
var allP = document.getElementById('middleColumn').getElementsByTagName("input");
// var count = 0;
// var tourney = document.getElementById('middleColumn').getElementsByTagName("select");
for( i in allP )
{
if(allP[i].type=="checkbox")
{
searchDetails[allP[i].id] = allP[i].checked;
}
if(allP[i].type=="text")
{
searchDetails[allP[i].id] = allP[i].value;
}
// count++;
}
// searchDetails[count] = tourney.selectedIndex;
myOptions[name] = searchDetails;
serialize("SEARCHES", myOptions);
showSearchs();
}
}
// The Load Button Handler
var loadButtonHandler = function loadButtonHandler(searchDetails,s,bRun)
{
loadedName = s;
var allP = document.getElementById('middleColumn').getElementsByTagName("input");
// var count = 0;
for( i in allP )
{
if(allP[i].type=="checkbox")
{
if ( typeof(searchDetails[allP[i].id]) != "undefined" )
{
allP[i].checked = searchDetails[allP[i].id] ;
}
else
{
// We dont have this checkbox in the saved search
// So treat it as "False" and add it to the saved search
allP[i].checked = false;
searchDetails[allP[i].id] = false;
myOptions[s] = searchDetails;
serialize("SEARCHES", myOptions);
}
}
if(allP[i].type=="text")
{
if( typeof(searchDetails[allP[i].id]) != "undefined" )
{
allP[i].value = searchDetails[allP[i].id];
}
else
{
// We dont have this textbox in the saved search
// So treat it as "" and add it to the saved search
allP[i].value = "";
searchDetails[allP[i].id] = "";
myOptions[s] = searchDetails;
serialize("SEARCHES", myOptions);
}
}
// count++;
}
// var tourneyId = document.getElementById('middleColumn').getElementsByTagName("select");
// tourneyId.selectedIndex = searchDetails[count];
if (bRun)
{
searchButton.click();
}
}

 Aerial Attack
				Aerial Attack
			

 
		
 Han Solo
				Han Solo
			Han Solo wrote:Saved Searches Script by stocksr
Adds a "Bookmark this search" button to the Game Finder
http://www.conquerclub.com/forum/viewtopic.php?t=18815
other people have the same problem : after loading the last Firefox update 2 days ago, this script has stopped working.
any solution ? this is a very helpful tool.
Thx,
Han Solo
ps : Posted in the Bugs Forums 2 days ago, but got no reaction.
 
 
 Selin
				Selin
			






 
		
 Aerial Attack
				Aerial Attack
			

 
		
 Aerial Attack
				Aerial Attack
			

 
		
 thespider
				thespider
			

 
		thespider wrote:Is this working with the 2.0.0.9 Firefox?

 Aerial Attack
				Aerial Attack
			

 
		
 MarVal
				MarVal
			

















 
		
 Aerial Attack
				Aerial Attack
			

 
		
 Aerial Attack
				Aerial Attack
			

 
		
 MarVal
				MarVal
			

















 
		
 Aerial Attack
				Aerial Attack
			

 
		
 Aerial Attack
				Aerial Attack
			

 
		Aerial Attack wrote:New Version uploaded.
This allows you to save Game Creation settings as well as Game Finding settings. Enjoy.
It also checks to see if you have supplied a password for tournament games (as they require one).
EDIT: Due to feedback, I have crippled the Game Creation settings saver. It only works for Tournament Game Settings for Tournament Organizers. I will let you know if/when I am allowed to re-enable this feature for general use.

 remydog
				remydog
			







 
		
 Aerial Attack
				Aerial Attack
			

 
		
 PsyDev
				PsyDev
			


 
		Users browsing this forum: No registered users