Click here to Skip to main content
15,890,670 members
Home / Discussions / Web Development
   

Web Development

 
GeneralSEO Pin
alex.barylski20-Jan-04 22:15
alex.barylski20-Jan-04 22:15 
GeneralRe: SEO Pin
BrainJar27-Jan-04 12:51
BrainJar27-Jan-04 12:51 
GeneralCalling Java APIs from .Net Pin
Kiran_HR20-Jan-04 21:43
Kiran_HR20-Jan-04 21:43 
GeneralWebService and .asmx file Pin
Chris Meech20-Jan-04 5:32
Chris Meech20-Jan-04 5:32 
GeneralRe: WebService and .asmx file Pin
mthead20-Jan-04 7:30
mthead20-Jan-04 7:30 
GeneralRe: WebService and .asmx file Pin
Chris Meech20-Jan-04 8:41
Chris Meech20-Jan-04 8:41 
GeneralWindow authentication for Webservice Pin
Alistair Lacy19-Jan-04 20:50
Alistair Lacy19-Jan-04 20:50 
GeneralReading document.location.href Pin
Swinefeaster18-Jan-04 13:01
Swinefeaster18-Jan-04 13:01 
Hi there,

I've used the following code on my store page to determine if the current page is actually in the regsoft store or not, allowing the use of the same .js file for both uses:

<code>
function WriteBarLinkUnterminated(RelativeUrl)
{
StoreUrlCriteria = "regsoft";
CurrentUrl = "";
CurrentUrl = document.location.href;
if(CurrentUrl.search(StoreUrlCriteria) != -1)
{
// In store. Use absolute url.
AbsoluteUrl = "http://www.aephid.com/";
AbsoluteUrl += RelativeUrl;
document.writeln("<a href = '" + AbsoluteUrl + "' target = '_top'>");
}
else
{
// Not in store.
document.writeln("<a href = '" + RelativeUrl + "' target = '_top'>");
}
}
</code>

However, I've recently found security errors popping up saying "Permission Denied". More research shows that this property is both deprecated, and also security rules no longer let you read it --- only change it!

see:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/om/xframe_scripting_security.asp

Does anyone know the proper way I can replace this block of code? I can't just use absolute urls because then I cannot navigate the website off the local hard drive and test it before it is deployed.

Please help!

swine

[b]yte your digital photos with [ae]phid [p]hotokeeper - <a href = http:\\www.aephid.com\photokeeper-default-frame-codeproject.shtml>www.aephid.com</a>.

GeneralWebsite search engines Pin
Jim Crafton18-Jan-04 4:40
Jim Crafton18-Jan-04 4:40 
GeneralRe: Website search engines Pin
Jonathan de Halleux18-Jan-04 4:59
Jonathan de Halleux18-Jan-04 4:59 
GeneralRe: Website search engines Pin
Jim Crafton18-Jan-04 5:48
Jim Crafton18-Jan-04 5:48 
GeneralRe: Website search engines Pin
Nick Parker18-Jan-04 6:18
protectorNick Parker18-Jan-04 6:18 
GeneralRe: Website search engines Pin
Jim Crafton18-Jan-04 10:05
Jim Crafton18-Jan-04 10:05 
GeneralWeb Services with Classic ASP Pin
Nathan Ridley17-Jan-04 14:38
Nathan Ridley17-Jan-04 14:38 
General4guysfromrolla Pin
Paul Watson18-Jan-04 5:34
sitebuilderPaul Watson18-Jan-04 5:34 
GeneralRe: 4guysfromrolla Pin
Roger Wright18-Jan-04 5:55
professionalRoger Wright18-Jan-04 5:55 
GeneralThanks guys Pin
Nathan Ridley20-Jan-04 15:25
Nathan Ridley20-Jan-04 15:25 
Generaldotnetjunkies: Consuming XML Web Services in Classic ASP Pin
Jim Taylor20-Jan-04 23:19
Jim Taylor20-Jan-04 23:19 
GeneralData Binding Problems Pin
Lea Hayes16-Jan-04 13:01
Lea Hayes16-Jan-04 13:01 
GeneralRe: Data Binding Problems Pin
DFU2319-Jan-04 6:12
DFU2319-Jan-04 6:12 
GeneralcancelBubble doesn't work Pin
Member 82278516-Jan-04 0:45
Member 82278516-Jan-04 0:45 
GeneralRe: cancelBubble doesn't work Pin
theJazzyBrain16-Jan-04 5:21
theJazzyBrain16-Jan-04 5:21 
GeneralRe: cancelBubble doesn't work Pin
DFU2319-Jan-04 6:14
DFU2319-Jan-04 6:14 
GeneralImage/Image Button Controls Pin
Lea Hayes15-Jan-04 12:32
Lea Hayes15-Jan-04 12:32 
GeneralRe: Image/Image Button Controls Pin
alex.barylski16-Jan-04 10:07
alex.barylski16-Jan-04 10:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.