|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have some javascript that loads a page in a frame. Once a page is loaded in that frame, I cannot load another page in that frame with the same command.
This works in Netscape, but not in IE... function goToNew(site) { var web = "http://www.intria.com/"; var webSite = web + month + site; if (site=="none") { top.frames[1].document.location = "blank.html"; } else { top.frames[1].document.location = webSite; } } I get an 'Access is denied' error message. I have seen other web sites with similar code an their sites work in my IE, if anybody has an idea how I can fix this, please respond. Thanks |
|
#2
|
|||
|
|||
|
The `access denied` error usually happens either because the file doesn't exist or because your path isn`t _exactly_ right -- that is, it's not a permission problem. So make sure there is a blank.html, make your string appear in an alert so you can verify that `website` contains exactly the string you think it does, and perhaps put the string in quotes(?). Looks like you should be able to get something to work the way you're going...
|
|
#3
|
|||
|
|||
|
Thanks underdog but I just figured it out two days ago...
// Dependant on what is selected, this opens a page in the bottom frame, according to month and site. function goToNew(site) { var web = "http://www.thesite.com/pmreport/"; var webSite = web + month + site; if (site=="none") { top.frame2.location = "main.html"; } else { top.frame2.location = webSite; } } this works because I am no longer assigning to the frame.document, just strictly framename.location.... thanks anyways |
|
#4
|
|||
|
|||
|
The above is correct... the error you're getting is 'cause of security you're not allowed to access the document of a page on another server in IE
|
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > IE doesn't like my javascript but Netscape does... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|