loveshacl
Technical User
- Apr 29, 2008
- 3
Can anyone give me any clues on this one:
Can anyone help me please (i am quite a novice, but having fun learning). Im not sure if this is an ASP problem, a javascript problem or a browser problem.
Firstly, everything i have written works fine in IE7 and beta IE8. My pages do not work however in Safari or Firefox, and please dont beat me, but i use Frontpage to write my site, and i use iframes as ive not discovered how to do this any differently!
So the issue is this, i have a large database of music, on selecting an item from the menu, frame 1 gets populated with song titles, on clicking one of the song titles, another frame is fpopulated wtih content, images and text, and a 3rd frame is populated with release and chart information and a 4th frame is populated with reviews of that record.
You can see it in action here :
In IE, you can pull down an artist, etc and the first frame populates with content, select a title and the middle frame popualtes, then click on a picture or hyperlink and the thrid frame populates.
In Firefox and Safari, i can only get the first list appearing.
Ive installed Firebug but i don't understand the error.
But, i think i've narrowed it down to the Javascript where i set the frames.
<script language="javascript">
function setframes(m,t,b)
{
parent.document.getElementById("I2").src = m
parent.document.getElementById("I3").src = t
parent.document.getElementById("I4").src = b
}
</script>
this is then called in on the page by the following line:
Response.Write("<a target=""_self"" href=""javascript:setframes('title.asp?Title=" & Server.HTMLEncode(objRS("TITLE")) & "&format=" & Server.HTMLEncode(objRS("ALBUMSINGLE")) & "','chartdetails.asp?Title=" & Server.HTMLEncode(objRS("TITLE")) & "&format=" & Server.HTMLEncode(objRS("ALBUMSINGLE")) & "','../../../reviews/reviews.asp?Title=" & Server.HTMLEncode(objRS("TITLE")) & "');"">" & trim(UCASE(objrs("Title"))) & "</a><br>")
Firebug gives me the error report of parent.document.getElementbyID("i2") has no properties.
it obviously does though in IE.
Any clues or help to a novice would be really appreciated!
Steve
Can anyone help me please (i am quite a novice, but having fun learning). Im not sure if this is an ASP problem, a javascript problem or a browser problem.
Firstly, everything i have written works fine in IE7 and beta IE8. My pages do not work however in Safari or Firefox, and please dont beat me, but i use Frontpage to write my site, and i use iframes as ive not discovered how to do this any differently!
So the issue is this, i have a large database of music, on selecting an item from the menu, frame 1 gets populated with song titles, on clicking one of the song titles, another frame is fpopulated wtih content, images and text, and a 3rd frame is populated with release and chart information and a 4th frame is populated with reviews of that record.
You can see it in action here :
In IE, you can pull down an artist, etc and the first frame populates with content, select a title and the middle frame popualtes, then click on a picture or hyperlink and the thrid frame populates.
In Firefox and Safari, i can only get the first list appearing.
Ive installed Firebug but i don't understand the error.
But, i think i've narrowed it down to the Javascript where i set the frames.
<script language="javascript">
function setframes(m,t,b)
{
parent.document.getElementById("I2").src = m
parent.document.getElementById("I3").src = t
parent.document.getElementById("I4").src = b
}
</script>
this is then called in on the page by the following line:
Response.Write("<a target=""_self"" href=""javascript:setframes('title.asp?Title=" & Server.HTMLEncode(objRS("TITLE")) & "&format=" & Server.HTMLEncode(objRS("ALBUMSINGLE")) & "','chartdetails.asp?Title=" & Server.HTMLEncode(objRS("TITLE")) & "&format=" & Server.HTMLEncode(objRS("ALBUMSINGLE")) & "','../../../reviews/reviews.asp?Title=" & Server.HTMLEncode(objRS("TITLE")) & "');"">" & trim(UCASE(objrs("Title"))) & "</a><br>")
Firebug gives me the error report of parent.document.getElementbyID("i2") has no properties.
it obviously does though in IE.
Any clues or help to a novice would be really appreciated!
Steve