473,569 Members | 2,611 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Openning a file in Javascript

2 New Member
Hello. Im using a Console (Operator Panel) that has a built in web server. Im triyng to make a page that opens a file in the console server.
Im using this code:
var datafile = "DEFAULT.SK V";
var line, line2, line3;

objXml.open("GE T", datafile, true);
objXml.onreadys tatechange=func tion()
{
if (objXml.readySt ate==4)
{
display(objXml. responseText);
line = objXml.response Text;
line2 = line.split( " " );
line3 = line.split( ";" );
Display2(line3[7].substring( 0, line3[7].length));
}
}
The file to open is DEFAULT.SKV.
This code works fine if the file is inside the web server folder, but i want to open a file that is outside the web server folder and i don't know the phisichal path. I've tryied lots of paths like: ..\folder\defau lt, and so on.
Hope you can hel me.

Thanks
Jun 6 '07 #1
2 1280
acoder
16,027 Recognized Expert Moderator MVP
Welcome to TSDN!

Try using forward slashes instead.
Jun 6 '07 #2
andreguerra
2 New Member
Welcome to TSDN!

Try using forward slashes instead.
I've already triyed that. Do you have any other ideia. Thanks
Jun 6 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

19
3988
by: Mel | last post by:
when downloading files from my site, when file types are known (i.e *.doc) browsers open the file for viewing. is there a way to disable that and just present the save as dialog (same as for unknown types zip files etc.) ? thanks Mel
5
4667
by: Tedmond | last post by:
Dear all, How can I get all the titles of all openning windows? I found a API in win32 that called EnumWindows() but it returns only the windows handles, not titles. How can I get the list just like the Applications tab in Windows Task Manager? Thanks, Tedmond
2
1131
by: Eitan | last post by:
Hello, I want open a new page (on the same window), by using some vb script (I am in aspx file). How can I do that ? Thanks :)
1
1157
by: mahesh123 | last post by:
Hi, I am using the VB6.0 and for report crystal reports 8.0. the reports are not openning(means its openning but immediately it is closed the report) when we installed the reports in other system. I installed all the depends for the reports. The system is 64 bit WinXP which i installed the reports. Regards ------------ Mahesh
0
7701
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8130
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7677
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.