Hi,
I have to limit the size and weight of the image selected by the user. Instead of just showing a message box saying "Error, file must be maximum 100kb and maximum 500x500 pixels.", i would like to automatically resize the image to 500x500pixels and optimize it to 100kb.
Is this possible ...
Hi everyone,
There is a well known hack to use in stylesheet to replace max-height in internet explorer.
height:expression(this.scrollHeight > 100 ? "100px" : "auto");
When I use it on a DIV, there is no problem, but when I try to apply it to an IMG, internet explorer freezes in an infinite...
Hi everyone,
I got a strange bug with my program while trying to get the file list of an ftp directory. Just look at the code first:
FTP.Execute , "CD /images/"
Do
DoEvents
Sleep 150
Loop Until Not FTP.StillExecuting
FTP.Execute , "DIR"
Do
DoEvents
Sleep 150
Loop Until Not...
Well, i'm not sure its the same problem but i think it's just security settings, i guess i can't show an image preview from the client computer in IE7 whitout adding the page to Trusted Sites, it works fine when i do it.
Hi,
I have coded a little image preview before upload. The script show the picture the user selected on his computer before uploading it to the server.
The script used to work fine with IE6, but doesn't work anymore with IE7. This instruction is suppose to load the image in my variable...
Of course this was just a sample, because in my real page the style attribute will be replaced by a class and i would like to have the information sometimes displayed in a row, sometime displayed in a column, depending on which css sheet is loaded with the page.
Anyway i know now why it was not...
Hi everyone,
I readed some articles on the web on how to display DIV elements in a table format. All these articles said the same thing, that this code should display a table with a single line and 3 columns because display:table = <table>,
display:table-row = <tr>, and display:table-cell =...
Yea it's probably 20, but shouldn't i get the same problem if i write my cookies using vbscript on server-side ? Because i don't.
If I only write one cookie that contains all the values like "var1=val1&var2=val2&var3=val3..." that will work ? As long as I don't store 4k of data, which is more...
Hi,
at first sight, writing cookies with javascript seem easy, but in practice i got a weird bug.
In fact, cookies are correctly saved on client computer, but for some reason, when the number of cookies i wrote reach 18 (why 18 i really don't know, it is not always the same number), the next...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.