|
Paul Watson wrote:
Also are other CSS classes working?
I guess... they r working
Will copy-paste the contents of my css file......
------------------
h1 {font-family: Verdana; color: navy; font-size: 18pt; font-style: italic; text-align: center; }
h2 {font-family: Verdana; color: navy; font-size: 14pt; font-style: italic; text-align: center; }
h3 {font-family: Verdana; color: navy; font-size: 12pt; font-style: italic; }
h4 {font-family: Verdana; color: black; font-size: 12pt; }
h5 {font-family: Verdana; color: black; font-size: 10pt; }
p {font-family: Verdana; color: black; text-align: justify; font-size: 10pt; }
.lnk {font-family: verdana; color: black; font-size: 10pt; }
.biglnk {font-family: verdana; color: navy; font-size: 10pt; TEXT-DECORATION: none }
.biglnk:hover {font-family: verdana; color: red; font-size: 10pt; TEXT-DECORATION: underline }
.boldlnk {font-family: verdana; color: navy; font-weight: bold; font-size: 12pt; TEXT-DECORATION: none }
.boldlnk:hover {font-family: verdana; color: red; font-weight: Bold; font-size: 12pt; TEXT-DECORATION: underline }
.footlnk {font-family: verdana; color: navy; font-size: 8pt; TEXT-DECORATION: none }
.footlnk:hover {font-family: verdana; color: red; font-size: 8pt; TEXT-DECORATION: underline}
.shead {font-family: verdana; color: black; font-weight: bold; font-size: 10pt; }
.wbld {font-family: verdana; color: white; font-weight: bold; font-size: 10pt; }
oldtbody
{
scrollbar-base-color: #FFF5EC;
scrollbar-arrow-color: black;
scrollbar-track-color: #CADBFF;
scrollbar-shadow-color: black;
scrollbar-lightshadow-color: black;
scrollbar-darkshadow-color: white;
scrollbar-highlight-color: white;
scrollbar-3dlight-color: black;
}
.myButton { COLOR: #000080; font-weight:bold; HEIGHT: 30px; BACKGROUND-COLOR: #FFE1C4 }
ol { font-family: Verdana; font-size: 10pt}
td { font-family: Verdana; font-size: 10pt}
---------------------------------------
I repeat.... it works fine in IE6, when I locally test in my PC http://localhost... but not when in the http://.....
I started with nothing,
And I still have lots of it left with me.
|
|
|
|
|
SPS wrote:
I repeat.... it works fine in IE6, when I locally test in my PC http://localhost... but not when in the http://.....
Oh.
Ok one last thing: Paste the code in your HTML file which links to the CSS file.
We are getting closer
Paul Watson Bluegrass Cape Town, South Africa Christopher Duncan wrote:
Which explains why when Santa asked, "And what do you want for Christmas, little boy?" I said, "A life." (Accesories sold separately)
|
|
|
|
|
Paul Watson wrote:
Paste the code in your HTML file which links to the CSS file
U mean.. put the piece of CSS in my ASP file itself??
I started with nothing,
And I still have lots of it left with me.
|
|
|
|
|
SPS wrote:
U mean.. put the piece of CSS in my ASP file itself??
No, I mean paste the HTML file here on CP so I can have a look at it
Paul Watson Bluegrass Cape Town, South Africa Christopher Duncan wrote:
Which explains why when Santa asked, "And what do you want for Christmas, little boy?" I said, "A life." (Accesories sold separately)
|
|
|
|
|
Will do it later....
Cant out the whole file here.... a big file. So, will put the part of the HTML page.....
PAUL!!! Something found strange here... I tried to open the page, I am using IE 5 here... the page displays the button with color properly... anything to do with the IE6???
Part of the code................
---------------------------------------------
-----------------------------------------------
I started with nothing,
And I still have lots of it left with me.
|
|
|
|
|
Hi, everyone!
I want to encrypted the data in a html form
sent to a JSP/Servlet (using POST method).
For example, password.
How to do it? Are there some sample codes or
guides?
Cheers,
George
|
|
|
|
|
This will require using SSL with the HTTP server, whether it be IIS, Apache, Zeus etc. There are many guides for installing SSL certificates across the Internet (I'd recommend Google as ever).
There's really no other better way of doing it.
--
Paul
"If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
Thanks, Paul pal!
Your reply is very helpful! I have rated it.
Do you have some guides on Apache and SSL?
I am a newbie, so I want you to help me out.
Cheers,
George
|
|
|
|
|
|
|
I am interested in reading a database with ASP.net and then feeding the results into javascript. Is it possible to do this directy... How can i pass the results of an ASP function to a javascript function?
Thanks...
|
|
|
|
|
What is it your attempting to accomplish? Look at the RegisterArrayDeclaration function, this might give you are starting point.
gekoscan wrote:
How can i pass the results of an ASP function to a javascript function
You can't. ASP is processed on the server, javascript is processed on the server. You would need to write the return value into the javascript before it gets rendered to the page.
string strBar = "function MyJavaFoo(" + MyFoo() + ")";
RegisterClientScriptBlock(strBar);
You get to figure out what is missing from above code.
|
|
|
|
|
gekoscan wrote:
How can i pass the results of an ASP function to a javascript function?
One important thing to remember in web development is that all you ever send back to the client from the server is text. Nothing more. The server does not care whether that text represents HTML, CSS, JavaScript or a soft pron film script.
How this helps you is that you do not have to do anything different when you want to send back JavaScript as opposed to HTML.
So you can have the following in your ASP:
...
<script language="javascript">
<%
For X = 0 to 100
Response.Write "var i" & X & " = " & (X * 100) & ";"
Next
%>
</script>
...
That will then send text back to the client which the browser will interpret as being a block of JavaScript which has 101 variables (named i1, i2, i3, etc.) and being assigned a value.
This technique once realised is quite powerful.
Paul Watson Bluegrass Cape Town, South Africa Colin Davies wrote:
...can you imagine a John Simmons stalker !
|
|
|
|
|
Hi CPians,
My IIS won't start and I get "HTTP 500 - Internal server error" always.
I got IIS 5.1 installed on Windows XP Pro with SP1.
Even http://localhost gives the same error. When I turned off the "Friendly error messages" option in IE, I get "Server Error - Bad URL"
I logged into my computer as an admin.
Default Web Site -> Properties -> Directory Security (tab) -> Edit (Anonymous Access and Authentication Control) -> cleared the checkbox (Anonymous Access)
Could you guys give me some points where to start to fix this problem?
BTW, I got Visual Studio .NET installed with C#.NET and installed ASP.NET (via aspnet_regiis.exe)
thanks
Kant
Sonork-100.28114
|
|
|
|
|
I'm trying to enumerate all <embed> tags in a page by using IHTMLDocument3::getElementsByTagName() and IHTMLElement::getElementsByTagName() (calling that on the <body> element), but both are returning an empty list. Is getElementsByTagName() just plain b0rked or is "embed" handled specially?
This is on IE6 if it matters.
--Mike--
"Adventure. Excitement. A Jedi craves not these things."
-- Silent Bob
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
|
ah...
/me makes a note to check the Collections table in MSDN next time, not just Attributes/Properties
--Mike--
"Adventure. Excitement. A Jedi craves not these things."
-- Silent Bob
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
No luck, embeds also returns an empty list. Any other ideas?
--Mike--
"Adventure. Excitement. A Jedi craves not these things."
-- Silent Bob
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Don't use the IHTMLDocument3 interface, it doesn't support the embeds collection, unlike IHTMLDocument2. (IHTMLDocument3 doesn't override IHTMLDocument2, but IDispatch instead).
This code works fine for me :
CComQIPtr<IHTMLDocument2> pHtmlDoc( GetHtmlDocument() );
if (!pHtmlDoc) return;
CComPtr<IHTMLElementCollection> p = NULL;
pHtmlDoc->get_embeds(&p);
long nb = 0;
p->get_length(&nb);
|
|
|
|
|
I am calling it through a IHTMLDocument2 pointer (otherwise, like you said, it wouldn't compile). *shrug* I'm doing:
MSHTML::IHTMLElementCollectionPtr pEmbedColl;
long l, lLen;
pEmbedColl = pDoc->embeds;
lLen = pEmbedColl->length; lLen is 0 no matter what.
--Mike--
"Adventure. Excitement. A Jedi craves not these things."
-- Silent Bob
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
This code is alright.
Make sure you access the DOM when it's ready for use. For instance, my code is executed in the OnDocumentComplete() event handler.
|
|
|
|
|
How to add the icon to be displayed in the web-browser's address bar. CP, Google etc does it......
|
|
|
|
|
1 - Create the icon that you want to use
2 - Name it 'favicon.ico'.
3 - Place it in the root of your website
That should be all you need to do.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
Unknown wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
|
|
|
|
|
no need to add any code/meta etc????
Should I add this in all the pages ... or pout it in a include file that spans throught my site??
|
|
|
|
|
SPS wrote:
no need to add any code/meta etc????
Should I add this in all the pages ... or pout it in a include file that spans throught my site??
Ray said it all. No meta data, no modification to your files, no IIS settings, no CSS, no JavaScript, no nothing. Just make the favicon.ico, put it in the root and hey presto.
On word of warning though: Favourite Icons may disapear after awhile as they are stored in the temporary internet files folder. IE unfortuantley does not re-download the file.
Paul Watson Bluegrass Cape Town, South Africa Colin Davies wrote:
...can you imagine a John Simmons stalker !
|
|
|
|