|
I have upload my project using VS.net 2003 on a website(by using a web hosting service).The problem is that i cant remove it when i want to because i cant see the folder of the project in the Remove List...
|
|
|
|
|
Set wshell = CreateObject("WScript.Shell")
wshell.Run "any_thing_to_run"
the above two lines are vbscript code . can any please help and tell me their javascript equivalent code.
Be FaithFull To Your Work.
|
|
|
|
|
alert("I am an idiot and I keep asking the same question over and over, because I don't believe the answer people keep giving me.")
sheesh.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Hi,
I have a webpage which lists names of files. Whenever a user clicks on the file name(a hyperlink) the relevant rtf document opens in a MS-Word window.
My question is how to print the file without opening the file in MS-Word. This process has to happen without user intevention.
Thanks for any help
Thanks and Regards
Vikram Attiganal
|
|
|
|
|
If all the information that you have to print is on the single page of IE , then its very simple, first install the printer and then go to file menu and simply click the print option.
If you want to do it programmatically then you have to choose a scripting language.For java script make a button with caption Print and on it onClick event call a function Printme(user defined) and in this function write the print routine which is i think window.print.
Hope it will work.
Be FaithFull To Your Work.
|
|
|
|
|
Problem (succinct): Say you want some of your paragraphs to have no top and bottom margin, and you want other paragraphs to have 12pt top and bottom margins. This can be done through styles. But then if you try to apply Trenton Moss's 4th HTML speedup tip, and place a 'div' around the block of paragraphs, rather than < P style=NoMargins>... it fails to work. Anybody know how to get around it, and have flexible paragraph margins on a style by style basis?
More vaguely describing the problem: The first try using styles may look like:
.NoMargin {
margin-top: 0px;
margin-bottom: 0px;
}
.Margin {
margin-top: 12px;
margin-bottom: 12px;
}
And using it in code looks like:
< P style=NoMargin>Paragraph1.</P>
< P style=NoMargin>Paragraph2.</P>
< P style=Margin>Paragraph3.</P>
< P style=Margin>Paragraph4.</P>
And that works. But then when you go
<div class=NoMargins>
< P>Paragraph1.</P>
< P>Paragraph2.</P>
</div>
<div class=Margins>
< P>Paragraph3.</P>
< P>Paragraph4.</P>
</div>
It fails miserably. In fact, it hooks onto the default 'P' margin-top and margin-bottom values, and doesn't look at the Margins OR NoMargins definition of margin-top or margin-bottom.
The only work-around I have found is to define:
P {
margin-top: 0px;
margin-bottom: 0px;
}
and these values are what is used throughout. I cannot figure out how to get different margins around a style, other than going back to the first method ("< P class=Margin>...")
David
|
|
|
|
|
You didn't read Trenton's example carefuly.
He has:
<div class="text">
<p>This is a sentence</p>
<p>This is another sentence</p>
<p>This is yet another sentence</p>
<p>This is one more sentence</p>
</div>
.text p
{
color: #03c;
font-size:2em
}
As you can see, whole trick is in ".text p" - which means "apply this style to childs of .text". You don't have this in your CSS - there should ne ."NoMargin p".BTW you have class=NoMargins instead od class=NoMargin. I assume this is just typo.
David
David
|
|
|
|
|
Thank you. I could have sworn myself black and blue that I tried that combo and every other combo among all the things I tried. Yet it works this time!
Can you explain the difference between the declarations: ".text p { ..." and ".text { ..." in this case? I do not understand the semantic difference between these two, and it confuses the heck out of me. I was under the impression that ".text { ..." declared a class called 'text', and that placing " < div class="text">" said: "use the class 'text' for the paragraphs in this division", but my understanding must be missing something, otherwise the 'margin' specifications would automatically apply on a per-paragraph basis?
OH! As I am writing this, and playing around, it finally sinks in. Your:
".text p" - which means "apply this style to childs of .text"
is wrong (I believe). It should be: "'.text p {...' means 'create a style named 'text' with paragraph properties of ..." In the same vein, "'.text { ...' says: "create a style with the attributes of ...", and then when you use that style in a division, it applies the margins to the top and bottom of that division, rather than the paragraphs in between.
Did I get the semantics right this time, and is there anything else I am missing? What other things besides 'p' can go in place of the 'p' in ".text p { ..."?
Again, thanks very much.
David
|
|
|
|
|
David O'Neil wrote:
Can you explain the difference between the declarations: ".text p { ..." and ".text { ..." in this case?
yes
David O'Neil wrote:
was under the impression that ".text { ..." declared a class called 'text', and that placing " < div class="text">" said: "use the class 'text' for the paragraphs in this division", but my understanding must be missing something, otherwise the 'margin' specifications would automatically apply on a per-paragraph basis?
you are right that .text create class called 'text'. But it's not "use the class 'text' for the paragraphs in this division" when you write <div class="text">. It's "use the class 'text' for this division". So your <div> element had margins as set in .text class, not paragraphs.
David O'Neil wrote:
Your:
".text p" - which means "apply this style to childs of .text"
is wrong (I believe).
hmm I admit what I wrote is not exact. Should be "apply this style to child paragraphs of element of 'text' class". What I meant is called selector.
David O'Neil wrote:
Did I get the semantics right this time, and is there anything else I am missing?
I think you got it right Look at CSS for more information about CSS, selectors in this case.
David O'Neil wrote:
What other things besides 'p' can go in place of the 'p' in ".text p { ..."?
All of them. Again, read about CSS in link I gave you ( on that page are links to CSS1,2,3 specifications).
David
|
|
|
|
|
Thank you. I think I am slowly getting this stuff. (But I haven't yet 'got it'.)
David
|
|
|
|
|
But asp provide a fuction which executes a file or any executable application and i think that function's name is execute .So if asp provides it why not javascript of vbscript.
Be FaithFull To Your Work.
|
|
|
|
|
Good gravy - are you mental ? Who in their right mind would run a browser if it meant that the author of any web page could run any program they liked on your computer ?
Also, calling your post 'urgent help', and then creating a NEW post instead of replying again on the same topic is not the right way to use the forums. Use a descriptive header, and if you're still discussing the same thing, do it by replying to the person who replied to you.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
If I build a web page, and it can format your hard disk. Will you open it?
<italic>Work hard, Work effectively.
|
|
|
|
|
I wanna know is there any java script function ( preferrably with some example ) which executes an execuatble file ( written in any programming language )on client side.
Thanks
Be FaithFull To Your Work.
|
|
|
|
|
No, thank god! neither your computer nor anyone else's would be safe if there was!
Phil
|
|
|
|
|
Hi there,
I've some problems accessing my ActiveX control from a VBScript/JScript. The control can be successfully initialized an acessed via the <object> tag.
The problem is, that I've to retrieve additional objects/interfaces from the control, which are all defined in the typelib embedded in the control. This likes somehow like this:
var ObjInst = new Object;
ObjInst = Control.GetInstance();
ObjInst.Method();
Because everythings working fine from CPP/VB when compiling, I would like to know, whether I have to register the typelib somehow in the html code or somewhere else, or whatever may cause this error. I can view the typelib in the OLE viewer supplied with visual studio, so the registration can't be that faulty in my opinion. My thaughts were, that acessing a reference to a IDispatch interface should be generally no problem in JScript/VBScript.
Thanks for any suggestions.
Florian
|
|
|
|
|
Hi,
I'm still struggling to send null values to a stored procedure.
I have a textbox which doesn't require a value. If the textbox is empty, then it must pass a null value to the stored procedure, and I still have not found a solution. Once all validation has been done I add the value of the textbox to a strDialCode variable.
This is how I add my textbox to the CreateParameter method
objCmd.Parameters.Append objCmd.CreateParameter("@ContactDialCode", adWChar,
adParamInput, Len(strDialCode), strDialCode)
And here is my stored procedure, or part of it...
CREATE Procedure sp_InsertContact
(
@ContactDialCode nvarchar(10) = NULL
)
INSERT INTO tblContact
(
ContactDialCode
)
VALUES
(
@ContactDialCode
)
GO
I really hope someone can help me on this because I have been struggling for a couple of weeks on this.
Cheers.
Brendan
|
|
|
|
|
In C#, it's DbNull.Value - is there an ADO equivelant ?
I didn't think you could have default values in a stored procedure ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I think you can pass a NULL to a stored procedure, but when I leave the length property blank, or out, then I also get an error. So if I can find a way to pass this, then I think it should work.
I have seen other stored procedures where they also use = NULL.
Can you maybe send me the CreateParameter string for adding s null value in C#? Maybe I can follow from that. Do they also require a length firld?
Please guys, help me out on this? I am new to stored procedures.
|
|
|
|
|
I don't care what the purists say, my advice is to avoid null values like the plague! Define all the db fields you can as NOT NULL and do whatever you have to fit in with it. In your example, for a ContactDialCode, siomply store an empty string instead. A plague upon NULLS!
cheers
Phil
|
|
|
|
|
ROTFL - at least you know this is a religious discussion. Sometimes, NULL has a real meaning ( for example, no string has been entered, as opposed to an empty string was entered ).
I believe it's a decision that's up to the consience of the individual churchgoer, but there are definately times when NULL is a meaningful value.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
yes, I know.... but since when did reason ever get in the way of reigion? Nullify NULLs, I say! (And as for the egghead who decided to use apostrophe's as string delimiters in SQL...;P)
Phil
|
|
|
|
|
how can i refesh the form/document (like f5 key) through the coding in asp
|
|
|
|
|
ASP is a server technology. You can't refresh the users screen from the server. However, you perform a location.refresh() in javascript.
|
|
|
|