html

Grid layout using Javascript for a calculator

Can someone tell me the best way to use Grid layout to set the buttons of my Calculator ...

given the html content, find out the height of the page for the given width,before rending the page...

Hi, i am interested in finding out the height for a given width,taken by the webpage for the given HTML content. Ex.say given html content is, < html> < body> < h6>My First Heading< /h6> < p>My first paragraph.... ... ....< /p> < /body> < /html> ======================================== How can i find out the height the webpage...

Strip anchors down to their contents, only if the anchor's URL contains...

Does anyone know a regex function in PHP to strip an anchor of its contents, only if the anchor's href attribute contains specific text? For example, I have an HTML page and there are links throughout. But I want to strip only the anchors that contain "yahoo" in the URL. So <a href="http://pages.yahoo.com/page1"&gt;Example page</a> woul...

Positioning one div to the right of another

Hi I have the following html and css. But what I can't figure out is how to have the tabs div at the right of the main div. So that they stick out the right like bookmarks. .main { -moz-border-radius:10px; height: 75%; width: 60%; position: absolute; top: 15%; left: 20%; right: auto; } .tabs { width: 5...

center text in div

<div> <div class="left"> <div align="center" class="node"> <div class="nodeText"> <h2 >test</h2> </div> <div class="node"> <h2>test</h2> </div> <div class="node"> <h2>test</h2> </div> <div> I need to center text in div nothing seems to work .left { float:left; width:200px; border:solid 1px ...

How can I prevent one div from overlapping another on resize?

Here's an example: http://la.truxmap.com/truckpage?id=coolhaus When I make the browser window narrower from the right hand side, the recent tweets div will go underneath the container div. i want to make it so that the recent tweets div can go no further left than the right hand border of the container div. Ive been trying to figure ...

jQuery Single File Upload using HTML Input within a Dialog Boxes

Is there a simple way to upload a single file through HTML input type file with JQuery UI's dialog box using $.post? Hope this makes sense... ...

Multiple datepicker problem with same ID

hi, here is my problem: <input type="text" class="datepick1" id="date" /> <input type="text" class="datepick2" id="date" /> <input type="text" class="datepick3" id="date" /> then i apply datepicker on dom (by classname) $('.datepick1').datepicker(); $('.datepick2').datepicker(); $('.datepick3').datepicker(); => the three dom have d...

Drop Down list in PHP

In my application am submiting my form by using post for a php page. <form method="post"> <select name="txtplace"> <option value="1">ajith</option> </select> </form> here when i am try to get the value of my dropdown its only getting 1.How can i get ajith ...

How to get horizontal menu to go to left when it's too big

Hello all, I've got a horizontal menu on my website: http://www.alcmariavictrix.nl When i browse it in small browsers (IPhone), the horizontal menu on top is screwed. What i want to perform is get that horizontal menu to the left when the browser can't display it all in one line. Does anyone know how to do this? example: The right wa...

Search dir using wildcard string, return filename, and loop.

Hello all, I'm having some problems, and looking for some help. I'm trying to create a photo gallery in javascript, that will be able to 'update' it's self automatically. I need to be able to search a directory, and grab a file with a specific prefix. I need to output the followng HTML code: <li><a href="images/resize_FILENAME.ext"...

HTML Element Not Recognised in Code-Behind

Hi Guys I just wrote this into my WebForms .aspx: <span id="GenerateChartButton" runat="server"></span> I went to the code-behind, and typed this: this.GenerateChartButton and it's not recognising that I added the span to the page. Is there something I need to do to make this happen? I have been working in MVC lately, so I haven't...

How to change the width of displayed text nested in a div?

Hello, Imagine I have the following code (simplified regarding my real context of course): <div id="box" style="width: 120px;" onmouseover="this.style.width='200px'" onmouseout="this.style.width='120px'"> <div>A label</div> <div>Another label</div> <div>Another label, but a longer label</div> </div> What I want to achieve...

how to get Horizontal menu go up, it overlaps the header image now

another question related to my previous question My horizontal menu also goes down a few pixels on my iPhone see: wrong on the IPhone Right on the comp Does anyone know how to fix this? :) link is here: Alcmaria home page ...

Why does bold monoface shift vertically on Windows?

In Firefox 3.6, IE7 and Opera 10 on Windows, this HTML has an odd behavior: <html><head></head> <style> span { font-family: monospace; background-color: green; } span.b { font-weight: bold; } </style> <body> <span>Text</span><span class="b">Text</span><span>Text</span> </body> </html> The bold span in the middle is shifted dow...

Adding data dynamically to a html page

In a htmlpage using jquery or javascript how can the following be achieved? User types in a question in a textarea and press on enter button ,then the same question should be displayed dynamically in the page below the textarea and the user can enter as many questions. And when the user is done the page is submitted through a submit ...

overlong image header, but how to only show horizontal scrollbar on body content?

hi, I have a 4000px width image slap on the header of my site. for now, the way I hide the horizontal browser scrollbar is with this: html { overflow-x: hidden; } Unfortunately that will make the horizontal scrollbar never appear. I would the browser scrollbar to appear when the main content of my site is hidden from view. Wha...

Reset Java Applet on page reload

I need to quit firefox and restart it in order for the applet to be refreshed... its anoying since i'm still programming it an the class files changes... am i missing some codes which makes it unable to refresh the applet and still take the one from the cache??? So I have a .jar applet in my website, a simulation game that spawns army w...

Python: For loop problem

I have a PSP page with html embedded. I need to place another for loop so i can insert another %s next to background-color: which will instert a appropriate colour to colour in the html table. For example i need to insert for z in colours so it can loop over the colours list and insert the correct colour. Where ever i try to insert the ...

Help needed in Javascript + Image + HREF

Hi <a href="#"><img src="logo.gif" onClick="alert('hi')"/></a> In the above code, I am appending a javascript onclick method to the image tag. When I click the image once and I press back, it should go back to the page it came from. Instead its staying on the same page. Is there any way I can avoid that? (probably set something else ...