|
thanx for the answer
I allready have a windows that is open, I want to change som of the attributes off this window... I have found these commands
self.resizeTo(600,300)
scroll =no
What I am looking for is a way to remove status line and toolbars, I want a plane window
Spaz
|
|
|
|
|
You can do this:
window.statusbar.visible = false;
window.toolbar.visible = false;
The only problem is that this script will only work with Netscape 4+. IE doesn't have a window object for either the status bar or the tool bar.
|
|
|
|
|
Asp.net
I have a user control, which mimics a keyboard. When the user control is closed, the text entered (textmode = password) is copied to a textbox (textmode = password) on the parent. I receive no errors, but the data is not copied.
This works ok if the parent textbox is not a password field.
Is there a restriction on copying text to a password field, is there an alternative way of doing this?
Clueless Novice
|
|
|
|
|
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.
|
|
|
|