|
Hi there guys. The XML menus, that flyoutmenus if you go to www.microsoft.com/technet, can somebody tell me how they do that. I know they use XML and I did take alook at it. But I don't know how to do it in another website.There is also a file they use default.htc. I need help here please. I want to design a website that have the same flyoutmenus.
David
|
|
|
|
|
I am very new (a few days) to javascript but have many years of C/C++ background.
I have successfully used some COM controls that I wrote (all arguments were variants)
I would like to use some of the common controls in a web page. The target is only using IE and NT machines.
Can anyone point me to where I may get information on what methods with argument lists are usable from a javascript perspective. I have the MSDN library but am not being successful on how to format the calls so the method/property is supported. Below is a trivial example using the Tree Control (that does not work.)
Again I do not just want to make this work but understand what I can and cannot do.
Thanks Mike
<html>
<head>
<title>Menu</title>
</head>
<script language=javascript>
function LoadRoot()
{
var name = "Root";
var parent = null;
parent = Tree.InsertItem(name);
name = "c1";
Tree.InsertItem(name,parent);
name = "C2";
Tree.InsertItem(name,parent);
}
</script>
<body onLoad="LoadRoot();">
Test Menu
<OBJECT
ID="Tree"
CLASSID="CLSID:C74190B6-8589-11D1-B16A-00C0F0283628"
WIDTH=80
HEIGHT=200>
</OBJECT>
</body>
</html>
Michael A Barnhart
mabtech@swbell.net
|
|
|
|
|
http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm
For all your JavaScript reference needs!
Jason Jystad
Cito Technologies
www.citotech.net
Sonork ID 100.9918
>-------------------------------------------------<
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to one instruction that doesn't work.
>-------------------------------------------------<
|
|
|
|
|
I use a style specification for tag, that includes the definition for "border-right". In the cell with this specification I use italic font.
And, somehow, there are some layouts of IE window size with which the rigt border dissapears. I tested only under IE5. And I know for sure, that there is no such problem if the text is normal (not italic).
What to do?
|
|
|
|
|
Post the troublesome CSS code so we can take a look at it.
Jon Sagara
"After all is said and done, usually more is said than done." -- Unknown
|
|
|
|
|
td.borderright { border-right: 1 solid goldenrod }
...
Some textSome textIn some cases if the cell is not enough for the text to remain in one line my problem occurs.
Btw, why doesn't IE5 support dotted and other line styles? It's CSS1 as I know.
|
|
|
|
|
Hm, looks OK.
There are a number of bugs in IE 5.0 that I have run into, mostly odd things like this. If you try it in 5.5 and it goes away you may be hosed (not that 5.5 is less buggy, just has other bugs ). Of course NuttyScape doesn't support this bit of CSS anyway, so you can not test there. (though 6.2 is supposed to support this, I don't have a test copy installed)
Now on to the constructive advice.
(bet you didn't think I had any )
Try it like this:
td.borderright { border-style: solid; border-right-width: 1px; border-color: #DAA520; }
(#DAA520 = goldenrod, I always use hex color codes )
This means exactly the same thing, is compliant with CSS1, and should be compatible with IE 4+ Opera 5+ and NS 6+. (there are always 400 other ways to do something with CSS)
If you want only the right border on, make sure you add lines to set the other three borders to a width of 0px.
Also, you mentioned Italic text. If you add any font-family tags to your style, make sure it is the last item in the style specification. This is a specific bug I have managed to trace in IE 5.0, (others have mentioned it, so it is not just me). It makes no difference to other browsers, but IE 5.0 can have funky problems if the font-family setting is not the last setting in the style. I have gotten in the habit of putting all of my font css at the bottom of the list with the family tag last. Actually helps readability too!
By way of example, I would make a style class for a table cell with a 1 pixel goldenrod border on only the right side containing 12 point italic Verdana text like this:
TD.BorderRight {
border-style: solid;
border-top-width : 0px;
border-bottom-width : 0px;
border-left-width : 0px;
border-right-width: 1px;
border-color: #DAA520;
font-size: 12pt;
font-style: italic;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
}
I prefer the individual line items anyway, both because they are more readable and because I seem to have far fewer cross-browser problems with them than I do with the compound ones.
Good luck and I hope that helps!
Jason Jystad
Cito Technologies
www.citotech.net
Sonork ID 100.9918
>-------------------------------------------------<
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to one instruction that doesn't work.
>-------------------------------------------------<
|
|
|
|
|
Many thanks. That's just what I wanted to hear.
|
|
|
|
|
No problem!
Let me know if it does the trick. I pull whirly things with CSS all the time, so I am glad to help.
Hope that takes care of it for you.
Jason Jystad
Cito Technologies
www.citotech.net
Sonork ID 100.9918
>-------------------------------------------------<
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to one instruction that doesn't work.
>-------------------------------------------------<
|
|
|
|
|
Is it possible to post a link to the site you're working on?
|
|
|
|
|
No. Unfortunetly, it's not online yet.
|
|
|
|
|
I somewhat like the project managment features of VI and the ease used to develop on servers, though the thing that gets me is the fact I can never start a project on the root(http://myserver/) rather than http://myserver/myapp. Is there anyway(basically is it possible?) to start a project/webapplication directly on the root rather than appending it in either VI/VS.NET, or is that a limitation of these tools/FrontPage Extensions?
Insight either way is appreciated
|
|
|
|
|
Create a new project and type in the server name. Once connected, rather than creating a new project select the existing project radio button and choose root web from the drop down.
Dan
---
|
|
|
|
|
When applying a size to html form's input elements (type=text) I couldn't help but notice that Netscape (in all its glory) displayed the input boxes approx. twice as large as those displayed in IE.
A workaround to this is to apply a style to the form elements, and set the font-face to a fixed-width font (e.g. Courier). After doing this the size of my input elements was consistently the same for both IE and Netscape.
Martin Eising
|
|
|
|
|
Thanks for the tip!
Jon Sagara
"After all is said and done, usually more is said than done." -- Unknown
|
|
|
|
|
Thanks for that Martin. I'd love to know why it's only fixed-width fonts that work properly. Some dodgy programming methinks
cheers,
Chris Maunder (CodeProject)
|
|
|
|
|
Actually Chris, the answer to that is both yes and no.
There is a perfectly reasonable explanation why it works the way it does, but it is true that IE's way of accomodating it works better than NS's.
What happens is that a fixed width font has all of it's letters built on a "tile" of space that is exactly the same size for every letter. This makes calculating the width of the form element easy. It also makes them not look as nice, because the kerning and leading are all messed up.
Variable width fonts build each letter on a "tile" that incorporates just enough white space to make the letter look it's best, (providing it was well designed). Thus the font looks much better in most situations. This does mean that every letter is a different width though, making calculating the width of a form element difficult.
What NutScrape does, I believe, is take the largest letter in the base font and make the field long enough to accomodate the maximum possible length of the string. Simple, brute force, pessimistic, looks like sh*t.
What IE does, as far as I can tell, is to find the average width of a letter in the base font and calculate the display length of the field using that value. More elegant, looks better, but fields will sometimes scroll even if you set both the size and the maxlength values to the same number.
Try it sometime, make a form field with its size and maxlength the same value using a variable width font. Open the page up in IE, then hold down the "i" key until you run out of space. Delete all the i's and repeat using the "w" key. Now try it in NS. See what I mean?
Sorry if you knew all that, but I don't get to show off all that often and all you darn MFC programmers make me feel like a novice even though I have been at this for more than a decade.
Jason Jystad
Cito Technologies
www.citotech.net
Sonork ID 100.9918
>-------------------------------------------------<
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to one instruction that doesn't work.
>-------------------------------------------------<
|
|
|
|
|
Ah-ha! Mystery solved.
Thanks Jason.
cheers,
Chris Maunder (CodeProject)
|
|
|
|
|
Good going figuring this out!
If I may ask, how long did it take you to figure out?
I am fairly knowledgable about the arcane aspects of fonts and it still took me a couple of hours of head scratching before I thought of this and tried a fixed-width font.
Of course I had been up for 32 hours at that point, but that is no excuse. That is what we have caffeine for! MMMmmmMm caffeine, my old friend.
(http://www.road-to-health.com/rhcoffee.htm )
Jason Jystad
Cito Technologies
www.citotech.net
Sonork ID 100.9918
>-------------------------------------------------<
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to one instruction that doesn't work.
>-------------------------------------------------<
|
|
|
|
|
We have an ecommerce site using site server and were requested to create a unique order number. The number is not hard to create, but trying to insert it into the pipeline is proving to be a pain. If we don't put it in the pipeline then the chance of 2 querys done at the same time is slim, but still a chance. Creating the number in the pipeline is throwing troubles further down when the number is saved to the db, error server timing out. Anyway, if anyone knows anything about this situation please help!
chris tranchina
web developer
|
|
|
|
|
I welcome! I have problem of such plan. There is big article. The visitor by virtue of some reasons selects a part of the text. Whether somehow it is possible to learn with help DHTML, what was particularly allocated to make with this piece the certain action? If it is possible, in what browsers it will work?
|
|
|
|
|
I've been trying to work out how to do the same thing. AFAIK you can't - but if anyone has managed to do it PLEASE enlighten us!
cheers,
Chris Maunder (CodeProject)
|
|
|
|
|
Someone at another forum has advised me to use a method "select". I think it can't help me. May be, I am wrong...
|
|
|
|
|
What sort of software packages are out there to assist in creating a shopping cart and connecting to a merchant account?
|
|
|
|
|
More than you could shake several hundred sticks at.
I'll list a few here. Be warned that while some of them are good, I have not found one yet that I really like. Miva is probably the one I like best so far, but that is because I can modify the code, not because it is so great.
Miva Merchant
IIS Cart
Interchange
PerlShop
ASPCart
CoolCart
Those are the ones I can remember off the top of my head.
(It scares me, how many of those I can just recite)
Jason Jystad
Cito Technologies
www.citotech.net
>------------------------------------------------<
"Luckily," he went on, "you have come to exactly the right place with your interesting problem, for there is no such word as 'impossible' in my dictionary. In fact," he added, brandishing the abused book, "everything between 'herring' and 'marmalade' seems to be missing."
-- Dirk Gently (Douglas Adams)
>------------------------------------------------<
|
|
|
|