|
Firefox will... sorta.
Rather, it won't actually draw a border smaller than 1 pixel, but it will draw adjacent .5px borders as 1px, so somewhere it's keeping track.
blah blah
[Edit: and apparently, it doesn't even do that when in Quirks mode, so i can't properly demo this on CP... ]
But who is the king of all of these folks?
|
|
|
|
|
Shog9 wrote: but it will draw adjacent .5px borders as 1px
That's sort of what IE does in tables with the "collapse" style but you can't actually draw half a pixel. I mean there is no support for that at the device level right? - still mildly confused -
led mike
|
|
|
|
|
led mike wrote: I mean there is no support for that at the device level right? - still mildly confused -
Well, it depends on how you think about it. If you're zooming in on a document, for instance, you might well have "pixels" rendering as multiple device pixels. You could conceivably also render a 1.5px black horizontal line on a white background as a 1px black line, with a 1px gray line above it. That example would probably just end up looking blurry though.
But who is the king of all of these folks?
|
|
|
|
|
Shog9 wrote: Well, it depends on how you think about it.
You mean like if you think about it like "I'm flying in an airplane therefore gravity must have ceased to exist"?
Yeah that's what I thought. I could stand on my head and do a tap dance too but you still can't draw half a pixel.
I eat my peas with honey.
I've done it all my life.
It makes the peas taste funny.
But it keeps them on my knife.
led mike - peas out
|
|
|
|
|
led mike wrote: You mean like if you think about it like "I'm flying in an airplane therefore gravity must have ceased to exist"?
More along the lines of, "I need this vehicle to travel at 15 Miles Per Day, even when it's on Mars where days are longer". Your reference point can change, and you may not want your results to change with it. This works both ways; for instance: if you print a web page, you almost certainly don't want 1px to equal 1 dot on the page.
And FWIW, on an LCD display you actually can do sub-pixel rendering by taking into account the layout of colors in each pixel - this is how ClearType operates.
But who is the king of all of these folks?
|
|
|
|
|
Shog9 wrote: this is how ClearType operates.
From Wikipedia: so the red bold text refers to the "device as defined by the API" that you as a developer have access to through the OS or software layer you are using. It appears that currently we don't have access to the subpixel capabilities but since they are in three colors, even if you do you still can't draw half a pixel. Thanks though for discussing this with me, prompting me to do some reading rather than just typing and running my mouth like I usually do!
Wikipedia snips
--------------
Like most other types of subpixel rendering, ClearType actually involves a compromise, sacrificing one aspect of image quality (color or chrominance detail) for another (light and dark or luminance detail). The compromise improves text appearance because when viewing black and white text, luminance detail is more important than chrominance. The compromise works because it takes advantage of certain peculiarities of human vision.
and
Normally, the software in a computer treats the computer’s display screen as a rectangular array of square, indivisible pixels, each of which has an intensity and color that are determined by the blending of three primary colors: red, green, and blue. However, actual display hardware usually implements each pixel as a group of three adjacent, independent subpixels, each of which displays a different primary color. Thus, on a real computer display, each pixel is actually composed of separate red, green, and blue subpixels. For example, if a flat-panel display is examined under a magnifying glass, the pixels may appear as follows:
|
|
|
|
|
You are correct. A pixel is the smallest rendering point at the device level. You can't technically draw half a pixel. But there are ways to make it look and feel as if you had, but it would look blurry without a high resolution screen.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi
In my application i have *.swf and image files for Advertisements.I have to mantain Click Through rate (CTR), For that I have to made this file clickables. In case of Image file i used anchor tag but for swf files i have used object tag but not able to make it clickable.
Thaks in Advance
|
|
|
|
|
You can't use anchor tag. The link needs to be embedded in the swf file.
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
Most frustrating. The format of the website cannot be changed:
I have 5 web pages each with a form. These page forms have content the user can edit & redit.On the top of each page is a menu bar affording the user to toggle back and forth to any of the 5 pages viewing the respective content. Now say the user toggles to page 2, makes changes to the content, via a RadEditor, toggles to page 5, then retoggles to page 2 to see the changes he just made.
Here's the delema: During these edits/redits, the revised content CANNOT be posted as an update to the database. Only AFTER the user is satisfied with all the edits made, does he click button 6 for "Update All My Changes".
I cannot have one page with all the form elements listed via visible/not visible panels. I cannot use session objects, or cookies - there is just too much data. I heard about the cache object / application object but I do not know if it plays a part here. Also note there could be thousands of concurrent users taking this initially identical data content then editing it to each's own unique wants.
So in short, how can I have several editable web pages of form elements that allow the user to see the changes they made, even after clicking off and then back to that form without using a database update or items mentioned above. Remember, They will not let me hit the database until aff the edits on the 5 web page forms are complete. Thanks.
Update:
I have reevaluated the entire process.
I've decided to utilize the file stream object and have them edit their entire page.
Now, I have to figure out how to reiterate thru these modified forms to place the data into the db.
modified on Tuesday, February 26, 2008 4:37 PM
|
|
|
|
|
Why not have some tables in the database for inprogress changes. If they cancel then changes are deleted, if they submit the changes are copied to the real tables.
|
|
|
|
|
Why are posting this in all forums???
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
I just assumed he hated me, personally. I suppose it's possible he hates you too...
---- ...the wind blows over it and it is gone, and its place remembers it no more...
|
|
|
|
|
No, it's me he hates. I've been giving him the same range of answers for days.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Heh.
But who is the king of all of these folks?
|
|
|
|
|
I am sending login credentials through ActiveX Control developed in VC++ 6.0 to Server side which is developed in Delphi
//Client side struct in VC++ 6.0
typedef struct
{
char User[41];
char Password[41];
char ClientVersion[41];
char EndCode[2];
}TNetConnectCheck;
//Server side struct in Delphi6
TNetConnectCheck = record
UserName : string[40];
Password : string[40];
ClientVersion : String[40]; // Added by Ravi on : 03/08/2006
EndCode : array[0..1] of Char;
end;
but, I am getting some junk characters in the strings at serverside eg. User name like 'CrazyToLearn#0...#0'
I want to send the packet which is having the length 125 to server with exact 'CrazyToLearn' not with any padding 0 or junk characters.
I tried all the trims, dynamic char array but cant solve the problem.
I dont have to change code at server side,whatever we want to modify , its only at client side.
Please instant help will be really appreciated...
THANX
CraZyToLearn
|
|
|
|
|
Hi,
How do I capture an event of a button? I have a save and a cancel button on my page. When the user clicks on a button I need to know with an alert which button was clicked.
How would I do something like this?
Thanks
Brendan
|
|
|
|
|
onclick="alert('this is the save button')"
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
No I need ONE function that checks for the event, I'm not going to code an onclick for everything, and I DID think of the onclick (which every one knows about).
|
|
|
|
|
I don't do JavaScript, but I think you can write functions that each button calls... I'd look into that.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Code one function and set the onclick attribute to that function. Otherwise, you can include script before any of your buttons, that modifies the DOM for those buttons and adds the attribute.
|
|
|
|
|
You can get server control id through JavaScript in this fashion:
document.getElementById('<%=Test.ClientID%>').value;
where Test is the control name.
I hope this is what you are looking for.
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
Hello,
We have a webserivce which is used to Import data to database. The user consume it and pass the XML as string. The size of the XML will be greater then 7 mb... . There are two type of error appears when we test this webservice.
And the user may use it multiple times depend on the number of files i.e this web service can be called in a loop.
Sample code of the consumer is as below:
using (StreamReader rdr = File.OpenText(@subPath))
{
stringXML = rdr.ReadToEnd();
string ret = A.InsertDMFProductData(stringXML); // call to a web method
Response.Write(ret);
}
Below are the three different errors:
1. The underlying connection was closed: An unexpected error occurred ...
2. System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. --->
System.Web.HttpException: Maximum request length exceeded ...
3. System.Net.WebException was unhandled by user code
Message="The operation has timed out"
Source="System.Web.Services"
I have tried placing this code in the consumer and web service Web.config file
<httpruntime maxrequestlength="2097150" executiontimeout="3600">
Could you please suggest how can we resolve this issue.
Regards,
Pavas
|
|
|
|
|
Please Try
1) Use BinaryFormatter insted of XMLFormatter
2) Set in web config file of Webservice
httpRuntime maxRequestLength="2097150"
Hope this helps.
Develop2Program & Program2Develop
|
|
|
|
|
How "BinaryFormatter" will be in use. We are passing a XML as string to the web service. And webservice then read the String and process it.
Do you mean to say we need to send the binary instead of String.
Regards,
Pavas
|
|
|
|