html

Setting Value in Javascript with encoded HTML

Quick question, I have a simple javascript problem that I don't know the fix to. divNext = document.getElementById("submit_button"); if(document.getElementById("page").value == 4 ? divNext.value = 'Submit' : divNext.value = 'Next »'); Now the problem is that it should display the Next with two >> after it (at least if they where ...

hide scrollbar while still able to scroll with mouse/keyboard

Hello, I want to know if it is possible to hide the scrollbar, while scrolling is still enabled with mouse/keyboard. I tried to use CSS: overflow: hidden; The effect is, scrollbar disabled AND scrolling disabled. ...

PHP Upload Form: Why isn't my multipart/form-data form sending any POST data? (LARGE FILE UPLOADING)

i'm uploading a 70mb ZIP file. perhaps debugging may be putting things out of sync? when i don't have the file in the file input, i get the post data, but when i do, the post data is empty. <form method="post" action="load_statements.php?action=load" id="form1" enctype="multipart/form-data"> i have fields (with the name attribute) and...

Webpage displays to left on safari

Hello, I am having a problem displaying a webpage on Safari. It will not display center, but will instead displays the page to the left and has a huge amount of empty space to the right of it. I don't get this behaviour with Firefox, IE, or Chrome. Can anyone tell me what is going on and how to fix it. The website can be viewed at: digi...

How to execute javascript code on IFrame load

I am dynamically creating an iframe with javascript inside the body. iframe = m_oYDOM.get("ifAdwords"); iframe.contentWindow.document.body.innerHTML = <script type=\"text/javascript\">function Test(){alert(\"Success\");Test();}</script>"; I am not able to get the alert to work. Can someone help me! ...

How to add a little to URL instead of copying and pasting it all?

Ok, so I have let's say this page http://mypage.com/index.php?id=something. I want to have in this page the link which would go to the http://mypage.com/index.php?id=something&amp;sub=1. And to do that I have to add a href to my index.php file like this echo '<a href="index.php?id=something&sub=1">go here</a>';. Is it possible to do thi...

What does Google Analytics use to keep track of user activity?

Hi folks, just wondering if anyone knows what technologies are used by the tracking software? Edit: I meant client-side. How is data sent to the Google API? Long polling? Streaming? =) Thanks guys! ...

How to prevent search engine indexing of common utility words without JS

Google thinks my site is about ago, cancel, and edit. This is because those words appear on every comment. Why am I the only site who seems to suffer from this problem? In fact, if you search Google for the words ago, cancel, and edit (without quotes), my site comes up in the #2 spot (right below Stack Overflow in spot #1). Even if Goog...

align nested tables in IE

Hey, This is my first question here so let me know if i have not understood the site ethos ;) I have written a html page for showing and hiding nested tables. I would like to get the columns to align correctly. I have got close by setting the columns to have a specific width in both IE and firefox the columns are a few pixels out... ...

How do I control the definition, presentation, validation and storage of HTML form fields from one place?

I want to be able to define everything about a form field in one place, as opposed to having some info in the DB, some in HTML, some in JavaScript, some in ASP... Why do I have to worry about possibly changing things in four separate places (or more) when I want to change something about one field? I.e., I don't want to: declare the ...

Is <input> well formed without a <form>?

Is it valid to have <input> without it being in a <form>? Have a process for marking up some fields in pages and just found a page with input fields that where not being marked up as I expected. It's taken me a while but worked out that the process of getting the form elements then getting the fields is what caused these to be missed be...

How to turn an image's file path into the actual image?

Hello, I've saved a user's respective picture in a folder named 'profileportraits'. So when a user uploads their picture, it is saved into that folder. Furthermore, I also save the 'portrait path', i.e. the location/name of the photo onto a MySQL database for user data. My question is: I am able to echo the Portrait Path, where the user...

Simple CSS Question

Here's the CSS .box { background-color: #CCCCCC; } .box-title { font-size: small; font-weight: bold; color: #000000; background-image: url(/icons/bg.png); background-repeat: repeat-x; } .box-content-container { background-color: #FFFFFF; } a:link { font-family: Arial, Helvetica, sans-serif; font-size: 12px; ...

Preprocessing SSI includes in site build process, export from svn

I have a site which uses simple server-side includes to pull in the header and footer on some static HTML pages: <!--#include virtual="/_top.html"--> ... <!--#include virtual="/_bot.html"--> The downside is that IIS can't cache SSIed pages (or more specifically, it won't allow browsers to cache the page no ETag nor Last-Modified h...

Simple question regarding doing action on checkbox click in jquery

I must have looked at 10-15 tutorials on this already but just cannot get this to work, so in my .js I have: jQuery('#sports : checkbox').click(function() { alert('it works'); }); and in my .html doc I have: <input type="checkbox" name="sports" /> It just won't work, no matter what I try and I have tried every variation I c...

Libraries/Examples of Hover or Click Menus for web pages/apps, where to start?

I'm changing the layout of a web app that we are developing internally and have identified a few spots where a menu would be much more helpful than our currently layout. The project is currently built on Zend Framework and jQuery. Are they any good examples of context menus, or just menus in general that I should check out for inspiratio...

Android HTML resource with references to other resources

I would like to add an HTML resource to my Android project with references to other resources (mainly drawables). Where should I put it and how do I reference other resources from it? Is there a particular way to pass the HTML resource to a WebView? Thanks! ...

How do I get SVG to render with transparency in web-kit?

I am having issues embedding SVG into a webpage. I have found the simplest method to just use an image tag. For example: <img src="my_graphic.svg" height="100"/> Works in web-kit. I do not need to explicitly set the width and the browser will maintain the aspect ratio. Very nice! This doesn't work in Firefox though - it's not cross b...

Problem with special characters after migrating a web project

I had several HTML files on an Apache server which had special characters. For example, they have instead of &copy;. They were working fine but once I migrated those files to a new server (also Apache), all those characters are not properly being displayed in the browser. I know it'd be better to replace those characters with HTML enti...

Does the onchange attribute work in non-traditional elements?

Since events bubble up in the DOM, it seems like a change event should be able to reach any container element (e.g. div, table, or ul elements). Therefore, it seems like any such elements should support the onchange attribute. However, it seems like only a few element types support this in the official standard. Despite this, I was able...