PDA

View Full Version : Please tell me if this is possible



RRice
08-11-2009, 05:46 PM
ok i have a saved page from a web site, this page is an html with 1 iframe,,
all commands for doing any searching is done from the html part of the page, and results are displayed in the iframe as a series of hyperlinks with onmousehover and onmouseouts and onclicks attached to each listed link..ya with me so far ? lol
this is were the problem lies, even tho i can get the first initial search to display in the iframe,none of the links are working(nothing happens when clicked)
at first i thought it was a server problem, but after looking at the source code in the iframe i realised that it wasnt working because i wasn't logged into the site..however ,,
if i add a text box and submit button to the html section of the page and initilize the links manually then i can get to the 3rd page, and all links on it work fine.
also i noted the pages from the web site have if(top.location==self.location){top.location=" on both the 2nd and 3rd pages..i removed this from my saved page in order to get it to open..

ok now the question part,,and i'm completely baffled by the way..how is it that i can for some reason load each of these pages that i shouldnt be able to unless i was logged in??
and since i can get them to load,, how can i get the 2nd page links to work the way the 3rd page works lol
i've enclosed the source code from page 2 it's a little long but i didnt want to leave anything out that might help solve this problem i hope someone can help me or at least explain it to me lol

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Results</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script language="javascript" type="text/javascript">
if(top.location==self.location){top.location="search.asp";}
top.document.reset.RefCat.value="Home Receiver";
top.document.reset.NarrowRef.value="Good";
top.document.reset.criteria.value="stra";
top.document.reset.searchscope.value="model";
top.document.reset.companyscope.value="SONY";
top.document.reset.company.value="SONY";
if(""==""){top.reset();}
function popUp(URL,Name) {
var day = new Date();
var id = "page" + Name;
window.open(URL, id, "toolbar=1,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=600,height=600");
}

function launchjsmanuals(flag, x, y, z, id) {
//var myTypeLib = new ActiveXObject("Scriptlet.Typelib");
//var GUID = new String(myTypeLib.guid).substr(1,8);
//var endguid = new String(myTypeLib.GUID).substr(25,10);
if((x.indexOf("CHM")!=-1) || (x.indexOf("chm")!=-1)){
alert("You will be prompted to download a file\n\nClick Open - Do NOT click Save");
}
var whnd = "page" + id; //+ GUID + endguid;
var URL = 'usage.asp?flag='+flag+'&manual=' + x + '&user=' + y + z + '&manualid=' + id;
if(flag!=""){
whnd = window.open(URL,whnd, "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=560,height=600");
}else{
whnd = window.open(URL,"Loader", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=560,height=600");
}
}
function emailit(id, url,name,type,filesize,model,email,custname,cs3event,user){
var namestring = name;
var re = new RegExp('&','gi');
namestring = namestring.replace(re,'and');
name = namestring;
var xurl = "/srvs/common/email.asp?id="+id+"&emailurl="+url+"&title=" + name + "&type="+type+"&model=" + model + "&filesize=" + filesize + "&email=" + email + "&custname=" + custname + "&convid=" +cs3event + "&user=" + user;
popUp(xurl,id);
}
function NarrowSearch(what,value,cat){
switch(what){
case "Category":
parent.document.SearchForm.RefCat.value=value;
parent.document.SearchForm.NarrowRef.value="Good";
parent.document.SearchForm.submit()
break;
case "Model":
if("Home Receiver"!=""){
parent.document.SearchForm.RefCat.value="Home Receiver";
}
parent.document.SearchForm.criteria.value=value;
parent.document.SearchForm.searchscope.value="model";
parent.document.SearchForm.NarrowRef.value="Good";
parent.document.SearchForm.submit()
break;
case "ONLY":
parent.document.SearchForm.criteria.value=value;
parent.document.SearchForm.searchscope.value="model";
parent.document.SearchForm.RefCat.value=cat;
parent.document.SearchForm.NarrowRef.value="Only";
parent.document.SearchForm.submit()
break;
case "ALL":
parent.document.SearchForm.criteria.value=value;
parent.document.SearchForm.RefCat.value=cat;
parent.document.SearchForm.NarrowRef.value="ALL";
parent.document.SearchForm.submit()
break;
}
}

</script>
</head>
<body>
<div id="results">
<div style="height: 400px;border-bottom:1px solid black;" class="modelblock">
<div style="margin-left:20px; margin-right:15px; margin-top:10px; font-size:10pt">
<span style="float:Right;margin-top:10px;text-align:right">
<table border=0 cellpadding=0 cellspacing=0>
<tr><td>

<div style="background:silver;color:black;font-size:10px;padding:2px;
border:1px solid gray;cursor:pointer"
onclick="javascript:NarrowSearch('ALL','stra','Home Receiver')">
Display All Models</div></td><td>&nbsp;</td><td>

<div style="width:40px;background:silver;color:black;font-size:10px;padding:2px;
border:1px solid gray;cursor:pointer;text-align:center"
onclick="javascript:history.go(-1)">Back</div></td></tr></table></span><b>
Your search of "<font color=green>stra</font>"
matches 66 Models in the Home Receiver category.</b><br><br>
Please select the specific model to continue:

<table border=0 cellpadding=0 cellspacing=2><tr><td>

<a class="modellink"
onMouseOver="this.className='modellinkhover'"
onMouseOut="this.className='modellink'"
onclick="javascript:NarrowSearch('ONLY','STRAV1000','Home Receiver')"><b>STRA</b>V1000</a></td><td width=15px></td><td>
<a class="modellink"
onMouseOver="this.className='modellinkhover'"
onMouseOut="this.className='modellink'"
onclick="javascript:NarrowSearch('ONLY','STRAV1010','Home Receiver')"><b>STRA</b>V1010</a></td><td width=15px></td>
</table></div></div></div>
<!-- <FORM NAME="displayaction" ACTION="http://43.153.54.191/reflib/directview.asp" METHOD="POST" target="_salert"> -->
<FORM NAME="displayaction" ACTION="directview.asp" METHOD="POST" target="_salert">
<INPUT type="hidden" name="id" value="">
<INPUT type="hidden" name="actionurl" value="">
<INPUT type="hidden" name="modelnum" value="">
</FORM>

<iframe name="Loader" id="Loader" src="blank.htm"
style="display:none;height:150px;width:100%;border:1px solid silver"></iframe>
<a onclick="document.getElementById('Loader').style.display='';">*</a>
<!-- <script language="javascript"> -->
<!-- //alert(parent.IQ.location.href);-->

</body>
</html>