|
You can't copy from a password field. That is disabled for security reasons.
---
b { font-weight: normal; }
|
|
|
|
|
How to send Hexa messages and concatenate them with MNC(Mobile Network Code) and MCC(Mobile Country Code).What is the process for it?
|
|
|
|
|
hi there,
I have created a div with a position:absolute; attribute. Here is the declaration:
#pageheader {
background: #F0F0F0 url(img/default_headerback.jpg) no-repeat top left;
position:absolute;
top:0px;
left:0px;
width:600px;
height:300px;
border-top: solid 5px black;
border-bottom: solid 5px black;
clear:none;
}
Below this one, I've created another div, which should vertically start immediately below the above div top: 300px; . Problem is, IE displays the border inside the 300px height whereas IE seems to add the border to the height. The result is, the lower div overlaps the upper one by exactly 10px.
Is there a hack to it?
Thanks in advance!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
The correct way accordning to standard is to add the border outside the specified size.
If you use a doctype on your page IE will work in Standards Mode, and at least make an effort to follow the standards.
---
b { font-weight: normal; }
|
|
|
|
|
|
thanks, exactly what i was looking for.
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
how do you get it spo when you press enter in an asp panel it calls a function???
cheers
|
|
|
|
|
Hi,
I'm dynamically creating and elements for a table in JavaScript. I need to get the Index of a table cell when the user scrolls the table using Arrow keys?
I'm getting the key events but how to get the Index and Value?
How to focus on the particualr cell in a table when the user scrolls the table using arrow keys?
Pls help
Thanks
Ram
|
|
|
|
|
Hi everyone,
I have an aspx page, in this aspx page I have a drop down list, I want to set this drop down list to Read only so the user can't change the selected value,
I want to set this drop down list to Read only in Javascript and not using the code behind, what property should I use??
Thanks.
|
|
|
|
|
There is no read only property for the select element.
You can set the disabled property to true, which is similar to read only. The field will not be included when you post the form, though.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks, I used the disabled property.
Now I want to hide the first two elements in the drop down list, how can I do that using javascript.
thanks again.
|
|
|
|
|
In what way do you want to hide them? Do you want to remove them?
document.FormName.FieldName.options[1] = null;<br />
document.FormName.FieldName.options[0] = null;
---
b { font-weight: normal; }
|
|
|
|
|
Thanks Guffa but I don't want to remove them, depending on a radio button choice, I want to hide the first two elements. If the user select another radio button I want to show these 2 elements,
How can this be done in Javascript?
thanks again.
|
|
|
|
|
There is no way of hiding options. If you don't want them to apperar in the list you have to remove them from the options collection, and then add them again if needed.
---
b { font-weight: normal; }
|
|
|
|
|
Hi there, perhaps a good Samarathan out there could please help me to create the proper HTML code to force a cab file containing an ActiveX web component to download to the visitor's pc each and every time he/she visits the page.
I thus do not just want the cab to download if there are version changes or no prev. installation. I want it to download everytime. The reason for this behaviour is to prevent tampering/replacement of the ocx file that is transported in thecab file to the user. I need to be sure that everytime he visits the site, he gets a fresh copy of the cab file.
If this has to be done in PHP instead of regular HTML, it would also be fine.
I thank you all in advance.
Happy coding !
FX Sniper
|
|
|
|
|
Hi,
In my JSP pages,i'm using tags to position a table in a page.
This behaves differently on each browsers and also in PC's with different resolution. Pls help how to solve this.Code is:
<
|
|
|
|
|
In what way does it behave differently?
Make sure that you have a doctype on the page. Otherwise the browsers will actually make an effort to behave as differently as possible.
You are using non-standard properties like bgcolor and bordercolor. That won't work in all browsers. Use css for setting the appearence.
---
b { font-weight: normal; }
|
|
|
|
|
I'd like to know how to update the display of a control. In my currently project, I want to put a bar which is an image on top of a select box. I will use that image bar as a grip bar to drag and drop the select box. The width of the image should be the same as the select box.
The problem is I cannot get the width of the select box before it shows up. At the time the select box shows up, it is too late to set the width of the image.
Is there a work around for this problem? Can I get updated width information of the select box before it shows up.
Thanks a lot in advance.
|
|
|
|
|
Unless you specify the size of the select box, you can't determine it's size before it's displayed. The size will depend on the data displayed in the list, the font and size used to display the text and the text smoothing method used on the computer.
So, either you have to specify an exact size for the select box, or resize the image after the select box is displayed.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for your kindly reply. How can I modify the size of the image after the select box has been displayed? What kind event should I use to trigger the image resizing method? I tried to use the mouse key down to display the select box, and use mouse key up to get the updated select box width and resize the image to fit it. But that won't solve the problem. I really don't know what other event that I can use to solve this problem.
Thanks again.
|
|
|
|
|
You only need to leave the control back to the system so that it can make the redraw. Then you can check the size of the element you added.
Use:
window.setTimeout('someFunction();', 0);
to add a call to a function that will be called as soon as the elemment has been drawn. The 0 means that it should delay 0 ms, e.g. call the function as soon as possible.
---
b { font-weight: normal; }
|
|
|
|
|
I understand now. Thank you so much for your reply.
Best wishes to you.
|
|
|
|
|
Can someone who has worked with these two technologies tell me which is better. Pros and Cons... I know that ASP.Net is a newer technology, but that is all.
Thanks..
|
|
|
|
|
I work with both. I've used cold fusion for years, but am relying more and more on asp these days.
Cold fusion pros: The big one is consistancy. If you are given a server that runs cold fusion, you know exactly what is on it. While it is possible to develop custom cf tags, it is more common to just use the standard set of tags. The nice part about this is that if you develop something that you want to hand out to multiple people, you can be sure it will work across the board.
Cold fusion cons: $$$ Cold fusion server is expensive. If your site is hosted, the cost is passed along to the site owners. Therefore, a cold fusion enhanced site is more expensive to maintain.
ASP pros: A hell of a lot of support. If you shake a tree, an ASP developer will most likely fall out. This means if you have a problem, finding the answer is a whole lot easier. It also means there are many custom objects out there that you can add into your projects.
Furthermore, it is cheap. The asp engine is free if you are using IIS (or even personal web server for that matter).
Cons: Too many flavors. Let's say you are trying to produce something and you find documentation on how to do it on some random site. You copy the code and stick it on your site. You try running it and it doesn't work. Why? Because the other guy has been using some custom object that he hasn't documented. Assuming you are able to figure out what it is, you might still have to pay for this package, which increases your development cost or force you to start over and find a different way to do it.
There are other pros and cons of each, but that is what I focus on at least.
|
|
|
|
|
Great info.. Thanks...
Do you have any idea of the cost of the cold fusion server.
|
|
|
|