html

Stop Checkbox to be selected when form loads.

I have a simple form that has a checkbox. THe checkbox always appears checked when the page loads. How do I make it appear without a check when the page loads? Here is my code: <div id="quote_inputCH" style="width: 110px"> <div id="input_wrap"> <input id="checkpoints" class="styled"...

HTML\JavaScript - News Scroller - Sliding Text Effect

how can i make this.... goto this link and see the text sliding after regular intervals well i want to learn to make this so that i could make this ... it is supposed to be a dynamic news scroller.... but to make this i know i will have to learn the thingy on the link that i gave you... then the next steps are going to take me to dyn...

How to get around IE8 32k limit on data:uri on base64 encode?

I need to send an html response to the browser containing a 1920x1080 png. It's a screenshot taken by an html query. I encode the image in base64 and sends it embedded as an text/html content-type. Something simple like : <HTML><HEAD>Whatever</HEAD><BODY><img src="data:image/png;base64,data"/></BODY></HTML> It works fine on FF and Ch...

why $(window['iframeName'].document.body).html() doesn't work when i change .attr('src')

Why doesn't $(window['iframeName'].document.body).html() ...work when i change .attr('src') When i set the src attribute of iframe to any url when i creating the page, this code $(window['iframeName'].document.body).html() ...will work. But when i change the src attribute by .attr('src',"www.google.com.sa") and wait to load the...

Should I throw a 404 to a request like /photo.php?id=123 if photo #123 does not exist?

The script will be called from a URL like example.com/photo.php?id=123 or example.com/photos/123 depending on if the have the pretty URLs featured enabled. If photo #123 does not exist, a request to example.com/photos/123 should throw a 404 error. But, what about example.com/photo.php?id=123? ...

sending a value with input get ?

<a href="companies.php?id='. $_GET['id'] .'&offset='. $next_offset .'"><input id="button" type="button" value="More"/> i somehow want to send &offset=avalue but useing a input button. without the id. how can i do the similer thing with useing form action get ? like ( warning epic fail ) i should add a hidden input or something ? ...

document.activeElement returns body in Chrome and Safari

On a page I have an Iframe that contains input boxes, and if I select one of those boxes in FireFox and use document.activeElement, I get the IFrame. Thats okay, I just use that IFrame and get its contentDocument, save it, then do activeElement again and now I get the input box. However, in Chrome and Safari, when I select one of the bo...

what value the this.id returns?

I want to know what value holds in this.id. <input id='edit" + id + "' type='button' value='Edit' onclick=edit(this.id) />" The button calls edit(). So, shall i write var newid = id; to get the ID value of edit button. Thanks ...

Should I always store a string of HTML instead of printing out portions of it at time?

I've come across dozens of scripts in which html is echo'd out instead of being stored. I'm wondering if it's generally a good practice of always storing the html in a string due to the flexible nature? A random example would be that I have a function that returns the html for a dynamic subnavigation. I'm printing the opening div tag, p...

How to exclude some text from browser zoom

Yes, I know this is probably a bad thing to want to do. I have converted a web site to Drupal. I think I've done a reasonably good clean job with the markup and CSS starting with the Zen theme. All font sizes are set in em. It's a fixed width layout. That might be a bad decision but ... I basically copied the old site design. The menu ...

Make the background fixed (stationary)

Is there anyway to make the sky/lake background stay still while you scroll? Site: http://bit.ly/agJiEy ...

Javascript Checkbox.OnChange event not firing properly

So I have a business case where I've got groups (called Bundles) and they can contain other Bundles. Now, in my interface, I'm trying to have it so when you check the top level, it automatically checks (and disables, but I'm not there yet) the child bundles. In order to accomplish that, each checkbox has an onchange event where it pass...

Finding Include Files

The current site that I'm working on cleaning up has around 2,000 pages. It's a mess and the old designer used hundreds of include files to ensure that certain bits of content are consistent throughout the entire site. Now that we're moving this content from all these old HTML pages to Drupal I'd like to somehow get a list of these incl...

PHP - problems with simple form not displaying correctly

Ok - I have this code. $formBlock = "<form method=\"post\" action=\"$_SERVER[PHP_SELF]\"> <p>First Name: <input name=\"first\" type=\"text\" size=13 maxlength=25 /></p> <p>Last name: <input name=\"last\" type=\"text\" size=13 maxlength=25 /></p> <p>City:<input name=\"city\" type=\"text\" size=25 maxlength=50 /></p> <...

background image on TD in Outlook 2007

I've been told using tables is the best way to send emails although it's been twice as difficult. I have setup the email in tables, set all of the cells which need backgrounds with the background="" property, as well as using CSS in tags saying the same thing to cover my bases. The body background shows fine in outlook, but the TD backg...

Calling Multiple Functions from onclick

Okay, so I have a snippet of code from a website containing a button: <button type="button" onclick="laser(); $.post('sheepDB.php', { vic: vic, num: numVics });"> Activate Her Powers! </button> However, when I click the button the first time, the first function executes, but if I click it a second time, both th...

HTML Formatting Partial Content Within XML Node

I have an XML document that has an XML node named "Description" The Description node contains text like "This is a long description." When the XML file is loaded and displays in a browser, I need just the word "long" to be italicized. I understand that I could use XSLT to style the entire Description node, but how do I use CSS styling ...

Print HTML on webpage

I want to print some java, jsp code on webpage in an indented format. Is There a tool that would do it, right now I have to use &nbsp, &lt, &gt to get it done, which is very painful ...

Auto-append items from a select list

I have a list of different items within a select multiple list and I want to auto-append to a form that a user submits. HTML of category multiple select list: <select name="category[]" size="4" multiple="multiple" id="group"> <option value='7'>Faculty</option> <option value='8'>Staff</option> <option value='6'>Students</opt...

How to reload, stop, back & forward a frame?

Hi, I got the following: <frameset cols="20%,80%"> <frame src="zone1.htm" id="zone1"> <frame src="http://www.google.com" id="zone2"> </frameset> I got access to zone1.htm and the second frame is loaded from an external website, i want to do using javascript: Reload + Stop + Back + Forward Controls in zone1.htm to control the google ...