html

How can I validate input when input submit is clicked prior to the submit happening?

I want it so when they click on the submit button it will first check all the fields with class="req" and if any are empty it will cease to submit and give them an error, otherwise the submit should go through. How can I do this? ...

Firing javascript on embedded video end of playback.

Im writing a page that will display a video, and on playback completion, will display a code that can be turned in as proof of watching the video. I was thinking I could do this in javascript, but after a few quick google searches, I haven't come up with anything. Is there any way for javascript to listen for the end of playback of embed...

html: div and select tag

Can I have a <DIV> within an HTML <SELECT> tag, e.g.: <select tabindex="2" name="agegrp" id="agegrp" > <div> <option value="-1">No preference</option> </div> </select> ...

get data out between html tags

Hi, I have some HTML <body> <p id="errorMessage">System.Web.HttpException: Path '/DynamicData/DimOrganisations/List.aspx' was not found.</p> <p>Generated: Tue, 29 Sep 2009 18:04:18 GMT</p> I want to search through my HTMl for the tag p id="errorMessage" And then take out the data with the html. So run something to look for...

Reading Website pages

Hi, my question is as follows: assume there is a website called website.com/a the website is being developed using PHP, Perl, Ruby and other languages. i want to be able from my website to read this website pages, execute the code and then analyse the HTML result page tags and getting the content using PHP. it's like reading news f...

Is there a standard copy-paste way to safely put a SWF in a web-page?

While embedding a SWF in HTML is not too hard, there are a few subtleties for different browsers, detecting if Flash is installed, etc. For enabling AJAX, there are standard chunks of code you can use to save the hassle of coping with all cases... is their a similar 'reference implementation' to embed a SWF which covers all the bases? ...

iframe vertical scrollbar

How do I get rid of the vertical scroll bar in the iframe? See here: http://lambodhara.tumblr.com/ The code is: <iframe width="560" height="350" frameborder="0" scrolling="no" src="http://zleek.com/champ1979/navarathri-2009?embed=true&amp;page=0"&gt;&lt;/iframe&gt; ...

Collecting a huge amount of data on a webform, best methods?

Hey all, I need to allow users to choose/input authors associated with a given publication and there could be just a single author or (43 = the most I have seen so far) up to 40+. Needless to say creating a static form to collect the data will not do since there is no way to know ahead of time how many authors there are. My original ...

div column layout, strechacle column with min-width

Hey guys I'm trying to code this 2 column div layout and I can't think of a way to do what I want... here is the code: #prospectDetailMainWrapper div{ border:1px solid purple; } #leftPanel{ height:600px; padding-right:266px; } #rightPanel{ height:600px; position:absolute; right:0; top:103px; width:265px; ...

Is there a way, using jQuery, to change the document.title after the page has loaded?

I have coded myself into a corner. Does anyone know the answer? Thanks! ...

does document.getElementsByTagName work in vbscript?

Well, it works, it just doesn't produce anything worthwhile: elems = document.getElementById("itemsTable").getElementsByTagName("TR") for j = 0 to ubound(elems) - 1 ' stuff next Well, that won't work, apparently elems is an object, not an array like you'd get in that fancy javascript. I'm stuck with vbscript though. So w...

What is the best strategy for using color scheming tools for non-designer developers?

When making color choices during web design, I use free online tools such as ColorSchemer in which I: click on a color use the colors it suggests for me This makes my designs look better than if I chose colors freely out of a color wheel. But beyond this simple approach, what are are the best strategies for using these tools to make...

Steps to setting up my first eCommerce site

I'm about set up my first eCommerce site. I was hoping you could recommend some shopping cart software. What are the perks of using pre-built software rather than developing some simple solution catered to my needs. Also, are there pre-written Terms and conditions for sites? Or templates that outline what aspects need to be addressed? Wh...

How to get the url of a webpage that is embedding another page in an iframe on a different origin domain

Webpage A is embedded in an iframe inside of webpage B. A and B are on two different domains and therefore the same origin policy prevents A from accessing properties of B like so; location = window.top.location.href // emits a "Permission denied" error Is there any other way for A to get B's url? ...

Why does IE full justify the text?

On my company's website (www.dmacorporation.com we have a section on the first page that isn't displaying properly. The IDM Integrated Database Management System is appearing as fully justified, but it is supposed to be left justified. I have fixed a local copy to show up properly in other browsers by changing the in-page css to includ...

Trouble passing slider value to php mail script

I want to email the value of the slider along with some things they entered into my form to my php email script. This is how the form looks that will pass data to the POST method of mailer.php: <form method="POST" action="mailer.php"> Name: <input type="text" name="name" size="19"><br> <br> E-Mail: <input type="text" nam...

How to select text in columns in a table

Hi, Is there anyway to get the text on an HTML table to be selectable like the tables in MS Word? In a normal html table, when the user selects text using the mouse, the text is selected in ROWS. In MS Word, it is selected in COLUMNS. I am using IE8 in standard mode. I don't mind if the solution uses script or css. Any help would be ...

Parsing out data using BeautifulSoup in Python

I am attempting to use BeautifulSoup to parse through a DOM tree and extract the names of authors. Below is a snippet of HTML to show the structure of the code I'm going to scrape. <html> <body> <div class="list-authors"> <span class="descriptor">Authors:</span> <a href="/find/astro-ph/1/au:+Lin_D/0/1/0/all/0/1">Dacheng Lin</a>, <a h...

How to get align="center" effect in CSS and be XHTML compliant and have it work on most browsers

I'm trying to get some HTML pages to be more compliant and am starting off with simple stuff like removing align="center" in tables, etc. However, I can't seem to get the effect I want using CSS. Stuff I've tried include text-align:middle vertical-align:middle and the most suggested by designer friends margin-left:auto; margin-right...

HTML jquery response is cached on IE

Well I have a very rough version of gomoku working now. I'm using Jquery, Php and mysql database. When a user clicks on a board square a piece is placed. An ajax refresh determines if turn count has been incremented and updates the board's html if necessary. The problem is that Internet Explore (6,8,&probably 7) caches the page on the...