Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Dec 4th, 2006, 6:15 AM   #1
anant_tickoo
Programmer
 
Join Date: Sep 2005
Posts: 50
Rep Power: 0 anant_tickoo is an unknown quantity at this point
not abl to retrive page by javascript

hey!!


i am trying to get this code running .. it works fine when i am open it localy that is i double click html file every thing goes okey ..
but when i request it form site eg. http://10.0.54.61. the error is that permisson denied and the page i request does no get displayed...


wot is wrong

kindly help
<HTML> 
<HEAD> 

<META HTTP-EQUIV=REFRESH CONTENT=60>
<base target="_self">
</HEAD>
<BODY>
<B><center>UPDATES</center></b>
 
<script type="text/javascript">
var req;
function getUrl(url) { 
    var req = new ActiveXObject("microsoft.xmlhttp"); 
        req.open("GET",url,false); //i see error here ::permission denied 
        req.send(); 
    return req.responseText; 

} 

 req = getUrl('http://10.0.54.140');
document.write(req);
</SCRIPT>

</BODY>
</HTML>
anant_tickoo is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hidden unless Javascript enabled? Writlaus JavaScript and Client-Side Browser Scripting 3 Apr 25th, 2006 10:52 PM
HTML page not reading external Javascript file aznluvsmc JavaScript and Client-Side Browser Scripting 9 Nov 21st, 2005 9:17 PM
Page Replacement Program (C++) redhatter Existing Project Development 1 Nov 20th, 2005 10:38 AM
Handling new windows not created by JavaScript nwruiz JavaScript and Client-Side Browser Scripting 3 Jun 24th, 2005 9:03 PM
After execution - Error cannot locate /Skin File? wchar Visual Basic 1 Mar 5th, 2005 9:04 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:08 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC