freedns.afraid.org and cross-domain scripting

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: May 2009
Posts: 3
Reputation: danielgrad is an unknown quantity at this point 
Solved Threads: 0
danielgrad danielgrad is offline Offline
Newbie Poster

freedns.afraid.org and cross-domain scripting

 
0
  #1
May 5th, 2009
Hello,

I have a site hosted on a free hosting service and I'm using freedns.afraid.org to direct my domain there. The URL forwarding is done by ways of a frameset with my site in a frame.
On my site is a javascript that manipulates the location string for some AJAX magic (using '#/page' style URLs for navigation). It all works very well if I access the site at the free hosting address (mysite.freehost.com), but when I access it through my domain name (mysite.com), I get the 'permission denied to call location.toString' exception... Is there any way to get around this error?
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 3
Reputation: danielgrad is an unknown quantity at this point 
Solved Threads: 0
danielgrad danielgrad is offline Offline
Newbie Poster

Re: freedns.afraid.org and cross-domain scripting

 
0
  #2
May 12th, 2009
is there no solution?
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 97
Reputation: itsjareds is an unknown quantity at this point 
Solved Threads: 12
itsjareds's Avatar
itsjareds itsjareds is offline Offline
Junior Poster in Training

Re: freedns.afraid.org and cross-domain scripting

 
0
  #3
May 13th, 2009
It might be the use of the parent window instead of the current document by your scripts. Check your scripts to see if they use the window object instead of the document object.

Change things such as window.location.href to document.location.href
Last edited by itsjareds; May 13th, 2009 at 9:32 pm.
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 3
Reputation: danielgrad is an unknown quantity at this point 
Solved Threads: 0
danielgrad danielgrad is offline Offline
Newbie Poster

Re: freedns.afraid.org and cross-domain scripting

 
0
  #4
May 17th, 2009
No, I'm using document.location.href everywhere...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 894 | Replies: 3
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC