html

document.getElementById('form_name').submit() not working properly

Ok, I will try to give the most details I can. The site is not suposed to work with IE6. It would be nice if it worked with IE8 and Chrome, but that can be done later. The site is in PHP. The form where the submit is in another PHP file that is included in position on the index.php inside of a DIV tag. If I open the form solely, the s...

How to remove iframe from parent page using a function inside the iframe?

I have an iframe I put on a page using a bookmarklet, I want this iframe to close itself when I navigate to a certain page inside this iframe. How to do that using JavaScript? Note: iframe and container page are in different domains. ...

How to hide button value in url?

This is my search form: <form action="" method="get" name="search"> <input name="s" type="text" size="40" value="<?php echo $_GET["s"]; ?>" /> <input name="submit" type="submit" value="Search" /> </form> When someone clicks the search button the url in browser's address bar is something like this: http://example.com/?s...

Get HTML data to program(C++)

Hi i would like to add some function to my app. How it is possible to get data from web page. For example i login to webchat which is ofc https secure. And now there is some table with user replies. How it is possible to get the table or some other html component, data to my C++ program. Its SSLed, so we dont want to sniff http. What s...

Formatting Button Position with Form_For

I am using form_for to create a form that has 1 input field and 1 button. I'd like the submit button to be beside the input field rather than underneath it. Relevant code is: .input{border: 1px solid #666666; width:400px; height:22px;font-size:16px;} <td width="900" height="50" align="left" valign="middle"> <% form_for @contact...

how do I call a javacript function every 60 seconds?

So I'm trying to work on a Canvas demo, and I want this square to move from one side to the other, but I can't figure out how to call javascript in a way that repeats every 60 seconds. Here's what I got so far: <!DOCTYPE html> <html lang="en"> <head> <title>Canvas test</title> <meta charset="utf-8" /> <link ...

I am trying to get a simple jqplot example going but it will not display, why not?

Here is the entire contents of the file: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>jqPlot Examples</title> <!--[if IE]><script language="javascript" type="text/javascript" src="excanvas.js"></script><![endif]--> <script language="javascript" type="text/javascript" src="../...

Why is the page shifting to top with a container that has overflow:hidden ?

I'm facing a problem that's really strange. It's in every browser. Everything is working correctly, until you try to go to a section using the hash ( like #contactUs in my page)... try this url : http://mahersalam.co.cc/projects/2011/#contactUs You will see that the page SHIFTS 10px to the top. if you take off the hash, it works again....

Can Content script set value of a text box within HTML frame? using Google Chrome extensions..

Hi all, I was working on a very simple extension, where on clicking extension icon, a webpage is opened in a new tab, the webpage has HTML frames, within which lies a textbox. I want to set a value for the same. The webpage which opens has: <HTML> <FRAMESET rows="15%, *" border="0"> <FRAME src="./files/abc.htm" id="abc_frame" name="ab...

Strange phantom header margin bug

So I'm creating this website and there is a strange untraceable bug that causes the header to move down 10 or so pixels. On a refresh the header could be correct or it could be broken. I've been testing it on Adobe Browserlab and the results are different every time. There is no discernible pattern making it incredible hard to track down...

HTML tag for identifying text

EDITORIAL NOTE The following is my attempt to summarize the question. I'm not replacing the original content because I'm not 100% sure that I'm right. In many 'scraping' application, the goal is to find the 'payload' text of a web page. Consider a typical, oh, CNN web page. It has a news article. And then it has all sorts of scraps of ...

How do I create a class in Javascript?

This is what I got so far, and it's not working at all :( all the variables are null in my player class and update never gets called. I mean a programming class, not a css class. I.E. not (.movingdiv{color: #ff0000;}) <!DOCTYPE html> <html lang="en"> <head> <title>Class Test</title> <meta charset="utf-8" /> ...

Deactivate or remove the scrollbar on HTML

Hey, I want to desactivate or remove the vertical scrollbar in an HTML page. Thanks. ...

Cancel the keydown in an HTML page ?

Hey, How can I cancel the keydown of a button on the keyboard in an HTML page. Thanks ...

Fancy box and youtube video problems

I have some fancy box photos and a youtube video, but when the fancy box picture opens the youtube video sits in front of it? Any ideas? Here is a snippet of my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt...

ASP.net site looks completely different on IE, Firefox, and Chrome; why?

I'm doing css for a website. I send the html and css to a guy, he puts it into ASP.net. The problem is that the transfer didn't end well for my code and it needs some fixing. The problem is that when I look at it in Chrome, or Firefox, or IE8, I get three completely different renderings. I spent a good amount of time trying to fix a drop...

How can give third child div within one parent div

I have one Parent div. Top of the Parent div contains two child divs. How can i give third child div below the first child div <div class=parent1> <div class=child1>some text</div> /*this is in top left of the parent div */ <div class=child2>some text</div> /*this is in top right of the parent div */ <div class=child3>some text</d...

z index background issue in IE

I have a jQuery tools scroller set up with controls managing two separate divs of info - one images, the other related text that needs to sit over the top of the images with a transparent bg image. I am using z-indexing to achieve this and am aware of IE's issues with this but am unable to sort it (tested in IE6-8). Image of the issue be...

disable or hide scroll bar in textarea

How to disable or hide scroll bar in textarea ...

Getting overflow-y:scroll to work with fixed positioning html & css

I have a Jquery tools scrollable thats set to be fixed to the bottom of the browser window. All I want to happen is for the page to be able to scroll vertically when the browser is less then 700px high. (so no content gets hidden, as its all fixed place). This feels like it should be simple but its causing me huge headaches. js solutio...