|
|
| Author |
Message |
jaswinder_rana
Joined: 10 Nov 2008
Posts: 13
|
Posted: Fri Nov 14, 2008 4:08 am Post subject: Banner loading in the toolbar itself |
|
|
Hi:
I am using the following code to create some options for user. When user clicks the button, it takes user to a new url.
I have "Enabled" "Use Inbanner" feature of "Banner" after including following HTML in my toolbar.
It works fine in IE, but in FF, it not only loads the url in the window but inthe toolbar itself.
Am I missing a setting?
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<SCRIPT id=clientEventHandlersJS language=javascript>
//Features:
//function High(text) - Highlighting of word
//function Describe() - Pasting pop-up descriptions
//function Analyse() - Frequently analysing of page
//***************************************************
// You need these variables and function to get
// the window object of the loading page
//***********************************************************
// this variable contains pointer to InternetExplorer object
var IExplorer=null;
// This function will be called after a page is loaded into the browser
function DocumentComplete(tool)
{
if(!tool)alert('fail');
IExplorer=tool;
}
//*******************************
// Use this event handler to prevent text selection on your bar,
// This handler allow selection inside TEXTAREAs and input fields.
// You can do without it, if you don't care.
//*******************************
function body_onselectstart(){
var tag=event.srcElement.tagName;
if (tag=='INPUT' || tag=='TEXTAREA') return true;
return false;
}
//*********************************
// These event handlers are to resolve DEL-problems (see Help).
// You don't need them, if your bar doesn't have text fields
// or has "Hidden" fields only.
//**********************************
function KeysON(){
status='FOCUS';
status='';
}
function KeysOFF(){
status='BLUR';
status='';
}
//*************************************************************
function Permit()
// Permits BarHelper functions. Please, read about BarHelper Security.
{
window.status="H-PERMIT";
window.status="";
}
//*************************************************************
function $(id){
return document.getElementById(id);
}
function submitSearch(){
var option = $('option');
var search = $('search');
if((option != null) && (search != null)){
option = option.value;
search = search.value;
if((search != "")){
var url = "";
if(option == "lookup"){
url = "http://indy/Lookup/?q=" + search;
}else if(option == "tellwhen"){
url = "http://indy/cgi-bin/tellwhen.cgi?changelist=" + search + "&output_file_name="+genName() + ".txt&codeline=&file_match=&bundle=&all_integrations=" + search;
}
if(url != ""){
window.location.href = url;
}
}
}
}
function genName(){
var today = new Date();
var str = today.getMonth() + 1;
str += "" + today.getDate();
str += "" + (today.getHours());
str += "" + (today.getMinutes() );
str += "" + (today.getSeconds() );
return str;
}
</SCRIPT>
<STYLE>
body,td {BACKGROUND-COLOR: buttonface; CURSOR: default; FONT-FAMILY: Tahoma,Verdana, sans-serif; FONT-SIZE: 12px; MARGIN: 0px; overflow:hidden;}
.input,select {height:80%;font-size:12px;}
.button,.button-hov {height:100%;font-size:12px;}
.button{border:none;}
.button-hov{border:default;font-weight:bold;}
p {margin-top:0px;margin-bottom:10px;}
.big { FONT-WEIGHT: bold}
td {border-left:thin groove; padding-left:5px; padding-right:5px;}
</STYLE>
</head>
<body language="javascript" oncontextmenu="return false;" onselectstart="return body_onselectstart();" scroll="no" >
<select id="option" name="option">
<option value="lookup">Lookup</option>
<option value="tellwhen">Tellwhen</option>
</select>
<input class="input" type="text" id="search" name="search" value="4">
<button class="button" type="button" onmouseover="this.className='button-hov';" onmouseout="this.className='button';" onclick="submitSearch();">GO</button>
</body>
</html>
|
Thanks in advance |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 22 Aug 2006
Posts: 1055
|
Posted: Fri Nov 14, 2008 6:08 am Post subject: |
|
|
| for Firefox - please, try to change 'Use Inbanner' attribute to another value (0 to 1 or vice versa). |
|
| Back to top |
|
 |
jaswinder_rana
Joined: 10 Nov 2008
Posts: 13
|
Posted: Fri Nov 14, 2008 4:33 pm Post subject: |
|
|
| Admin wrote: | | for Firefox - please, try to change 'Use Inbanner' attribute to another value (0 to 1 or vice versa). |
Thanks. I found following line in basis.xml and reversed the values (tried both 0 and 1) but it's still doing the same thing
<BANNER id="tbs_banner_006073" caption="No caption" url="indy.html" autowidth="0" width="300" height="22" use_inbanner="1"/> |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 22 Aug 2006
Posts: 1055
|
Posted: Mon Nov 17, 2008 9:06 am Post subject: |
|
|
| please, send your toolbar/ .xpi to support@besttoolbars.net , so we could investigate the issue. |
|
| Back to top |
|
 |
jaswinder_rana
Joined: 10 Nov 2008
Posts: 13
|
Posted: Fri Nov 21, 2008 12:52 am Post subject: |
|
|
| Thanks. I decided not to use this option in my toolbar, for now. But, I will use it later when (if) I incorporate login pages in my toolbars. |
|
| Back to top |
|
 |
|