html

Problems with textarea focus

My textarea is behaving very strange, when I click inside it .. the cursor appears there when I click, if I click on the middle of the textarea it appears there, and I'd like it to appear on the beginning wherever I click inside, like here on SO when asking question, wherever you click inside textarea it takes your cursor to the topmost ...

How to change the CSS of entire page/website on click?

Is it possible to have 3-4 CSS on a page, and then on any event, say click, change the css for entire webpage. This way we can give our user the ability to change the theme. I know we can change the css of an element by: $("#myElementID").removeClass("class1").addClass("class2"); ...

Container div ignores height of floated elements

Ok, so this seems like a really silly problem but I can't get my container div to inherit the height of the floated elements inside of it. Since I need to center the container div, I can't use float to fix this problem. Here is my css: #container { margin: 0 auto; width: 1000px; border-left: 1px solid #f1f1f1; border-right: 1px solid #f...

How to send Data from HTML Form to Flash SWF?

So I have a html form. I need to send its data to flash on submit buttom push. How to du such thing? We have this HTML form <form> First name: <input type="text" name="firstname" /> <br /> Last name: <input type="text" name="lastname" /> </form> We want ON Form items values change to recive tham in Flash app (Via JS for example) ...

Strange Rendering in Firefox

I've just noticed when loading my client's page (http://habbopfm.com/) in Firefox, that it renders what looks like a rectangle is pushed down a few pixels. It's difficult to describe, but imagine you took a screenshot of the page, opened it in Photoshop, selected a rectangle and moved it down a bit. IE and Safari don't appear to do thi...

HTML/CSS - Input [Text] How to disable the browser from offering suggestings in the Dropdown?

I'm building an autosuggest search, like apple's spotlight... and want to disable the browser from offering text suggestions under the input box. I can't remember if that's an html or css setting and can't find it. Anyone remember? ...

GET request in AJAX-retrieved HTML

There is some HTML code which appears on the page as the result of AJAX request/response. This HTML contains GET requests to another php script. Links containing this requests are not working while "real" HTML (added on the page manually) works normally. When I open the page source with Ctrl+U I see empty div's (but they actually have ...

Black outline around map polygons (IE)

This only happens in some IE's. Here: http://animactions.ca/Animactions/volet_entreprise.php You may notice that when you click and drag on one of the circles, you will get something similar to this: http://img534.imageshack.us/img534/7578/errorra.png I cannot figure it out. Here is my image map: <p class="style2"> <map id="FPMap0" ...

Why isn't my submit button centered?

For some reason my submit button isn't centered. http://prime.programming-designs.com/test_forum/viewboard.php?board=0 #submitbutton{ margin: auto; border: 1px solid #DBFEF8; background-color: #DBFEF8; color: #000000; margin-top: 5px; width: 100px; height: 20px; } here's the html. <form method=post action=add_thread.php?board=<?...

Line appears on paper each time HTML file is printed

My application builds and prints HTML reports using AxWebBrowser.ExecWb method. Lately each time a report is printed a thin horizontal line is printed across it. It's not supposed to be there, it doesn't appear in any preview (Word, browser), but it's always there on the paper, always at the same absolute location and regardless of the p...

Iframe contents not accessible from a page in different domain

Need some help from javascript gurus. I have one page where http://www.google.com/finance/converter is embedded inside IFrame. I am able to get the event notification whenever Google Finance page loads. Now problem is this that contents of this page is not accessible through javascript. It seems to be some security issue (firebug noti...

scrollable tab bar widget solution

I have a web page that I use to update a fairly complex data structure. The page itself has lots of information, so I developed some simple Tab-page control, with plain html. Each tab is a different page, so when the user click on a tab a post is issued to the new page. Fairly simply. The problem is that the page has about 10 tabs, s...

HTML Form input textbox not accepting special characters

Hello, There seems to be a problem, where i can't display the complete value in a html form text input box. $title = "Stacey's Mom"; This is the html code I used to show the value. Title: This returns the value in textbox as "Stacey". Samething happens when "," or "'" or "/" occurs in the text. How can I show the entire text in th...

How can I redirect to a plain html page from a zend_controller controlled page?

I want to link to a plain html page from a zend_controller controlled page. I have no idea how to do this.I have tried with 'redirect(site/somedir/some.html)' but, of course, that doesn't work. thank you the html file is located in the public directory of the site = zf-site/public ...

html scrollable tab bar - make a td continue on the next row when it overflows the screen

What I'm trying to achieve is a scrollable tab-bar. I have a web page with multiple tabs. The "tab" control it's just an html table, with a single row, in which each tab is a td. The page has way over 10 tabs, an the tabs no longer fit in the screen. I'd like to have the tabs scroll, or at least continue on the following row (somethi...

how to display an image inside <img> tag always in full dimension

I've an img element with dynamically changing image. I always want to show this image in its full dimension. So, I think, I've to dynamically change width and height attributes in img tag. How can I do this in php or javascript? ...

Client side html markdown conversion

Hello, I've been trying to create a client side editor which allows the end user to create content in html or markdown. The user has two tabs for switching between the two. I managed to find some javascript that converts markdown to html, so if a user has been writing markdown and switches to the html tab, the html equivilant is shown. I...

Struggling with ASP.NET MVC auto-scaffolder template

I'm trying to write an auto-scaffolder template for Index views. I'd like to be able to pass in a collection of models or view-models (e.g., IQueryable<MyViewModel>) and get back an HTML table that uses the DisplayName attribute for the headings (th elements) and Html.Display(propertyName) for the cells (td elements). Each row should co...

Changing the title of jQuery-UI dialog-box with in another dialog-box's function...

Why doesn't doesn't the second jQuery-UI dialog box title change when popped. The first dialog box I change the title of the box with using the following .attr("title", "Confirm") -- it change the title of the first box to 'Confirm', like it should have. Now when the second box pops up it should change the title to 'Message' since did th...

clear html webpage?

i am currently developing a crawler that crawls all links on the web and displays them in the web browser (and saving it of course). but after some hours there will be a huge list displayed on the web browser and i want to only display lets say 1000 links at the same time. then i clear the html and display another 1000 links. this is al...