ddg42mahan
asked on
Javascript Ticker
Still having problems with ticker.
There are several pages that uses the below 3 links and they work fine because the pages require a ticker to be added. This one pages does not require a ticker.
I have to be able to come up with a "javascript" that will work on "All" pages without them effecting "each other".
How can this be done? I receive error "object not found" This is my first attempt in writing javascript.
The 3 links that need to ignore the ticker box when a person click on either links are:
Quote | Company Profile | Interactive Chart
script language="JavaScript">
function tickerfunction() {
if (document.tickerSearch.tic ker.value) {
tickervalue = document.tickerSearch.tick er.value;
}
else {
return this.arguments[name].value .replace(" ");
}
return this;
}
/script>
Below is the html file
-------------------------- ---------- ---------- ---------
html>
head>
title>News/title>
meta content="text/html; charset=iso-8859-1" http-equiv="content-type">
meta content="en" http-equiv="content-langua ge">
meta content="no-cache" http-equiv="Cache-Control" >
meta content="0" http-equiv="expires">
meta content="no-cache" http-equiv="Pragma">
meta content="TRUE" name="MSSmartTagsPreventPa rsing">
link href="http://www.thomsonfn.com/styles/thomsonfn.css" rel="stylesheet" type="text/css">
link href="http://partners.thomsonfn.com/USBank/tipsheet/styles/tipsheet.css" rel="stylesheet" type="text/css">
script language="JavaScript">
function tickerfunction() {
if (document.tickerSearch.tic ker.value) {
tickervalue = document.tickerSearch.tick er.value;
}
else {
return this.arguments[name].value .replace(" ");
}
return this;
}
/script>
/head>
body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0">
table align="left" cellspacing="0" cellpadding="0" width="762" border="0">
tr>
td colspan="5">
table border="0" cellpadding="0" cellspacing="0" width="100%">
tr>
/tr>
tr>
td align="right">script language="JavaScript" src="http://partners.thomsonfn.com/USBank/scripts/bank.js">/script>a href="javascript:location. href='http://partners.thomsonfn.com/USBank/stockquote/fcgi-bin/tipsheet_delay_us?select=1&group=us&stq_tmpl_name=stock_quote_delay.html&ticker='+document.tickerSearch.ticker.value;">Q uote/a>
|
a href="javascript:location. href='http://partners.thomsonfn.com/USBank/tipsheet/cgi-bin/get_rtqtip_us?group=us&dquote=1&ticker='+document.tickerSearch.ticker.value;">C ompany Profile/a>
|
a href="javascript:location. href='http://chart.thomsonfn.com/thomson/FinancialImageGenerator?&type=2&typeMod=0&timeFrame=7&timeframeMod=0&range=2&logarithmic=&size=0&imageStyleSheet=ichartimage&dummyVar=1&prtid=Mzg0VlZOQ1lXNXJQJFkEQUALSTO&prdid=IChartImage&symbol='+document.tickerSearch.ticker.value;">I nteractive Chart/a>/td>
/tr>
/table>
/td>
/tr>
tr>
td bgcolor="#ffffff" valign="top">/td>td valign="top">img height="1" width="10" src="http://lil.cda.com:7061/images/commonImg/spacer.gif">/td>td valign="top">
table border="0" cellspacing="0" cellpadding="0" width="492" align="center">
tr>
td>
p class="newsHalfSpace">
/p>
table width="100%" cellspacing="0" cellpadding="0" border="0">
tr>
td colspan="2">span class="newsPageTitle">News : Advanced Search/span>/td>
/tr>
tr>
td width="20%">img height="1" width="102" src="http://lil.cda.com:7061/images/commonImg/spacer.gif">/td>td>a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=todaysNews&type=by_hl&page=0-next" class="newsPrimaryLink">To days News/a>
span class="newsCurrentPage">Ad vanced Search/span>
a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=faq" class="newsPrimaryLink">He lp/a>/td>
/tr>
/table>
p class="newsHalfSpace">
/p>
form action="http://lil.cda.com:7131/newsedge/NewsSrch" onSubmit="return validateAdvSearch(this)" name="newsAdvSearch">
table width="100%" class="newsBorder" cellspacing="0" cellpadding="3" border="0">
tr>
td colspan="3" class="newsColumnLabel">Se lect one of the following search criteria./td>
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#ticker">Ticker/a> /td>td>input onFocus="advanceSearch('ti cker')" value="" name="ticker" accesskey="t" type="Text">
Enter Up to 10 separated by commas./td>td class="newsCapText">a href="#"onClick="globalFin dTicker(); return false" class="newsSymbolLookUp">S ymbol
Lookup/a>/td>
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#industry">Industry/a> /td>td colspan="2">select onChange="advanceSearch('i ndustry')" name="industry">option value="">/option>option value="AERODEF">Aerospace & Defense/option>option value="AGRIBIZ">Agricultur e/option>o ption value="AGRICHEM">Agricultu ral Chemicals/option>option value="DJFAIR">Airlines/op tion>optio n value="AUTOBIZ">Automotive /option>op tion value="BANKBIZ">Banking/op tion>optio n value="CHEMBIZ">Chemicals/ option>opt ion value="CPTROVER">Computer Equipment/option>option value="CONSPROD">Consumer Products/option>option value="ETRONICS">Electroni cs/option> option value="DJFENT">Entertainme nt/option> option value="FOODBIZ">Food and Beverage/option>option value="GASUTILY">Gas Utilities/option>option value="MEDFIN">Healthcare/ option>opt ion value="INSUROVR">Insurance /option>op tion value="MMBSN">Internet/opt ion>option value="MANCOS">Manufacturi ng/option> option value="METALS">Metals/opti on>option value="MINING">Mining/opti on>option value="PHARMBIZ">Pharmaceu tical/opti on>option value="REALBIZ">Real Estate/option>option value="RETAIL">Retail/opti on>option value="SOFOVER1">Software/ option>opt ion value="TETOP10">Telecom/op tion>optio n value="TRANBIZ">Transporta tion/optio n>option value="TRAVBIZ">Travel and Hospitality/option>option value="ENTOPELE">Electric Utilities/option>option value="WATERINT">Water Utilities/option>option value="WHOLDIST">Wholesale Trade and Distribution/option>option value="DCWLSBIZ">Wireless/ option>/se lect>/td>
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#predefined">Predefined Search/a> /td>td colspan="2">select onchange="advanceSearch('p redefined' )" name="pre_topic">option value="">/option>option value="ACCNTING">Accountin g Services/option>option value="ASIACEO">Asia Pacific News/option>option value="CANTOP">Canadian News/option>option value="FEDWATCH">Federal Reserve/option>option value="BIGFINAN">Financial Markets/option>option value="ECOMBIZ">E-Commerce /option>op tion value="EUROCEO">European News/option>option value="EXECMOVE">Executive Personnel Changes/option>option value="INSIDER">Insider Trading/option>option value="IRATES">Interest Rates/option>option value="MERGERS">Mergers/op tion>optio n value="MUTFUNDA">Mutual Funds/option>option value="REGULATE">Regulator y/option>o ption value="UK">U.K. News/option>option value="ECONFORE">U.S. Economic Forecast/option>option value="ECONDICA">U.S. Economic Indicators/option>option value="TREZUREZ">U.S. Treasury Bonds/option>/select>/td>
/tr>
tr>
td colspan="3"> /td>
/tr>
tr>
td colspan="3" class="newsColumnLabel">Se lect additional Search criteria:/td>
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#keyword">Keyword/a> /td>td colspan="2">input name="keyword" type="Text" accesskey="k">/td>
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#date">Date/a> /td>td colspan="2">select onChange="newsDate('dateFi eld')" name="low_dt">option value="">/option>option selected value="30">All/option>opti on value="0">Today/option>opt ion value="1">Yesterday/option >option value="7">Last Week/option>option value="14">Last 2 Weeks/option>option value="21">Last 3 Weeks/option>/select>/td>
/tr>
tr>
td colspan="2" align="center">-OR-/td>
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#daterange">Date Range/a>/td>td colspan="2">input size="10" maxlength="10" onFocus="newsDate('dateRan ge')" name="from" type="Text"> to input size="10" maxlength="10" onFocus="newsDate('dateRan ge')" name="to" type="Text"> (MM/DD/YYYY)/td>
/tr>
tr>
td> /td>td class="newsCapText" colspan="2">span>Archive of 30 days./span>/td>
/tr>
tr>
td> /td>td colspan="2">input value="Search" id="search" name="search" type="submit">/td>
/tr>
/table>
input value="adv_srch" name="type" type="hidden">input name="transform" type="hidden">input value="0-next" name="page" type="hidden">input value="USBank" name="pid" type="hidden">
/form>
script language="JavaScript">
function newsDate(formObj){
var obj = document.newsAdvSearch;
switch (formObj){
case "dateRange":
obj.low_dt.selectedIndex = 0;
break
case "dateField":
obj.to.value = "";
obj.from.value= "";
break
default:
}
}
function advanceSearch(formObj){
var obj = document.newsAdvSearch;
switch (formObj){
case "ticker":
if(obj.industry){obj.indus try.select edIndex=0; }
if(obj.pre_topic){obj.pre_ topic.sele ctedIndex= 0;}
obj.transform.value = "advTickerSearch";
break
case "industry":
obj.ticker.value = "";
if(obj.pre_topic){obj.pre_ topic.sele ctedIndex= 0;}
obj.transform.value = "searchResults";
break
case "predefined":
obj.ticker.value = "";
if(obj.industry){obj.indus try.select edIndex=0; }
obj.transform.value = "searchResults";
break
default:
}
}
function validateAdvSearch(){
var obj = document.newsAdvSearch;
var numTicker = obj.ticker.value
splitString = numTicker.split(",")
var dateRangeFrom = obj.from.value;
var dateRangeTo = obj.to.value;
var splitDateRangeFrom = dateRangeFrom.split("/");
var splitDateRangeTo = dateRangeTo.split("/");
var dateReg = /\D/g;
if(obj.industry && obj.pre_topic){
if((obj.ticker.value == "") && (obj.industry.selectedInde x == 0) && (obj.pre_topic.selectedInd ex == 0)){
alert("Select a search criteria.")
return false;
}
}
if(!obj.industry && !obj.pre_topic){
if((obj.ticker.value == "")){
alert("Enter ticker.")
return false;
}
}
if(!obj.industry){
if((obj.ticker.value == "") && (obj.pre_topic.selectedInd ex == 0)){
alert("Select a search criteria.")
return false;
}
}
if(!obj.pre_topic){
if((obj.ticker.value == "") && (obj.pre_topic.selectedInd ex == 0)){
alert("Select a search criteria.")
return false;
}
}
if(obj.ticker.value != "" && obj.ticker.value.indexOf(' ,') != -1){
obj.transform.value = "searchResults";
}
if(splitString.length > 10){
alert("You can only enter 10 tickers.")
return false;
}
if(obj.from != null && obj.low_dt.selectedIndex == 0){
if(newsValidDate(document. newsAdvSea rch.from.v alue) == false || newsValidDate(document.new sAdvSearch .to.value) == false){
return false;
}
}
return true;
}
function newsValidDate(fld) {
var testMo, testDay, testYr, inpMo, inpDay, inpYr, msg
var inp = fld
// attempt to create date object from input data
var testDate = new Date(inp)
// extract pieces from date object
testMo = testDate.getMonth() + 1
testDay = testDate.getDate()
testYr = testDate.getFullYear()
// extract components of input data
inpMo = parseInt(inp.substring(0, inp.indexOf("/")), 10)
inpDay = parseInt(inp.substring((in p.indexOf( "/") + 1), inp.lastIndexOf("/")), 10)
inpYr = parseInt(inp.substring((in p.lastInde xOf("/") + 1), inp.length), 10)
inpYr
// make sure parseInt() succeeded on input components
if (isNaN(inpMo) || isNaN(inpDay) || isNaN(inpYr)) {
msg = "Please enter a date range within the last 30 days and please follow the listed format"
}
// make sure conversion to date object succeeded
if (isNaN(testMo) || isNaN(testDay)) {
msg = "Please enter a date range within the last 30 days and please follow the listed format"
}
// make sure values match
if (testMo != inpMo || testDay != inpDay) {
msg = "Please enter a date range within the last 30 days and please follow the listed format"
}
if (msg) {
// there's a message, so something failed
alert(msg)
return false
} else {
return true
}
}
advanceSearch('ticker')
/script>script language="JavaScript">
var globalPageLink = "http://lil.cda.com:7131/";
var globalFindTickerURL = "http://lil.cda.com:7121/";
var globalFindTickerPID = "USBank";
function globalFindTicker(){
var uri = escape(globalPageLink + "newsedge/NewsSrchAdvPage? &transform =advPage&x ml=advPage &pid="+glo balFindTic kerPID+"&t icker=" + document.newsAdvSearch.tic ker.value) ;
var findTickerWindow = window.open(globalFindTick erURL + "FindTicker/FindTickerSele ct?transfo rm=findtic ker&pid="+ globalFind TickerPID+ "&user_id= &findtype= PR&ticker= select&uri ="+uri,"fi ndTickerWi ndow" ,'toolbar=0,scrollbars=1,l ocation=0, statusbar= 0,menubar= 0,resizabl e=1,width= 530,height =297' );
}
/script>
p class="newsHalfSpace">
/p>
/td>
/tr>
/table>
/td>td valign="top">img height="1" width="10" src="http://lil.cda.com:7061/images/commonImg/spacer.gif">/td>td bgcolor="#ffffff" valign="top">/td>
/tr>
tr>
td colspan="5">
table border="0" cellpadding="0" cellspacing="0" width="100%">
tr>
/tr>
tr>
td align="right">script language="JavaScript" src="http://partners.thomsonfn.com/USBank/scripts/bank.js">/script>a href="javascript:location. href='http://partners.thomsonfn.com/USBank/stockquote/fcgi-bin/tipsheet_delay_us?select=1&group=us&stq_tmpl_name=stock_quote_delay.html&ticker='+document.tickerSearch.ticker.value;">Q uote/a>
|
a href="javascript:location. href='http://partners.thomsonfn.com/USBank/tipsheet/cgi-bin/get_rtqtip_us?group=us&dquote=1&ticker='+document.tickerSearch.ticker.value;">C ompany Profile/a>
|
a href="javascript:location. href='http://chart.thomsonfn.com/thomson/FinancialImageGenerator?&type=2&typeMod=0&timeFrame=7&timeframeMod=0&range=2&logarithmic=&size=0&imageStyleSheet=ichartimage&dummyVar=1&prtid=Mzg0VlZOQ1lXNXJQJFkEQUALSTO&prdid=IChartImage&symbol='+document.tickerSearch.ticker.value;">I nteractive Chart/a>/td>
/tr>
/table>
/td>
/tr>
/table>
/body>
/html>
There are several pages that uses the below 3 links and they work fine because the pages require a ticker to be added. This one pages does not require a ticker.
I have to be able to come up with a "javascript" that will work on "All" pages without them effecting "each other".
How can this be done? I receive error "object not found" This is my first attempt in writing javascript.
The 3 links that need to ignore the ticker box when a person click on either links are:
Quote | Company Profile | Interactive Chart
script language="JavaScript">
function tickerfunction() {
if (document.tickerSearch.tic
tickervalue = document.tickerSearch.tick
}
else {
return this.arguments[name].value
}
return this;
}
/script>
Below is the html file
--------------------------
html>
head>
title>News/title>
meta content="text/html; charset=iso-8859-1" http-equiv="content-type">
meta content="en" http-equiv="content-langua
meta content="no-cache" http-equiv="Cache-Control"
meta content="0" http-equiv="expires">
meta content="no-cache" http-equiv="Pragma">
meta content="TRUE" name="MSSmartTagsPreventPa
link href="http://www.thomsonfn.com/styles/thomsonfn.css" rel="stylesheet" type="text/css">
link href="http://partners.thomsonfn.com/USBank/tipsheet/styles/tipsheet.css" rel="stylesheet" type="text/css">
script language="JavaScript">
function tickerfunction() {
if (document.tickerSearch.tic
tickervalue = document.tickerSearch.tick
}
else {
return this.arguments[name].value
}
return this;
}
/script>
/head>
body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0">
table align="left" cellspacing="0" cellpadding="0" width="762" border="0">
tr>
td colspan="5">
table border="0" cellpadding="0" cellspacing="0" width="100%">
tr>
/tr>
tr>
td align="right">script language="JavaScript" src="http://partners.thomsonfn.com/USBank/scripts/bank.js">/script>a href="javascript:location.
|
a href="javascript:location.
|
a href="javascript:location.
/tr>
/table>
/td>
/tr>
tr>
td bgcolor="#ffffff" valign="top">/td>td valign="top">img height="1" width="10" src="http://lil.cda.com:7061/images/commonImg/spacer.gif">/td>td valign="top">
table border="0" cellspacing="0" cellpadding="0" width="492" align="center">
tr>
td>
p class="newsHalfSpace">
/p>
table width="100%" cellspacing="0" cellpadding="0" border="0">
tr>
td colspan="2">span class="newsPageTitle">News
/tr>
tr>
td width="20%">img height="1" width="102" src="http://lil.cda.com:7061/images/commonImg/spacer.gif">/td>td>a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=todaysNews&type=by_hl&page=0-next" class="newsPrimaryLink">To
span class="newsCurrentPage">Ad
a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=faq" class="newsPrimaryLink">He
/tr>
/table>
p class="newsHalfSpace">
/p>
form action="http://lil.cda.com:7131/newsedge/NewsSrch" onSubmit="return validateAdvSearch(this)" name="newsAdvSearch">
table width="100%" class="newsBorder" cellspacing="0" cellpadding="3" border="0">
tr>
td colspan="3" class="newsColumnLabel">Se
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#ticker">Ticker/a> /td>td>input onFocus="advanceSearch('ti
Enter Up to 10 separated by commas./td>td class="newsCapText">a href="#"onClick="globalFin
Lookup/a>/td>
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#industry">Industry/a> /td>td colspan="2">select onChange="advanceSearch('i
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#predefined">Predefined Search/a> /td>td colspan="2">select onchange="advanceSearch('p
/tr>
tr>
td colspan="3"> /td>
/tr>
tr>
td colspan="3" class="newsColumnLabel">Se
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#keyword">Keyword/a> /td>td colspan="2">input name="keyword" type="Text" accesskey="k">/td>
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#date">Date/a> /td>td colspan="2">select onChange="newsDate('dateFi
/tr>
tr>
td colspan="2" align="center">-OR-/td>
/tr>
tr>
td align="right">a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=glossary#daterange">Date Range/a>/td>td colspan="2">input size="10" maxlength="10" onFocus="newsDate('dateRan
/tr>
tr>
td> /td>td class="newsCapText" colspan="2">span>Archive of 30 days./span>/td>
/tr>
tr>
td> /td>td colspan="2">input value="Search" id="search" name="search" type="submit">/td>
/tr>
/table>
input value="adv_srch" name="type" type="hidden">input name="transform" type="hidden">input value="0-next" name="page" type="hidden">input value="USBank" name="pid" type="hidden">
/form>
script language="JavaScript">
function newsDate(formObj){
var obj = document.newsAdvSearch;
switch (formObj){
case "dateRange":
obj.low_dt.selectedIndex = 0;
break
case "dateField":
obj.to.value = "";
obj.from.value= "";
break
default:
}
}
function advanceSearch(formObj){
var obj = document.newsAdvSearch;
switch (formObj){
case "ticker":
if(obj.industry){obj.indus
if(obj.pre_topic){obj.pre_
obj.transform.value = "advTickerSearch";
break
case "industry":
obj.ticker.value = "";
if(obj.pre_topic){obj.pre_
obj.transform.value = "searchResults";
break
case "predefined":
obj.ticker.value = "";
if(obj.industry){obj.indus
obj.transform.value = "searchResults";
break
default:
}
}
function validateAdvSearch(){
var obj = document.newsAdvSearch;
var numTicker = obj.ticker.value
splitString = numTicker.split(",")
var dateRangeFrom = obj.from.value;
var dateRangeTo = obj.to.value;
var splitDateRangeFrom = dateRangeFrom.split("/");
var splitDateRangeTo = dateRangeTo.split("/");
var dateReg = /\D/g;
if(obj.industry && obj.pre_topic){
if((obj.ticker.value == "") && (obj.industry.selectedInde
alert("Select a search criteria.")
return false;
}
}
if(!obj.industry && !obj.pre_topic){
if((obj.ticker.value == "")){
alert("Enter ticker.")
return false;
}
}
if(!obj.industry){
if((obj.ticker.value == "") && (obj.pre_topic.selectedInd
alert("Select a search criteria.")
return false;
}
}
if(!obj.pre_topic){
if((obj.ticker.value == "") && (obj.pre_topic.selectedInd
alert("Select a search criteria.")
return false;
}
}
if(obj.ticker.value != "" && obj.ticker.value.indexOf('
obj.transform.value = "searchResults";
}
if(splitString.length > 10){
alert("You can only enter 10 tickers.")
return false;
}
if(obj.from != null && obj.low_dt.selectedIndex == 0){
if(newsValidDate(document.
return false;
}
}
return true;
}
function newsValidDate(fld) {
var testMo, testDay, testYr, inpMo, inpDay, inpYr, msg
var inp = fld
// attempt to create date object from input data
var testDate = new Date(inp)
// extract pieces from date object
testMo = testDate.getMonth() + 1
testDay = testDate.getDate()
testYr = testDate.getFullYear()
// extract components of input data
inpMo = parseInt(inp.substring(0, inp.indexOf("/")), 10)
inpDay = parseInt(inp.substring((in
inpYr = parseInt(inp.substring((in
inpYr
// make sure parseInt() succeeded on input components
if (isNaN(inpMo) || isNaN(inpDay) || isNaN(inpYr)) {
msg = "Please enter a date range within the last 30 days and please follow the listed format"
}
// make sure conversion to date object succeeded
if (isNaN(testMo) || isNaN(testDay)) {
msg = "Please enter a date range within the last 30 days and please follow the listed format"
}
// make sure values match
if (testMo != inpMo || testDay != inpDay) {
msg = "Please enter a date range within the last 30 days and please follow the listed format"
}
if (msg) {
// there's a message, so something failed
alert(msg)
return false
} else {
return true
}
}
advanceSearch('ticker')
/script>script language="JavaScript">
var globalPageLink = "http://lil.cda.com:7131/";
var globalFindTickerURL = "http://lil.cda.com:7121/";
var globalFindTickerPID = "USBank";
function globalFindTicker(){
var uri = escape(globalPageLink + "newsedge/NewsSrchAdvPage?
var findTickerWindow = window.open(globalFindTick
}
/script>
p class="newsHalfSpace">
/p>
/td>
/tr>
/table>
/td>td valign="top">img height="1" width="10" src="http://lil.cda.com:7061/images/commonImg/spacer.gif">/td>td bgcolor="#ffffff" valign="top">/td>
/tr>
tr>
td colspan="5">
table border="0" cellpadding="0" cellspacing="0" width="100%">
tr>
/tr>
tr>
td align="right">script language="JavaScript" src="http://partners.thomsonfn.com/USBank/scripts/bank.js">/script>a href="javascript:location.
|
a href="javascript:location.
|
a href="javascript:location.
/tr>
/table>
/td>
/tr>
/table>
/body>
/html>
ASKER
That works but it effects the other pages that uses those same 3 links for ticker search. Anything else you can suggest I try to make this work all around?
Thanks for responding so quickly much appreciated.
Thanks for responding so quickly much appreciated.
ok... let's try this...
what did you mean with 'tickerSearch'?
'newsAdvSearch' is the name (id) of the searching form... so, what exactly do you wanna do with your links? (Quote | Company Profile | Interactive Chart)
what did you mean with 'tickerSearch'?
'newsAdvSearch' is the name (id) of the searching form... so, what exactly do you wanna do with your links? (Quote | Company Profile | Interactive Chart)
ASKER
I want the links to ignore the tickerSearch. The tickerSearch is for the pages that uses these links and require a ticker to be added. This pages also uses the links but do not require a ticker to be added.
Let me know if I provided with enough information.
thanks
Let me know if I provided with enough information.
thanks
ASKER
Lets put it this way...I need a javascript the will allow these 3 links to work when using a ticker box and not to work on a page that does not have a ticker box. Basically,
I just want it to ignore and proceed on when clicking on the links.
I just want it to ignore and proceed on when clicking on the links.
Well... just change your href tags:
<a href="javascript:location. href='http://partners.thomsonfn.com/USBank/stockquote/fcgi-bin/tipsheet_delay_us?select=1&group=us&stq_tmpl_name=stock_quote_delay.html">Qu ote</a>
and so on... =0)
<a href="javascript:location.
and so on... =0)
ASKER
Its not that simple. That just give's me an error "Unterminated string constant" See there are several pages that uses these 3 links and they work fine because the pages require a ticker to be added. This pages does not. I have to be able to come up with a "javascript" that will work on "All" pages without effecting "each other".
ASKER
I need help writing a script for this one as soon as possible. Thanks
Heya ddg,
Well, based on what you said originally in your comment, your javascript works fine on most pages. Since I don't have access to most pages, I dunno much about the code that you're dealing with. However, I think I can resolve your Object Not Found issue on the page that does *not* have the ticker. I hope this helps.
<script language="JavaScript">
function tickerfunction() {
if (isObject(document.tickerS earch.tick er)) {
if (document.tickerSearch.tic ker.value) {
tickervalue = document.tickerSearch.tick er.value;
} else {
return this.arguments[name].value .replace(" ");
}
} else {
return this.arguments[name].value .replace(" ");
}
return this;
}
</script>
Well, based on what you said originally in your comment, your javascript works fine on most pages. Since I don't have access to most pages, I dunno much about the code that you're dealing with. However, I think I can resolve your Object Not Found issue on the page that does *not* have the ticker. I hope this helps.
<script language="JavaScript">
function tickerfunction() {
if (isObject(document.tickerS
if (document.tickerSearch.tic
tickervalue = document.tickerSearch.tick
} else {
return this.arguments[name].value
}
} else {
return this.arguments[name].value
}
return this;
}
</script>
ASKER
hmm...I still get document not found when I add the below script to the header. Is there another step or something I need to add? This is my first attempt to writing a script and I'm lost big time. I not sure how to write one to make it work. If anyone could write for me ..Please help quick.
<script language="JavaScript">
function tickerfunction() {
if (isObject(document.tickerS earch.tick er)) {
if (document.tickerSearch.tic ker.value) {
tickervalue = document.tickerSearch.tick er.value;
} else {
return this.arguments[name].value .replace(" ");
}
} else {
return this.arguments[name].value .replace(" ");
}
return this;
}
</script>
<script language="JavaScript">
function tickerfunction() {
if (isObject(document.tickerS
if (document.tickerSearch.tic
tickervalue = document.tickerSearch.tick
} else {
return this.arguments[name].value
}
} else {
return this.arguments[name].value
}
return this;
}
</script>
I've seen where the error is... just try this:
<a href="javascript:location. href='http://partners.thomsonfn.com/USBank/stockquote/fcgi-bin/tipsheet_delay_us?select=1&group=us&stq_tmpl_name=stock_quote_delay.html';">Q uote</a>
There was an ' missed... now test it!
=0)
<a href="javascript:location.
There was an ' missed... now test it!
=0)
ASKER
That will work, however it will have an effect on the other pages that uses the ticker box.
Let me explain it this way... This particular portion of the web site sits inside a tool.
At this time, the tool will not allow me to create a separate style for this page. So I have to be able to come up with a Javascript that will work no matter if it uses a ticker box or not. Any other suggestions??
Let me explain it this way... This particular portion of the web site sits inside a tool.
At this time, the tool will not allow me to create a separate style for this page. So I have to be able to come up with a Javascript that will work no matter if it uses a ticker box or not. Any other suggestions??
ASKER
Here is the other page with the same 3 links. This page works fine because it has the ticker box. The other page does not have the ticker box and it uses the same 3 links.
Can anyone help me on this one? Thanks :)
<html><head><title>News</t itle><meta content="text/html; charset=iso-8859-1" http-equiv="content-type"> <meta content="en" http-equiv="content-langua ge"><meta content="no-cache" http-equiv="Cache-Control" ><meta content="0" http-equiv="expires"><meta content="no-cache" http-equiv="Pragma"><meta content="TRUE" name="MSSmartTagsPreventPa rsing"><li nk href="http://www.thomsonfn.com/styles/thomsonfn.css" rel="stylesheet" type="text/css"><link href="http://partners.thomsonfn.com/USBank/tipsheet/styles/tipsheet.css" rel="stylesheet" type="text/css"><style type="text/css">
BODY {
font-family:arial, helvetica, sans-serif;
background-color:#ffffff;
color:#000000;
font-size:12px;
}
td {
font-family:arial, helvetica, sans-serif;
color:#000000;
font-size:12px;
}
.newsHeadLine{
font-family:arial, helvetica, sans-serif;
font-weight:bold;
}
.newsPageTitle{
font-family:arial, helvetica, sans-serif;
font-size:15px;
color:#000066;
font-weight:bold;
}
p.newsHalfSpace{
margin-top:10px;
}
a:Link{
font-family:arial, helvetica, sans-serif;
font-size:12px;
text-decoration:underline;
color:#003399;
}
a:Visited{
font-family:arial, helvetica, sans-serif;
font-size:12px;
text-decoration:underline;
color:#003399;
}
.newsPrimaryLink{
font-family:arial, helvetica, sans-serif;
font-size:12px;
text-decoration:underline;
color:#003399;
}
.newsColumnLabel{
font-family:arial, helvetica, sans-serif;
background-color:#000066;
color:#FFFFFF;
}
.newsTableTitle{
font-family:arial, helvetica, sans-serif;
background-color:#0066CC;
color:#ffffff;
font-weight:bold;
}
.newsBorder{
border:1px solid #000066;
}
.newsCapText{
font-family:arial, helvetica, sans-serif;
font-size:10px;
}
.newsFormButton{
background-color:#0F5DB5;
color:#ffffff;
border: 1px solid black;
}
.r1{
background-color:#ffffff;
}
.r0{
background-color:#EFF3F7;
}
.newsTerms{
font-family:arial, helvetica, sans-serif;
font-size:10px;
}
a.newsSymbolLookUp:Link{
font-family:arial, helvetica, sans-serif;
font-size:10px;
}
a.newsSymbolLookUp:Visited {
font-family:arial, helvetica, sans-serif;
font-size:10px;
}
</style></head><body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"><table align="left" cellspacing="0" cellpadding="0" width="762" border="0"><tr><td colspan="5"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr></tr><tr> <td align="right"><script language="JavaScript" src="http://partners.thomsonfn.com/USBank/scripts/bank.js"></script><a href="javascript:location. href='http://partners.thomsonfn.com/USBank/stockquote/fcgi-bin/tipsheet_delay_us?select=1&group=us&stq_tmpl_name=stock_quote_delay.html&ticker='+document.tickerSearch.ticker.value;">Q uote</a>
|
<a href="javascript:location. href='http://partners.thomsonfn.com/USBank/tipsheet/cgi-bin/get_rtqtip_us?group=us&dquote=1&ticker='+document.tickerSearch.ticker.value;">C ompany Profile</a>
|
<a href="javascript:location. href='http://chart.thomsonfn.com/thomson/FinancialImageGenerator?&type=2&typeMod=0&timeFrame=7&timeframeMod=0&range=2&logarithmic=&size=0&imageStyleSheet=ichartimage&dummyVar=1&prtid=Mzg0VlZOQ1lXNXJQJFkEQUALSTO&prdid=IChartImage&symbol='+document.tickerSearch.ticker.value;">I nteractive Chart</a></td></tr></table ></td></tr ><tr><td bgcolor="#ffffff" valign="top"></td><td valign="top"><img height="1" width="10" src="http://lil.cda.com:7061/images/commonImg/spacer.gif"></td><td valign="top"><table border="0" cellspacing="0" cellpadding="0" width="492" align="center"><tr><td><p class="newsHalfSpace"></p> <form action="http://lil.cda.com:7131/newsedge/NewsSrch" name="tickerSearch"><input value="USBank" name="pid" type="Hidden"><input value="tickerSearch" name="transform" type="Hidden"><input value="by_ticker" name="type" type="Hidden"><input value="0-next" name="page" type="Hidden"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td colspan="2"><span class="newsPageTitle">Sear ch Results</span></td></tr><t r><td width="20%"><input value="ibm" size="8" name="ticker" type="Text"> <input value="Go" type="Submit">
</td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=todaysNews&type=by_hl&page=0-next" class="newsPrimaryLink">To days News</a>
<a href="http://lil.cda.com:7131/newsedge/NewsSrchAdvPage?pid=USBank&transform=advPage&xml=advPage">Advanced Search</a>
<a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=faq">Help</a>
</td></tr><tr><td colspan="2"><span class="newsCapText">Enter Ticker</span><br><a href="javascript:globalFin dTicker()" class="newsSymbolLookUp">S ymbol Lookup</a></td></tr></tabl e></form>< script language="JavaScript">
var globalPageLink = "http://lil.cda.com:7131/";
var globalFindTickerURL = "http://lil.cda.com:7121/";
var globalFindTickerPID = "USBank";
function globalFindTicker(){
var uri = escape(globalPageLink + "newsedge/NewsSrch?&transf orm=ticker Search&typ e=by_ticke r&page=0-n ext&pid="+ globalFind TickerPID+ "&ticker=" );
var findTickerWindow = window.open(globalFindTick erURL + "FindTicker/FindTickerSele ct?transfo rm=findtic ker&pid="+ globalFind TickerPID+ "&user_id= &findtype= PR&ticker= select&uri ="+uri,"fi ndTickerWi ndow" ,'toolbar=0,scrollbars=1,l ocation=0, statusbar= 0,menubar= 0,resizabl e=1,width= 530,height =297' );
}
</script><p class="newsHalfSpace"></p> <table width="100%" cellspacing="0" cellpadding="4" border="0" class="newsBorder"><tr><td colspan="4" class="newsTableTitle">Res ults for ibm</td></tr><tr><td align="center" class="newsColumnLabel">Da te</td><td align="center" class="newsColumnLabel">Ti me</td><td align="center" class="newsColumnLabel">He adline</td ><td class="newsColumnLabel">Se rvice</td> </tr><tr class="r1"><td><em>11.18.0 2</em></td ><td><em>0 5:55PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=200211182800.1_01ce002840f84d91&type=story">IBM Unveils New Version Of WebSphere Portal Software With Additional Features That Help Control Costs</a></td><td>Internet Wire</td></tr><tr class="r0"><td><em>11.18.0 2</em></td ><td><em>0 4:20PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021118365.2_231a00075c86c647&type=story">IBM completes purchase of Axis Investment Fund Company, Tarian Software</a></td><td>Canad a NewsWire English</td></tr><tr class="r1"><td><em>11.18.0 2</em></td ><td><em>0 2:35PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021118990.1_2c95000bc5dc702d&type=story">ABOVE THE NOISE: Getting a grip on the hype cycle</a></td><td>InfoWorl d Electronic News</td></tr><tr class="r0"><td><em>11.18.0 2</em></td ><td><em>0 2:35PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021118990.1_08b80046d2352313&type=story">Playing IBM's game</a></td><td>InfoWorld Electronic News</td></tr><tr class="r1"><td><em>11.18.0 2</em></td ><td><em>0 2:34PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021118990.1_1ea600308db54ac2&type=story">Palm reaches for enterprise</a></td><td>Inf oWorld Electronic News</td></tr><tr class="r0"><td><em>11.18.0 2</em></td ><td><em>0 2:34PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021118990.1_38cd0012f073b101&type=story">IBM consolidates storage</a></td><td>InfoWo rld Electronic News</td></tr><tr class="r1"><td><em>11.18.0 2</em></td ><td><em>1 2:10PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=200211182800.1_e5ca00644b73fe55&type=story">IBM Introduces Ultra-Powerful Workstations With Server-Inspired Reliability</a></td><td>In ternet Wire</td></tr><tr class="r0"><td><em>11.18.0 2</em></td ><td><em>0 9:10AM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=200211182800.1_abdb021b5da59f18&type=story">Wi-Fi Certified Products Rocket To Over 500 In Four Months</a></td><td>Interne t Wire</td></tr><tr class="r1"><td><em>11.17.0 2</em></td ><td><em>1 1:26AM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=200211171180.3_9096000e2eead4f5&type=story">Milwaukee Journal Sentinel Avrum D. Lank Column</a></td><td>Knight- Ridder / Tribune Business News</td></tr><tr class="r0"><td><em>11.15.0 2</em></td ><td><em>0 5:18PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021115365.2_51af00110fe141df&type=story">IBM completes acquisition of Tarian Software</a></td><td>Canad a NewsWire English</td></tr><tr class="r1"><td><em>11.15.0 2</em></td ><td><em>0 3:18PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021115290.2_2b5a0011bb2b217e&type=story">IBM Completes Acquisition of Tarian Software; Integrates Tarian Skills and Technology Into IBM Data Management Portfolio</a></td><td>Busi ness Wire</td></tr><tr class="r0"><td><em>11.15.0 2</em></td ><td><em>0 6:35AM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021115616.1_d756000108a8db64&type=story">BC-Sharp-IBM 11-15 0150 Sharp, IBM tie up in mobile computer system</a></td><td>FDCH CEO Wire - Kyodo</td></tr><tr class="r1"><td><em>11.15.0 2</em></td ><td><em>0 6:10AM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=200211152800.1_6257000b0ee58f4f&type=story">New Study Finds IBM Number One In Supercomputing</a></td><td >Internet Wire</td></tr><tr class="r0"><td><em>11.15.0 2</em></td ><td><em>0 6:02AM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021115290.2_e1ee0028ff3bb00d&type=story">New IBM Supercomputer Packs 128 POWER4 Processors in a Single Frame; Smaller, Denser, Faster eServer to Transform Supercomputing Industry</a></td><td>Busin ess Wire</td></tr><tr class="r1"><td><em>11.15.0 2</em></td ><td><em>1 2:01AM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021115290.2_dcce003a82bc0add&type=story">IBM and Sharp Team on Enterprise-Class, Linux-Based Mobile Solution; Openness and Flexibility Key to Creating An Extensive Embedded Linux Deployment for the Enterprise Market</a></td><td>Busines s Wire</td></tr><tr class="r0"><td><em>11.14.0 2</em></td ><td><em>0 4:25PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021114290.2_884f00f10f95a62f&type=story">GoAmerica Announces Third Quarter 2002 Results; Company Reports Fifth Consecutive Quarter of Improved Gross Margins and EBITDA</a></td><td>Busines s Wire</td></tr><tr class="r1"><td><em>11.14.0 2</em></td ><td><em>0 2:40PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=200211142800.1_73310016fadfc39d&type=story">IBM Lotus Sametime Gains Further Ground In Enterprise Instant Messaging Market</a></td><td>Interne t Wire</td></tr><tr class="r0"><td><em>11.14.0 2</em></td ><td><em>0 1:35PM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=200211141680.2_6ded00177d9a4110&type=story">Nexsan to Showcase Full Line of Innovative Storage Solutions at Comdex 2002</a></td><td>PR Newswire Leased Line</td></tr><tr class="r1"><td><em>11.14.0 2</em></td ><td><em>0 8:05AM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021114290.2_fc2b00197c6cd48b&type=story">IBM Selects Alacritech's High-performance Server Accelerators for IBM TotalStorage NAS Solutions</a></td><td>Busi ness Wire</td></tr><tr class="r0"><td><em>11.14.0 2</em></td ><td><em>0 7:31AM EST</em></td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=story&storyid=20021114290.2_59930014661f97ff&type=story">MRO Software to Offer Hosted MAXIMO Solution With IBM; Strategic Asset Management Solution Now Available as Hosted Alternative</a></td><td>Bu siness Wire</td></tr></table><tab le width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td align="right">
1 - 20
of 142
<strong>1</strong> &n bsp; <a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&ticker=ibm&transform=tickerSearch&type=by_ticker&page=20-next " class="newsPrimaryLink">2< /a> <a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&ticker=ibm&transform=tickerSearch&type=by_ticker&page=40-next " class="newsPrimaryLink">3< /a> <a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&ticker=ibm&transform=tickerSearch&type=by_ticker&page=60-next " class="newsPrimaryLink">4< /a> <a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&ticker=ibm&transform=tickerSearch&type=by_ticker&page=80-next " class="newsPrimaryLink">5< /a> <a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&ticker=ibm&transform=tickerSearch&type=by_ticker&page=100-next " class="newsPrimaryLink">6< /a> <a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&ticker=ibm&transform=tickerSearch&type=by_ticker&page=120-next " class="newsPrimaryLink">7< /a> <a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&ticker=ibm&transform=tickerSearch&type=by_ticker&page=140-next " class="newsPrimaryLink">8< /a> </td></tr></ta ble><p class="newsHalfSpace"></p> <span class="newsTerms">This is a news service of NewsEdge Corporation ©2002 This content is for your personal use only, subject to Terms and Conditions. No redistribution allowed.</span></td></tr>< /table></t d><td valign="top"><img height="1" width="10" src="http://lil.cda.com:7061/images/commonImg/spacer.gif"></td><td bgcolor="#ffffff" valign="top"></td></tr><tr ><td colspan="5"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr></tr><tr> <td align="right"><script language="JavaScript" src="http://partners.thomsonfn.com/USBank/scripts/bank.js"></script><a href="javascript:location. href='http://partners.thomsonfn.com/USBank/stockquote/fcgi-bin/tipsheet_delay_us?select=1&group=us&stq_tmpl_name=stock_quote_delay.html&ticker='+document.tickerSearch.ticker.value;">Q uote</a>
|
<a href="javascript:location. href='http://partners.thomsonfn.com/USBank/tipsheet/cgi-bin/get_rtqtip_us?group=us&dquote=1&ticker='+document.tickerSearch.ticker.value;">C ompany Profile</a>
|
<a href="javascript:location. href='http://chart.thomsonfn.com/thomson/FinancialImageGenerator?&type=2&typeMod=0&timeFrame=7&timeframeMod=0&range=2&logarithmic=&size=0&imageStyleSheet=ichartimage&dummyVar=1&prtid=Mzg0VlZOQ1lXNXJQJFkEQUALSTO&prdid=IChartImage&symbol='+document.tickerSearch.ticker.value;">I nteractive Chart</a></td></tr></table ><p align="center"><font face="arial" size="1">Data Provided by Thomson<br>
© Copyright <script src="http://partners.thomsonfn.com/cgi-bin/get_date?date=.y4+Thomson+Financial"></script></font></p ></td></tr ></table>< /body></ht ml>
Can anyone help me on this one? Thanks :)
<html><head><title>News</t
BODY {
font-family:arial, helvetica, sans-serif;
background-color:#ffffff;
color:#000000;
font-size:12px;
}
td {
font-family:arial, helvetica, sans-serif;
color:#000000;
font-size:12px;
}
.newsHeadLine{
font-family:arial, helvetica, sans-serif;
font-weight:bold;
}
.newsPageTitle{
font-family:arial, helvetica, sans-serif;
font-size:15px;
color:#000066;
font-weight:bold;
}
p.newsHalfSpace{
margin-top:10px;
}
a:Link{
font-family:arial, helvetica, sans-serif;
font-size:12px;
text-decoration:underline;
color:#003399;
}
a:Visited{
font-family:arial, helvetica, sans-serif;
font-size:12px;
text-decoration:underline;
color:#003399;
}
.newsPrimaryLink{
font-family:arial, helvetica, sans-serif;
font-size:12px;
text-decoration:underline;
color:#003399;
}
.newsColumnLabel{
font-family:arial, helvetica, sans-serif;
background-color:#000066;
color:#FFFFFF;
}
.newsTableTitle{
font-family:arial, helvetica, sans-serif;
background-color:#0066CC;
color:#ffffff;
font-weight:bold;
}
.newsBorder{
border:1px solid #000066;
}
.newsCapText{
font-family:arial, helvetica, sans-serif;
font-size:10px;
}
.newsFormButton{
background-color:#0F5DB5;
color:#ffffff;
border: 1px solid black;
}
.r1{
background-color:#ffffff;
}
.r0{
background-color:#EFF3F7;
}
.newsTerms{
font-family:arial, helvetica, sans-serif;
font-size:10px;
}
a.newsSymbolLookUp:Link{
font-family:arial, helvetica, sans-serif;
font-size:10px;
}
a.newsSymbolLookUp:Visited
font-family:arial, helvetica, sans-serif;
font-size:10px;
}
</style></head><body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"><table align="left" cellspacing="0" cellpadding="0" width="762" border="0"><tr><td colspan="5"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr></tr><tr>
|
<a href="javascript:location.
|
<a href="javascript:location.
</td><td><a href="http://lil.cda.com:7131/newsedge/NewsSrch?pid=USBank&transform=todaysNews&type=by_hl&page=0-next" class="newsPrimaryLink">To
<a href="http://lil.cda.com:7131/newsedge/NewsSrchAdvPage?pid=USBank&transform=advPage&xml=advPage">Advanced Search</a>
<a href="http://lil.cda.com:7131/StaticPage/StaticPage?pid=USBank&product=news&staticfile=faq">Help</a>
</td></tr><tr><td colspan="2"><span class="newsCapText">Enter Ticker</span><br><a href="javascript:globalFin
var globalPageLink = "http://lil.cda.com:7131/";
var globalFindTickerURL = "http://lil.cda.com:7121/";
var globalFindTickerPID = "USBank";
function globalFindTicker(){
var uri = escape(globalPageLink + "newsedge/NewsSrch?&transf
var findTickerWindow = window.open(globalFindTick
}
</script><p class="newsHalfSpace"></p>
1 - 20
of 142
<strong>1</strong> &n
|
<a href="javascript:location.
|
<a href="javascript:location.
© Copyright <script src="http://partners.thomsonfn.com/cgi-bin/get_date?date=.y4+Thomson+Financial"></script></font></p
ASKER
Here the JS file that both pages are pointing to.
function ArgumentURL() {
this.getArgument = _getArg;
this.toString = _toString;
this.getArgumentsArray = _getArgArray
this.arguments = new Array(); //i wish there were a way to protect this array. i don't think there is.
// Initiation
var str = window.location.search.rep lace(/%20/ g, " ");
var index = str.indexOf("?");
var sInfo;
var infoArray = new Array();
var tmp;
if (index != -1) {
sInfo = str.substring(index+1,str. length);
infoArray = sInfo.split('&');
}
for (var i=0; i<infoArray.length; i++) {
tmp = infoArray[i].split('=');
if (tmp[0] != "") {
var t = tmp[0];
this.arguments[tmp[0]] = new Object();
this.arguments[tmp[0]].val ue = tmp[1];
this.arguments[tmp[0]].nam e = tmp[0];
}
}
function _toString() {
var s = "";
var once = true;
for (i in this.arguments) {
if (once) {
s += "?";
once = false;
}
s += this.arguments[i].name;
s += '=';
s += this.arguments[i].value;
s += '&';
}
return s.replace(/ /g, "%20");
}
function _getArgArray(){
return this.arguments
}
function _getArg(name) {
if (typeof(this.arguments[nam e]) != "object")
return null;
else
return this.arguments[name].value .replace(/ \+/g," ");
}
return this;
}
var args = new ArgumentURL()
var ticker = args.getArgument('ticker')
document.write('<a href="http://partners.thomsonfn.com/USBank/stockquote/fcgi-bin/tipsheet_delay_us?select=1&group=us&stq_tmpl_name=stock_quote_delay.html&ticker='+ticker+'"></a>')
var ticker = args.getArgument('ticker')
document.write('<a href="http://partners.thomsonfn.com/USBank/tipsheet/cgi-bin/get_rtqtip_us?group=us&dquote=1&ticker='+ticker+'"></a>')
var ticker = args.getArgument('ticker')
document.write('<a href="http://chart.thomsonfn.com/thomson/FinancialImageGenerator?&type=2&typeMod=0&timeFrame=7&timeframeMod=0&range=2&logarithmic=&size=0&imageStyleSheet=ichartimage&dummyVar=1&prtid=Mzg0VlZOQ1lXNXJQJFkEQUALSTO&prdid=IChartImage&symbol='+ticker+'"></a>')
function ArgumentURL() {
this.getArgument = _getArg;
this.toString = _toString;
this.getArgumentsArray = _getArgArray
this.arguments = new Array(); //i wish there were a way to protect this array. i don't think there is.
// Initiation
var str = window.location.search.rep
var index = str.indexOf("?");
var sInfo;
var infoArray = new Array();
var tmp;
if (index != -1) {
sInfo = str.substring(index+1,str.
infoArray = sInfo.split('&');
}
for (var i=0; i<infoArray.length; i++) {
tmp = infoArray[i].split('=');
if (tmp[0] != "") {
var t = tmp[0];
this.arguments[tmp[0]] = new Object();
this.arguments[tmp[0]].val
this.arguments[tmp[0]].nam
}
}
function _toString() {
var s = "";
var once = true;
for (i in this.arguments) {
if (once) {
s += "?";
once = false;
}
s += this.arguments[i].name;
s += '=';
s += this.arguments[i].value;
s += '&';
}
return s.replace(/ /g, "%20");
}
function _getArgArray(){
return this.arguments
}
function _getArg(name) {
if (typeof(this.arguments[nam
return null;
else
return this.arguments[name].value
}
return this;
}
var args = new ArgumentURL()
var ticker = args.getArgument('ticker')
document.write('<a href="http://partners.thomsonfn.com/USBank/stockquote/fcgi-bin/tipsheet_delay_us?select=1&group=us&stq_tmpl_name=stock_quote_delay.html&ticker='+ticker+'"></a>')
var ticker = args.getArgument('ticker')
document.write('<a href="http://partners.thomsonfn.com/USBank/tipsheet/cgi-bin/get_rtqtip_us?group=us&dquote=1&ticker='+ticker+'"></a>')
var ticker = args.getArgument('ticker')
document.write('<a href="http://chart.thomsonfn.com/thomson/FinancialImageGenerator?&type=2&typeMod=0&timeFrame=7&timeframeMod=0&range=2&logarithmic=&size=0&imageStyleSheet=ichartimage&dummyVar=1&prtid=Mzg0VlZOQ1lXNXJQJFkEQUALSTO&prdid=IChartImage&symbol='+ticker+'"></a>')
forget't
ASKER
Did I give too much information. I'm not familiar with the set up on here as far as supplying information. I just notice I'm suppose to grade each answer I get. Where do I put in the grade for each answer?
To ivanmata
I appreciate all of your help for trying to help me out.
Thanks, Sorry if I put out too much info for ya.
To ivanmata
I appreciate all of your help for trying to help me out.
Thanks, Sorry if I put out too much info for ya.
in order to grade an answer, you have to accept a comment as an answer...
in each comment you have the option to accept it as an answer and grade it...
cheers =0)
in each comment you have the option to accept it as an answer and grade it...
cheers =0)
ASKER
Ok thanks! Grade A for helping me with all of my questions but I'm back a square one cause I dont not have a solution to my problem. Thanks for you help :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for all your advice. Does anyone else have any suggestions for my problem. There has to be something I can do to fix this. Thanks
You just have to change all your 'tickerSearch' in your code for 'newsAdvSearch'
'tickerSearch' actually is not an object... it doesn't exist at all!!!
cheers =0)