position

How to Fix IE6 Bug - position: absolute; & overflow: auto;

I made a Editable Combo box using the following code <asp:TextBox ID="textbox" runat="server" Width="75px" Style="position: absolute;" /> <asp:DropDownList ID="ddl" runat="server" Width="95px" AppendDataBoundItems="true"> <asp:ListItem Text="" /> </asp:DropDownList> And I create a javascript for onChange of the dropdown and show the s...

Allow certain characters in certain positions in text box (vb.net)

For example I only the second character in each line to be an x, while the 3nd to 10th character must be a hex digit. At the moment I use a Select Case, then check the position of the caret (using textbox.selectionstart) and see if the key being pressed is a "legal" character. Is there a better way of doing this as it slows down on larg...

How do I position a XUL Panel (Firefox) in the bottom right hand corner of the main window?

I am creating a Firefox extension that pops up growl-like notifications. Currently I am popping them up relative to a status bar icon. This is fine unless there are other status bar extensions installed that would make my icon not the rightmost element. How would I go about positioning it so that the notifications always start at the bot...

2 column layout in css without float,position absolute

Anybody any ideas how to achieve this I want this effect <table> <tr><td width=100></td><td width=100></td></tr> </table> I can do it with float, or position absolute, but can it be done without these two? ...

CSS: How to have position:absolute div inside a position:relative div not be cropped by an overflow:hidden on a container

I have 3 levels of div: (In green below) A top level div with overflow: hidden. This is because I want some content (not shown here) inside that box to cropped if it exceeds the size of the box. (In red below) Inside this, I have div with position: relative. The only use for this is for the next level. (In blue below) Finally a div I t...

Is it possible to catch mouse position outside the document?

I found that is possible to retrieve the mouse position in IE outside the document or even the browser window, by using "window.onblur" or "window.onfocusout" or something like that. Even in Firefox it gives you negative mouse coordinates in the onmouseout event handler if you let your mouse pointer go out of the viewport quickly. Can ...

2d game : fire at a moving target by predicting intersection of projectile and unit

Okay, this all takes place in a nice and simple 2D world... :) Suppose I have a static object A at position Apos, and a linearly moving object B at Bpos with bVelocity, and an ammo round with velocity Avelocity... How would I find out the angle that A has to shoot, to hit B, taking into account B's linear velocity and the speed of A's ...

XSL: Assigning the result of position() to a variable

I am trying to assign the position of an element like this: <xsl:variable name="offset" select="ancestor::myparent/position() * 8"/> I am trying to show the result of the calculation in the output, so using a selector is not enough. xsltproc generates the following error: XPath error : Invalid expression ancestor::myparent/position()...

fix position for uitoolbar (iphone sdk)

Hi all, I'm wondering if there's a possibility to set a fix position for a toolbar, for example: In my UIViewController I got an UITableView and an UIToolbar. If the table view have 50 rows, how can I set the toolbar is always at the bottom of the view, so that I don't have to scroll down first to get to the toolbar. The toolbar should...

WPF: How do I position the mouse cursor in code?

I am implementing the system menu (Restore, Move, Size...) on a borderless window and I want the mouse cursor to move to the center of the Window when size or move is selected. Ideally in VB but C# is fine as well. ...

jQuery getting element relative position

Hi, I have the following markup: <div id="selectable1"> <span class="drag">Some Text</span> <span class="drag">Some Text</span> <span class="drag">Some Text and <span class="drag">Some Other Text</span></span> </div> I need to create a function that will get the relative position of any span (nested or not) to the main parent - #selec...

Changing the position of AIR-window (in AS3)?

I created a simple transparent app for Adobe AIR in Flash. It has not chrome, so now I need to make it draggable. How could this be done? Thanks! ...

setting position of a control doesn't seem to work when scroll is 'moved' (c#, winforms)

Hi, Description of the problem: Create a 'custom control'. Set it's property AutoScroll to 'true'. Change it's bg-color to green. Create second 'custom control'. Change it's bg-color to red. On main form place first custom control In code create 20 instances of second control Add a button and in the button: In code set their position...

WPF: How can i scale to fit the content?

hi guys: It gets basicaly to this: I have a canvas container (x:name="Container" - to reffer later to), with some other controls(e.g. I have a Button 30x60 in size) and I want to scale the Container to fit the button, without having to resize anything. (just using scaleTransform) If I set a slider binded to the Container Scale, I can ...

How to find position number of a certain child element in a parent element using jQuery

Hi. I have a div containing several other divs containing an image. It looks smth like this <div id="parentHldr"> <div class="imgHldr"><img src="foo/bar.png" id="1"></div> <div class="imgHldr"><img src="foo/bar.png" id="2"></div> <div class="imgHldr"><img src="foo/bar.png" id="3"></div> <div class="imgHldr active"<img src="foo/bar....

How to find the position or location of string in given document

How to find the position or location of string in given document.I have one word document and i want to store all its words and word positions in database so thats why i need to find the position of the words. so please tell me how can i find position or location of word or string in given document. i intend to use vb.net or c# for a...

Position of elements in vector

I have several elements in a vector type that are read from cin and then i perfrom some calculations on the vector and it's order of elements gets changed. The problem is that I need to print the positions of the vector elements after the calculations. I don't know how to explain this well that's why i'll give an example: 10 1 100 1000 ...

iphone dev add cell text to the same position point on UIView

Hi, When i selected a cell, i want to add the text from the cell to the underlying UIView at the same position. So the text in the UIView should be at the same position as the text in the cell. I dont know how to map the cell origin to a UIView origin point. Anyone any hints? Ton. ...

jquery show div next to link tag

Can someone please help? I'm new to jquery and I'm stuck on something that seems too simple. Sorry if this is a repost but I couldn't find what I was looking for. I have 2 links on a page and as you hover over one of the links, you show a corresponding div next to the link. Like a dialog popup. Heres what I have, please let me know ...

How would I relatively position widgets on a web page with jQuery

Hello, I'm writing a web app that contains a web page that will be filled with (movable and draggable) widgets. Any clever ideas of how I could position them so they would be visible on all resolutions 1024+ and keep their relative distances the same both from the edge of the screen and from each other (although overlapping would obvious...