|
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.
|
|
|
|
|
|
I have the need to insert a snippet of HTML into about 400 separate web pages. The first possibility is obviously to just open each file (different domains and accounts) paste the code and save (via MS FP).
Being the lazy person I am, I was hoping to someohow programmatically (ASP, VB etc) build something that can update those pages all at once (given the appropriate page name and login creds).
Any ideas?
TIA...
|
|
|
|
|
You want to write code that logs in to a remote web server, changes the HTML and then saves it ? No, that won't work. You'd need to FTP to the server to do that.
If your pages are XHTML, then an XSLT would be able to update all the pages for you.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Actually, I was planning on doing it via FTP and just wanted to find the best way/tool/method to programmatically update the file once I have it downloaded.
In other words, my program will grab the FTP address, login, download the file and then somehow modify it and put it back.
|
|
|
|
|
If you have write permission on the server, you could write an ASP.NET page that reads the files one by one, one line at a time, and writes them out to a temp file, inserting the required extra code along the way. Then rename the temp file as the original. Move on to next file. This kind of assumes the change is the same for all files, and there is some way of telling the script where to insert the new bits (eg, after the body tag)
This is not that hard to do. Examine the system.IO class for file functions, and the StreamReader and StreamWriter objects.
cheers
Phil
|
|
|
|
|
If it's XHTML, then an XSLT would be the best bet, IMO.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am working on ASP as front end and VB as middle layer, in an application. I need to use an array from VB in ASP. How to write the Let and Get properties for the same.
all help is appreciated. Thanks
|
|
|
|
|
I'm new to web sites and just learning so will someone with knowledge please help me figure out this?
I have 2 domain names. I have 1 hosting account. I have domain name #2 pointed to domain #1. for example: when putting www.domain1.com in the address bar it goes to domain #1. when typing domain #2 in the address bar it goes to domain #1/domain2
I was told that I can add more pages to domain #2 and put a mask code on the pages to make them work in domain #1 and the address bar will show the address domain #2.
I hope I'm expaining this correctly. I was told to go to google and do a search for datml masking code and I would find a code to put on the pages. I didn't find a code. Does anyone here know a code that will do that?
Thanks in advance,
Kozy Kitten
|
|
|
|