|
Might not be the problem but its a common mistake to forget to set permissions..
Are you sure that you have permission to create a file?
To be honest, It should come up with an error, not crash...
Hope you sort yourself out...
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
I had the same problem with XP
check this[^] .. it may help you
|
|
|
|
|
I'm using Norton Antivirus
so i just turn off the 'script-blocking'
hope it helps u too
|
|
|
|
|
can anyone tell me how to find out if user input from prompt, is an integer or a string?
|
|
|
|
|
Try something like this:
if(isNaN("test"))
alert("not a number");
HTH
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG picture :: my first abstract photo
|
|
|
|
|
|
Please tell me wat's wrong with the code below
I'd try both way in the asp file to delete the childnode in xml but it couldn't work
*** News.xml ***
-------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited with XML Spy v4.2 -->
<News>
<Article>
<Head>Test 1</Head>
<Des>Testing 123</Des>
<Date>1/9/2003</Date>
</Article>
<Article>
<Head>Test 2</Head>
<Des>Testing 321</Des>
<Date>1/9/2003</Date>
</Article>
</News>
-------------------------------------------------
*** file.asp ***
-------------------------------------------------
<%
If Request.QueryString("Action")="Delete" Then
Dim strID
Dim objXML
Dim subArticle
Dim objLst
Dim subLst
strID = CInt(Request.Form("selectAnnouncement"))
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.Load(Server.MapPath("News.xml"))
**** 01 ****
Set objLst = objXML.getElementsByTagName("Article")
Set subLst = objLst.item(strID)
objXML.documentElement.removeChild subLst
**** 02 ****
'Set subArticle = objXML.documentElement.childNodes(strID)
'objXML.documentElement.removeChild (subArticle)
Set childNode = Nothing
End If
%>
-------------------------------------------------
|
|
|
|
|
I don't test your code, but it sounds good... except that you do not save the document at the end of your fonction!
|
|
|
|
|
yup, i didnt save the document, thanks alot
|
|
|
|
|
I want to add a Hit Counter component to my web site ,I can add and use it when it is located in my IIS but when I upload it, it does not work,in the tag of this component ,there is a path to my file: F:\wwwroot\.....\filefolder,I can't change this value because front page does not save it and change it to its default value each time I click save,I think I have to change it to something like www.mysite.com.Anybody know how can I use this component?
Mazy
No sig. available now.
|
|
|
|
|
Having a little problem with use strict
I have the following in my script:
<br />
my @CONFIGURE = &read_config;<br />
...<br />
<br />
for($var)<br />
{<br />
/add/ and do(&comment_add(\@CONFIGURE); last;};<br />
...<br />
}<br />
<br />
sub comment_add<br />
{<br />
my $CFG = @_;<br />
my $displayfile = $CFG{'entriespath'} . $q->param("Entry") . '.blg'; **problem line
...<br />
}<br />
but get the following error:
"%CFG" requires explicit package name
I don't understand how that package is undefined.
Can someone clarify what I'm screwing up for me, please? Thanks.
let the whole world look in who cares who sees anything
BW
|
|
|
|
|
Nevermind....
let the whole world look in who cares who sees anything
BW
|
|
|
|
|
I know it is possible to print in javascript by using "window.print();" what I would like to know is, is it possible to open the print dialog and automatically set it to a certain setting.
what I'm trying to do is open the print dialog set to landscape - since the page looks better that way, but I would like the user to not have to select landscape (since I cant expect them to know that it looks better that way).
if anyone can help me with this it would be greatly appreciated.
|
|
|
|
|
Don't use javascript for this, but CSS.
You're probably not allowed to do what you want to do from javascript for security reasons.
There is however a very nice solution with Cascading Style Sheets. With the media attribute you can target it for a specific device (screen/print/aural/braille/etc).
|
|
|
|
|
can you please be a little more specific?
I'm not sure exactly what you mean
|
|
|
|
|
Hai webProgrammer,
Security point:
I think that it's very dangerous when some javascript can control the browser. If the browser allowed a script to change some options on print dialog, why shouldn't that be also used to change (for example) your browser settings, like your security settings. Therefor I'm quite sure that what you want to do won't be allowed by the browser.
So that basically rules out the javascript approach.
With HTML you define the structure and the text within that of a webpage. The formatting should be done with Cascading Style Sheets. If you don't know how to write a CSS file and link it to your webpage, then take a look at W3Schools or something like that. The official specifications can (of course) be found at www.w3.org/Style/CSS.
As you've noticed a webpage on your screen doesn't always look good when it's printed. Therefor you can create different stylesheets for different media. You indicate through the media attribute of the link-element to what media the stylesheet should be applied. If you don't specify the media attribute, the default value of 'all' is used.
By using media="print" for a stylesheet you tell the browser to only use that stylesheet for printing.
There's a section of the CSS Level 2 specification which handles that aspect and it's called paged media.
You might want to take a look at
section 13.2.2 Page size: the 'size' property, because there you'll find your answer.
Example of landscape setting:
@page {
size: landscape;
}
Hope this is more clear
|
|
|
|
|
believe it or not I happen to have seen all of this before and I still posted the message because, if you would look a little further into the css documentation and specification in "section 13.2.2" you will notice that these are only what they would like to do for the future, however the pagesize property of css will not work in current browsers, and I know this for a fact, since I have tested them all in Netscape and IE, I can also tell you that the "margin" atribute of the "page" property will work (at least in IE).
the reason I asked you to explain was because I thought you had found an alternative way of doing things (a way that might work).
even though I have already established that what I would like to do is not possible through either javascript or CSS, I really appreciate your consideration and help.
|
|
|
|
|
Damn, you're right
I've created my own test page an tried it in IE6, Mozilla 1.4 and Opera 7.11 and it was still portrait
As it turns out I did know how it should be done, not how it works
The real problem is that browsers still don't implement an important W3C Recommendation dated 12-May-1998 decently!
As far as Mozilla is concerned I'll probably gonna file this as a bug (after some more testing).
|
|
|
|
|
Hi,
I'm trying to get data from my network servers, and add the literal data onto a chart using (Office web Components). I have the chart working with information from the local machine that the ASP code is running on, however, I need to get information from all servers within my LAN. Does anyone have any ideas on how to do this? I've tried using FSO to get access to an admin share ($) but script returns error -- path not found.
Thanks
Tony
|
|
|
|
|
Hello all
I'm posting some form data to server which processes the data and will give a webpage in reply depending on success or failure. How to know what kind of page server is giving in reply cause I had to process some data depending ont he webpage I'm getting in reply. I'm using javascript.
if anyone knows how to do it, pls help me.
thanks
Hari.
|
|
|
|
|
Are you looking for error code values?
here is a list[^] of them
let the whole world look in who cares who sees anything
BW
|
|
|
|
|
Hello brain
Thanks for the reply. I'm not looking for error values. when I post data to the server, I will get one of the two pages in reply depending the data I post to server. How to know what page I'm getting in reply. I want to further processing depending on the page I'm getting in reply.
If you know how to handle this, pls help.
Thanks
Hari.
|
|
|
|
|
I'm not sure I understand what you are trying to do.
"Manifest plainness, embrace simplicity, reduce selfishness, have few desires." -- Lao Tzu BW
|
|
|
|
|
Hi !
I'm using ASP (not ASP.NET) to create some HTML pages and I'd like to create pdf documents to print them directly on the printer.
Is it possible to do that in ASP ? Is there a free tool ro library to do that ?
Thanks for your help !
Jerome
|
|
|
|
|