|
:thanx pmenefee for reply
im also glad if u show me how too do that..
i want to acces variable on 2 differnet pasges
i want to make a think like
"when using yahoo maibox when we r compsing a mail and click option
"Add edit attachment" seperate window is open and we make attachment on that page and when we click dione attachmanets apear on compose mail page" hope u will understand.
looking forward for ur reply
take care
|
|
|
|
|
I've just started looking at VBS as I'm beginning to dabble in ASP. While looking thru the docs about the MsgBox function, it occured to me that:
Dim Message
Message = "Ready to format C: drive. Click OK to begin"
MsgBox(Message, vbOKOnly + vbSystemModal)
may cause cardiac arrest in the moderately aware clerk. Is this correct? Will the MsgBox actually block all other applications until the victim clicks OK and accepts his/her doom? When I think of all the fun I could have been having at the hardware store, I deeply regret not looking at this long ago
Management, of course, will be unaffected, as they will blithely click on anything without reading or comprehending the message...
Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
|
|
|
|
|
Roger Wright wrote:
Will the MsgBox actually block all other applications until the victim clicks OK and accepts his/her doom?
Yes and no, the use of vbSystemModal has two options:
- Win16 systems - All applications are suspended
- Win32 systems - The messagebox will always remain on top, however other programs will continue to load/run.
HTH
Nick Parker
|
|
|
|
|
Darn
The SDK reference didn't mention that little difference... it kinda spoils the fun
Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
|
|
|
|
|
Roger Wright wrote:
The SDK reference didn't mention that little difference... it kinda spoils the fun
VB only allows it's little brother VBScript so much fun; that's just the way older brothers are.
Nick Parker
|
|
|
|
|
Hi,
I want some pages to have a "top line" with two search forms, going to separate pages. The top line should get a slightly different color. I have something like that in an include file:
<table bgcolor=...> <tr>
<td><a href="/">Home</a></td>
<td><form ...><input type="edit" ...> <button type=Submit"></form></td>
<td><form ...><input type="edit" ...> <button type=Submit"></form></td>
</tr></table>
The table has almost twice the required height, which looks plain ugly. I even tried to figure out howchris does it with the Search on the fromt page, but without success.
Any ideas?
TIA
Peter
<hr color="maroon"><small><i>We are ugly but we have the music </i> Leonhard Cohen [<a href="http://www.cherea.de/sighist.html" target="_blank">sighist</a>]</small>
|
|
|
|
|
What a mess when I open this up to reply
Have you tried specifying the margin and padding sizes in a style statement? How about adding a height attribute to the row or data elements?
Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
|
|
|
|
|
Try setting the margin-bottom and padding-bottom of the form to 0.
|
|
|
|
|
I fixed it with putting the tags outside of the - but your solution is much nicer. thank you!
We are ugly but we have the music Leonhard Cohen [sighist]
|
|
|
|
|
I am just starting to read up and tinker with CSS. Two different ways of including an external CSS file are mentioned -
<link rel="stylesheet" href="my.css">
@import url(my.css);
Which is the best method to use, either by standard or browser compatibility.
Also I am having a problem with the following simple CSS. I definitely had it working and then added some new features I read about and broke it. Took it back to the way it was and it don't work.
h1,h2,h3,h4,h5,h6,p { color:#4241FF; font-family:Verdana; }
h1 { font-size=18pt; font-weight:bold; }
h2 { font-size=12pt; font-style:italic; }
p { font-size=10pt; }
I seem to be getting the everything except the colour. Any idea what I am doing wrong?
Michael Martin
Australia
mjm68@tpg.com.au
"In Summer, I like to dance naked on the roof to celebrate the event of the temperature finally falling below 40C (usually about midnight). But the neighbors have lately taken up the habit of staying up late. And looking up, at times, from their dreary, pointless lives..."
- Roger Wright 15/05/2002
|
|
|
|
|
try
p
{
font-size : 10pt;
}
you have = signs where colons should be. About the import and the link. I tend to use the way of importing stylesheets. I haven't had to use the import( it is not fully supported in NS4.
HTH
"We tend to refer to our most barbaric and crapulous behavior as 'inhuman,' whereas, in point of fact, it is exactly human, definitively and quintessentially human, since no other creature habitually indulges in comparable atrocities."
~Tom Robbins
|
|
|
|
|
Michael Martin wrote:
@import url(my.css);
Which is the best method to use, either by standard or browser compatibility.
The @import way is a more recent invention and so is not supported by older browsers like Netscape 4.x.
However this is a good thing as you can then have two different style sheets, one for Netscape 4.x and one for more recent browsers. Netscape 4.x will ignore the @import line and so effectively ignore the more modern CSS file. Modern browsers will pick up both links, but if you place the @import after the link rel="stylesheet" href="my.css" line then the @import overrides the older one.
Useful stuff for browser compatibility problems.
So to answer your question: Both are perfectly acceptable, but really for now only use @import if you know what you are doing.
Michael Martin wrote:
seem to be getting the everything except the colour. Any idea what I am doing wrong?
Ditch the equal signs (font-size=18pt ) and go back to using the colon (font-size:18pt )
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
Paul Watson wrote:
The @import way is a more recent invention and so is not supported by older browsers like Netscape 4.x.
Great. I will start using this method as I am only targeting my own machine using IE 6.0 as I learn.
Paul Watson wrote:
So to answer your question: Both are perfectly acceptable, but really for now only use @import if you know what you are doing.
Damn. Maybe I should rethink my last paragraph.
Paul Watson wrote:
Ditch the equal signs (font-size=18pt) and go back to using the colon (font-size:18pt)
Moron. How did I get those ='s there when the example I am copying off has :'s.
Also after closer examination the colour and font are not appearing. It is as though the line
h1,h2,h3,h4,h5,h6,p { color:#4242FF; font-family:Verdana; } is not being recognised.
Michael Martin
Australia
mjm68@tpg.com.au
"In Summer, I like to dance naked on the roof to celebrate the event of the temperature finally falling below 40C (usually about midnight). But the neighbors have lately taken up the habit of staying up late. And looking up, at times, from their dreary, pointless lives..."
- Roger Wright 15/05/2002
|
|
|
|
|
Michael Martin wrote:
h1,h2,h3,h4,h5,h6,p { color:#4242FF; font-family:Verdana; }
Odd, I cut and paste that into a CSS file of mine and it works fine (does a blue colour.)
Email the full CSS file and the HTML which is referencing the CSS file and maybe I can see something else wrong with it.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
Paul Watson wrote:
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
Poor girl! What a terrible visual to have to bear...
Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
|
|
|
|
|
The best method is <link> . Remember if you start using XHTML that it must translate into <link /> , as it is an empty tag.
For the second part, change all the = signs to colons ( : ). Also, points (pt) is a bad unit to use for screen, because it is meant as a typographical percentage of inches to be displayed on paper or something like that. There was an article somewhere on this, but I seem to have lost it, so just take my word for it an always use pixels (px).
Well, there you are! Have fun!
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
I just copied your sample, stuck it betwixt a STYLE tag pair in the head section, replaced the = with : and tested it. It works perfectly in IE6.
Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
|
|
|
|
|
Roger Wright wrote:
I just copied your sample, stuck it betwixt a STYLE tag pair in the head section, replaced the = with : and tested it. It works perfectly in IE6.
I am replying to your post as it is the last in the thread and anyone reading through it will get the answer as they work their way down.
What I didn't include in my little CSS example were the inane comments I had included to remind me how to comment. According to the little booklet I am reading
// Are used for single line comments
/* */ Are used for multiple line comment blocks
Of course I was using the // style which thanks to Paul Watson I now know are not compatible with CSS. Changed to /* */ and all works like a bought one.
Michael Martin
Australia
mjm68@tpg.com.au
"In Summer, I like to dance naked on the roof to celebrate the event of the temperature finally falling below 40C (usually about midnight). But the neighbors have lately taken up the habit of staying up late. And looking up, at times, from their dreary, pointless lives..."
- Roger Wright 15/05/2002
|
|
|
|
|
A customer wanted a form to email him at home, so I banged out a script to do so. Much to my surprise, it worked the first time (I've never tried it before). In the script I use a CreateObject() function to generate a new Mail object, and when it's all assembled I use Mail.Send to cast it forth upon the ether. A nagging thought I'm having is, what happens to that Mail object after the message is sent? What is its lifetime? Should I follow the send command with a Set Mail = Nothing statement to ensure its release?
Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
|
|
|
|
|
It is always a good Idea to set your object to nothing when finished. In ASP unless otherwise set Objects have page scope. That is to say if you create the object on the page when the page is finished being used the objects will be cleaned up.
|
|
|
|
|
Steven Szelei wrote:
It is always a good Idea to set your object to nothing when finished.
That seemed likely, but VBS is new to me. Better to form good habits now, than to try to break bad ones later... Thanks for the info
Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
|
|
|
|
|
<joke>
Dim myObject
Set myObject = CreatObject("SomethingNeato")
myObject.CanDelete = False
myObject.Scope = ENOUGH_TO_CRASH_SYSTEM_REALLY_QUICK </joke>
Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311
"The height of your accomplishments will equal the depth of your convictions."
- William F. Scolavino
|
|
|
|
|
I am attempting to move my old asp code over to asp.net but have run into the following problem. Inside a class page I am trying to get the host address. The Request.UserHostAddress function works perfect in the aspx page but will not work in the vb class. This is because Request is part of the Page method which is not available to classes. The obvious work around is to pass in the address from the aspx page, but I would like to know if there is a better way this could be done. I appreciate any help that can be provided.
Thanks
Jason
Jason W.
|
|
|
|
|
Try:
HttpContext.Current.Request.UserHostAddress
|
|
|
|
|
Why do you continue to ask PHP questions in a forum about HTML/ASP/ASP.NET?
You might get a better response by finding a PHP forum.
|
|
|
|