html

Javascript clear all cookies

Good morning people I am attempting to clear all of my cookies, some of which are set on a server and some of which are browser cookies. I have tried using document.cookie = "" however this did not satisfy my needs so I wrote some Javascript code, which can be seen below The pauseClearAllCookies function is called onload. <script typ...

Free RTE [Rich text editor] help needed integrating it

Working on a PHP /html content management system and found Free RTE online which is a free rich text editor. Have no idea how to integrate it into my own stuff. There are sample codes with it alrite, but they are not very clear. Anyone used it before or have any knowledge of integrating it??? ...

php form issues

I have a form with which I am trying to display a form with checkboxes, and then insert into a database whether or not those checkboxes are checked. Then, each time the page is called, check the value and append information to the html form to appropriate display the checkbox as checked or not. I have modified the below code example to ...

jQuery Cycle plugin z-index float problem

When I try to place an element on top of my jQuery Cycle element, it doesn't work. The element is always behind the jQuery cycle element. I use float: right; to position the element, and set its z-index to 100000, to no avail. Firebug sees the Cycle element and its children as having low z-indexes, and shows the floating element to be ...

How to fix flickering in IFrames ?

Hi everyone, I am using Iframes in html. for loading multiple html files into single html file . The problem is when i navigate one page to another i am gettting flickering. how to fix the flickering in iframes. Also i am using Dhtml Filters and transitions in that. Thanks & Regards ravi ...

Twitter menubar

You know the Twitter menubar how it's sort of rounded. How do I do that (in CSS?). I also want to make sure it goes around all my menu items. ...

Does <div> cause line breaks?

I have a menu bar and I want to create a div for each menu item so that they are separately horizontally by 5px. How do I do that? It seems that by simply wrapping an item around a div, it automatically causes each menu item to go on a new line. ...

Generated Javascript Does not execute

I am busy writing a simple Adobe Air app using HTML, jQuery and some jQuery plugin to load RSS feeds. The problem I am having is that I am generating a section of HTML components (buttons) so that I can execute specific code on button click. But when the page is displayed the button never executes; I have tried using the built-in log fu...

CSS: Force text to wrap (OR defining element width by only one of its children)

Okay, this is a weird one to me. Here's the HTML element I'm working with: A photo with a caption. Ideally, I'd like it to look like this, through pure CSS: The width of the image's parent element needs to be dependent on the image's size. I can change the markup all I need to. (The text isn't currently in its own div, but it can ...

Proper way to emphasize html submit button?

If you absolutely have to style your html buttons, what is the correct way to emphasize some of them? e.g. "Add to cart" is usually emphasized visually to make it stand out. Option 1 - wrap submit in em or strong + css Option 2 - class + css Option 3 - ? ...

CSS - Do non-IE browsers support the "filter" attribute?

IE5.5+ has supported the CSS attribute "filter" where you convert a color image into grayscale using just CSS. filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); Do other browsers support a similar CSS tag without using JavaScript? ...

Why put search input inside a form tag?

I found that SO put the search input inside a form tag, and i found some other websites do the same, such as google, they put the search input and search button inside this: <form action="/search" method="get" name="gs" id="tsf"> I want to just know the benefits of doing so, because it seems common and I miss it. ...

IE8 Not Opening Web Pages in New Window

I've seen this issue on a few random installs of IE8 and can't track it down for the life of me. If you open a new window by using the traditional <a href="fu" target="_blank">bar</a> - IE8 does absolutely nothing when its clicked on. I've dug around google for quite some time, to no avail. Has anyone else experienced this and perhaps...

how do I add an unknown selection of inventory items with a user supplied quantity to a cart?

I'm currently using PHP, JAVASCRIPT, MYSQL, XHTML, CSS to develop my site. Note that solutions are not limited to this but preferred if possible. I have a large MYSQL table of widgets and a page that allows the user to search for a specific widget. Let's say for example the user types the model name for some widget, the search could ...

Is there an attribute I can put on the A tag to get links to open in new tabs instead of the same window?

I know target="_blank" is supposed to make the thing open in a new window, and for some browsers, like FF3, it will actually make it open in a new tab. Is there a way to exercise more control over this behavior as a developer? ...

Can I set two background images on the same element with CSS?

Sample HTML code: <table> <tr> <td class="a b"> Sample CSS file: .a { background-image:url(a.png); } .b { background-image:url(b.png); } It seems like the "b" part is ignored. Is there any way to inlclude both images in the same cell, even using other technique? ...

Preventing double form submissions

Exact Duplicate: How to handle multiple submissions server-side The general task at hand: preventing a double form submission in a multi-user web based application. Think financial transactions. I have two methods which can be used in tandem: JavaScript disabling of button Disadvantage: does not work if JavaScript is disabled B...

Determine user agent timezone offset without using javascript?

Is there a way to determine the timezone for a user agent without javasript? normally, i would execute this snippet of javascript: <script type="text/javascript" language="JavaScript"> var offset = new Date(); document.write('<input type="hidden" id="clientTzOffset" name="clientTzOffset" value="' + offset.getTimezoneOffset() + '"/>...

How to disable submit button in jQuery if form fields have not been modified?

I have a HTML form that contains text fields, checkboxes, radiobuttons and a submit button. I'd like that submit button is enabled only if contents of fields are modified. Now here is the catch: if the user modifies field contents back to original values, the form button should be disabled again. Original field value "foo" => submit b...

Problem with IE when using display:block for links

This is my HTML: <div id="links"> <a href="">Link 1</a> <a href="">Link 2</a> <a href="">Link 3</a> <a href="">Link 4</a> </div> And these are the CSS styles: #links { position: absolute; border: 1px solid #000; } #links a { display: block; } #links a:hover { background-color: #CCC; } This displays a list ...