JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 21st, 2000, 08:30 AM
$tACK$ $tACK$ is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 3 $tACK$ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old April 3rd, 2000, 12:13 PM
underdog underdog is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: British Columbia
Posts: 11 underdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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...

Reply With Quote
  #3  
Old April 3rd, 2000, 12:37 PM
$tACK$ $tACK$ is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 3 $tACK$ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old April 18th, 2000, 10:53 AM
The Hun The Hun is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 6 The Hun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > IE doesn't like my javascript but Netscape does...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway