|
Hi...
There are some differences between your code and mine...
Mine is general, you don't have to maintain a root-path.
And it is a little easier to add events and styles to the elements in my code.
About the page load, you don't need to worry; it is a lot faster then the web browsers are rendering the page.
However… I have looked into making your page not using tables. Well it is possible but not with the exact look... There are differences between how tables (and table-cells) behaves and how div and span elements behave.
Here are some of them.
A table cell always fills out the rest of the cell if the table has a size and the rest of the cells have size. That is currently not possible using CSS. (Quite annoying actually).
It is not possible to align a span or div between each other in the way cells are aligned to each other.
A span or div does not change size like a table and cells changes size.
So, if you want this very dynamic behavior of changing size you are stuck to table.
However, I have made a little recoding of your page. You will find it here:
http://www.olgerfelt.se/MonkeyCode/Monkey.zip[^]
Note also that you have to replace the corner image to get the look you want.
/Mattias
|
|
|
|
|
Hi, again... corrected some small fuzzes... new version is downloadable...
/M
|
|
|
|
|
First, thank you, thank you, thank you, for taking the time to work on this and showing me something new. I really appreciate it.
I have been looking at it, and working with your first example, and just now looked at your second example. I'm trying to work out more futzes, and will get back with you on the results shortly. One thing I have noticed is that on your revision the corner jpg does not show up in Firefox, although I see Explorer presents yours very nicely. I'll explore this more deeply in a bit.
David
|
|
|
|
|
David O`Neil wrote:
One thing I have noticed is that on your revision the corner jpg does not show up in Firefox, although I see Explorer presents yours very nicely.
You can count with that IE is doing wrong and FF is correct...
/M
|
|
|
|
|
David O`Neil wrote:
One thing I have noticed is that on your revision the corner jpg does not show up in Firefox, although I see Explorer presents yours very nicely.
You can count with that IE is doing wrong and FF is correct...
/M
|
|
|
|
|
This is what I got so far. My back hurts, my stomach is upset, and I'm otherwise very tired - all from working on this problem too hard. What I have works in Firefox, but not quite right in IE... Grrrrrr..... I'm going to take a nap!
Note that when the page is made narrow, the top words stay where you would expect them to stay. That was a big issue I had with part of your approach that absolute positioning seemed to fix.
David
|
|
|
|
|
Well,... almost. I've updated that last link again, but I am getting to issues that I can't figure out how to overcome.
The bottom footer: I have left it tucked inside the ContentContainer division, because if I don't, I can't get it even close to being below the ContentContainer material if the page becomes so long that the right scrollbar appears.
Also, my best efforts (the way I left it) resulted in the page working beautifully in Firefox, but the bottom scrollbar activates itself in IE, even though there is _nothing_ to the right of the screen! I believe this is because the ContentContainer's left margin is 120px, combined with a width of 100%. This also makes it so that the screen content doesn't wrap properly in IE (but it works wonderfully in Firefox, as I said).
Any ideas how to place the footer below the ContentContainer? Any idea how to get rid of the bottom scrollbar in IE without blowing everything else up?
I would love to have my site as clean as possible, but I'm beginning to suspect that it is just too much work to get this complicated of a style going.
Thanks,
David
(ps - The more I look at your JavaScript, the more I like it. Thanks.)
(pps - Even though Firefox renders it nicely, it does strange things when you highlight text by dragging the mouse over it. IE is much more predictable in that regard.)
|
|
|
|
|
12:32 am, CST: I'm giving up? Reposted best code so far in order to accomplish footer. Used a table. (Attempted it using only divs many, many times.) Gnnn. In addition, the solution appears different between Firefox and IE. In this case, I believe IE is correct for once.
David
|
|
|
|
|
hi, I am too tired to understand your first problem now, but I understand second one perfectly - I've run exactly to same problem. I've solved it with full path. And yes, it's ASP.NET solution, so I have base URI in config file. I think that best solution would be if HTML base tag could be applied localy. That's not the case, and convince W3C would take some time Nah.. I've just looked at your JS - basicaly same idea as mine.
btw you can use some ideas from http://dnhsoftware.org/[^], if you like the layout. Not a single misused table there!
David
|
|
|
|
|
i have uploaled my exe on the web server of our private net. now i want that whenever someone tries to download my exe, a pop-up box should come up which will ask for the license key. once the licence key is validated, only then the download should start. how do i implement it?
Secondly since the exe will be hosted on intranet, so whenever someone tries to download my exe, i need to know the IP address of the system which is trying to download it, check whether its a valid internal address and only then ask for licence input. how do i implement it?
|
|
|
|
|
Hi:
Regarding your first query, you can implement a login like script and only after validation of license, you can Response.Redirect to the EXE or Stream the EXE with appropriate content-type set.
Regarding your second query, you can configure at the server level instead of validation of network IPs in ASP since it would be processor intensive operation.
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
i think i can handle the first part of the query.
now, let me re-phrase my second requirement. i want that everytime my EXE starts it should first validate with the server. how do i do? any sample code?
|
|
|
|
|
Basically in the client workstation, each time the EXE is launched you want to check with the server.
Cool. You can have a Web Service exposed through your webserver and your application can contact the same.
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
You have written:
You can have a Web Service exposed through your webserver and your application can contact the same
But how do i do? please help out. some sample code? or just some idea how will my application contact the server? what sort of communication is needed?
|
|
|
|
|
well, i tried to put an executable on a web page so that it can be downloaded.
the code was CLICK HERE TO DOWNLOAD THE EXE FILE
The code worked when i put the web page on apache web server. but its simply not working for IIS. can anyone point me out where the problem is?
|
|
|
|
|
Have you tried putting it in a zip ? That way it will be smaller, for a start.
Why is it not working ( that is, what is it not doing ) ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
ya, its in zipped format.
by not working i mean that the code < a href ="myexe/Setup.exe" > < b > CLICK HERE TO
DOWNLOAD CAIR PERSONAL FIREWALL < /b >< /a > is working fine when i put this web page on a apache web server.(its downloading the file). but when i put this web page on IIS server, it does not download. its tries and finally times out
|
|
|
|
|
Regarding the timeout, ensure that the IIS does not try executing it. Execute permissions should be turned off otherwise, IIS will try to execute the DLL/EXE and similar types.
I think as goes the previous discussion, try with a zipped version, to save bandwidth over the network pipe.
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
thanks.. i had given execute permission for EXE. i have configured it properly and its running now
|
|
|
|
|
Go to the MIME headers in the IIS Manager of the website and add .exe files to be downloaded. This should do the trick
|
|
|
|
|
HELP!! I need a HTML code that I can use on Yahoo Email for putting a Picture(.gif) in the Signature. Any Help would be GREATLY Appreciated
|
|
|
|
|
If a standard img tag won't work, then nothing will.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
<img src="Your Path"/>
|
|
|
|
|
Ensure that Yahoo Email supports HTML Email Signatures and then paste the img tag
BTW, you need to upload that IMG file somewhere out on hosting servers. Is'nt it? Did you check whether your host supports remote loading of files?
If not, you may need to check out some Image Hosting servers?
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
I originally posted this on the C++ forum here, but didn't get any response, so I'm trying here ... BTW, I'm using Visual C++ 7 with MFC, which seems to be part of my problem:
A project I'm working on has me updating some app generated e-mail code (that used Simple MAPI) so that it can send image attachments that show up inline as part of an html message instead of simply as attachments. I used CDO for this, which worked great once I could finally figure out how it all worked (worst part is most of the MSDN samples were usually missing one key component to get it to work ... grr). I'm almost done, except for one little problem. What I want to do is open the generated e-mail up with the default e-mail program, to allow the user to change the message as they want and put in recipients. But, using the IMessage's Send function, the call will fail unless there is a recipient specified ... in other words, it will only send the message silently, without user interaction.
With simple MAPI, I can simply call SendMail with the MAPI_LOGON_UI|MAPI_DIALOG flags, and it opens up the e-mail in the e-mail client. This works great, and is what the old code used to do. Too bad I can't use this function with the IMessage message.
From what I can see from sample source and other documentation, with pretty much any other language supported by Microsoft, the Send function I'm calling has a ShowDialog parameter that allows you to pop-up the dialog like I want it to (I'm so sick of seeing VB examples like this I could just puke). Unfortunately, this function is not available with C++, it only has the one version that takes no parameters.
One line of thought I had was to save the email out as a temporary file, then send open it with a shell command .. but that won't work quite right either, the generated e-mail can be saved as a .eml file, which opens up in Outlook Express ... not the default e-mail program, and even that doesn't quite work the way I intend either.
I've been searching through MSDN and the web for over a day now, and because the functionality is there for other languages, I know there has to be a setting or field I can set to allow this ... but I can't find anything. Anyone go through something similar, or have some other place I can look?
-----
In the land of the blind, the one eyed man is king.
|
|
|
|