46 posts tagged with HTML and javascript (View popular tags)

What is the best way to include the same content on multiple web pages? (e.g. SSI, PHP, Javascript...) [more inside]
posted on Aug 30, 2008 - 9 answers

Is there a way to lock or hack an iPhone's orientation in mobile safari using CSS, HTML, Javascript or a combination there of? [more inside]
posted on Aug 21, 2008 - 7 answers

CSS, JQuery, PHP and Caching: What are the best practices for creating dynamic CSS with JQuery and PHP? Examples inside. [more inside]
posted on Aug 20, 2008 - 7 answers

I want to take an Excel spreadsheet and just make it a dynamically sortable table I can put in a webpage or blog. I want people to be able to click a column, and have the table be sorted by that column. Best solutions? Also, if the table included locations, is it possible to make them selectable, and have the selected locations display on Google maps? Thanks.
posted on Apr 26, 2008 - 5 answers

Sites like Youtube, Vimeo, Blip, etc, all offer code to allow you to embed their videos in your own site, right? But why is that code invariably HTML, and not Javascript? [more inside]
posted on Mar 20, 2008 - 13 answers

Anyone have a JavaScript trick to create a web form that builds a URL to send users to a pre-populated search? [more inside]
posted on Jan 23, 2008 - 6 answers

Help me AJAX-ify a very simple web process in PHP. Links to very simple AJAX tutorials much appreciated. [more inside]
posted on Jan 8, 2008 - 7 answers

What's the best way to create a website table that a) can be dynamically (via Javascript) and statically sorted by readers and that b) can be created and added to easily c) for a Blogspot blog. E.g. a list of products I like, with ratings and category (sort by any of these things)? Thanks.
posted on Dec 22, 2007 - 5 answers

JavaScript: jQuery vs Scriptaculous - Which is currently the favorite amongst developers? [more inside]
posted on Nov 16, 2007 - 11 answers

I need to create scrolling list, with something a bit extra. [more inside]
posted on Oct 18, 2007 - 6 answers

Is there a safe way to sanitize user submitted HTML to prevent security problems? [more inside]
posted on Sep 3, 2007 - 31 answers

Is it possible to use dynamic fields in web pages and stay Section 508 compliant? [more inside]
posted on Aug 23, 2007 - 2 answers

HTML/Javascript: I need to "hijack" website content so that it appears to be hosted by a different domain (with the full knowledge and cooperation of all parties). [more inside]
posted on Aug 15, 2007 - 7 answers

Can Javascript be "stacked" to do an onmouseover AND a popup window all on the one link? [more inside]
posted on Aug 12, 2007 - 10 answers

I'm starting a new tourism website for my local area. It's a mash of google maps, with photos and information of a given area featuring some of the neat stuff happening, or that has happened. And now I need some help with the wordpress theme. [more inside]
posted on Aug 12, 2007 - 2 answers

Does anyone know of a way to create a line graph using html or javascript? [more inside]
posted on Jul 30, 2007 - 6 answers

At least in Firefox I'm seeing an undesirable behavior in textareas. My question is how to fix/avoid it. Here's the problem. Go to a textarea in Firefox. (The ask.metafilter ask a question one will do fine.) Type enough characters to fill a whole line of the textarea e.g., kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk... Now put a single space in front of that line. It moves the line one line lower instead of just putting a space in front of the characters which is what I would prefer i.e., treat a space like any other character. [more inside]
posted on Jul 27, 2007 - 5 answers

If you are a HTML or Javascript kung-fu master, I need a sensei to advise me as to a few exotic tricks I desire to implement involving HTML form fields. [more inside]
posted on Jul 12, 2007 - 15 answers

Annoying MIE Javascript/AJAX question: I'm making an Ajax site and am trying to get it to work with Explorer. It works perfectly in Firefox and Safari but not in Explorer, damn MS and their constant exceptions! [more inside]
posted on Mar 28, 2007 - 21 answers

Are there any tutorials on how to make a low-traffic version of the AJAX MacRumors Live page they use for keynotes? [more inside]
posted on Mar 20, 2007 - 4 answers

How do I wish my programming-geek boyfriend "Happy Birthday" and tell him "I love you" using computing code? [more inside]
posted on Jan 23, 2007 - 25 answers

CSS/HTML/Javascript: I cannot get all browsers to obey my wishes regarding the placement of my absolutely positioned footer. [more inside]
posted on Jan 22, 2007 - 13 answers

Should I skip learning frames in conjunction with javascript (as a newbe javascript self taught student) due to the depreciation factorof frames with correct html? I'm really new at script writing / javascript etc... and appreciate your feedback. Thank you in advance...
posted on Dec 30, 2006 - 7 answers

I am inserting a large amount of links and text into a DIV tag using innerHTML after a page loads. For some reason, the HTML I am inserting is overflowing to the right of the DIV and not wrapping. I have a feeling, the browser cannot perform its normal text-wrapping because I am adding the HTML after the fact. Is there any technique via CSS or javascript to prevent this overflow from happening?
posted on Nov 29, 2006 - 6 answers

I have to set the content of a field using Javascript, but the field's name has a dot in it, making Javascript treat it like a delimiter. Maybe I'm just tired. Help me escape? [more inside]
posted on Nov 25, 2006 - 8 answers

I need some Javascript code to cut and paste which will move some text away from the mouse! Can anyone help?
posted on Nov 24, 2006 - 3 answers

Javascript / HTML : Let's say I have a page called 'foo.html' that opens a new window using the command window.open('http://ask.metafilter.com','newWindow'). Now let's say I navigate AWAY from my original page 'foo.html' to a page call 'bar.html' still leaving 'newWindow' open. Is there anyway I can get a handle on 'newWindow' from 'bar.html' even though I have navigated away from its opener 'foo.html'? I basically want to be able to change the url of 'newWindow' at anytime from any page on my website. Alternate solutions accepted.
posted on Nov 21, 2006 - 4 answers

Javascript neophyte: How do I swap out the contents of one div with another? But there is a monkey-wrench in the whole thing: the new div [more inside]
posted on Nov 13, 2006 - 12 answers

Some sort of bot is hitting my web site, and for the life of me I can't figure out why. [more inside]
posted on Sep 20, 2006 - 13 answers

Yet another redirect question: How can I auto-redirect a visitor to another page, although I can't edit the page's HTML/code, per se? [more inside]
posted on Aug 31, 2006 - 6 answers

How can I replace part of an URL with a variable from a pulldown form? [more inside]
posted on Jun 1, 2006 - 2 answers

Does anyone know how it's possible to produce an interface for checkbox selection like the one in Gmail? Namely, where you can hold down shift and click the first and last items in a list, and it'll automatically select all the ones in between. Is it possible with simple JavaScript without having to use AJAX or other fancy-pants technology...
posted on May 20, 2006 - 8 answers

Has anyone previously published a JavaScript methodology for using the Tab key to indent while within HTML textarea controls? [more inside]
posted on Apr 23, 2006 - 13 answers

What's your favorite HTML, CSS, Javascript web design trick? [more inside]
posted on Mar 16, 2006 - 27 answers

I'm trying to get iFrames, anchors and hyperlinks to play nice together. [more inside]
posted on Feb 11, 2006 - 12 answers

HTML + javascript question. Changing the text-cursor position of a textarea? [more inside]
posted on Dec 3, 2005 - 6 answers

Is there a utility out there that does for Javascript code what HTML Tidy does for (X)HTML? I've started working with a bunch of Javascript code that's just messy as all hell, and would love to preprocess it into something a bit neater before buckling down and getting to work. Something online (similar to this online HTML Tidy interface) would be perfect, something *nix command-line would be good as well, and I guess an app that handled the cleanup would be fine (OS X preferred). This might be a no-brainer, but I've searched high and low without results...
posted on Nov 12, 2005 - 5 answers

Help me create a webpage that has data in a table that I can update via another webpage. [more inside]
posted on Oct 27, 2005 - 10 answers

HTML/Javascript enforcing time limit on webpage. [more inside]
posted on Sep 8, 2005 - 17 answers

Half way through a form, a user decides that they'd like to add a category to a selection list. How can I facilitate this without also losing everything they've typed into the form so far? [more inside]
posted on Aug 24, 2005 - 17 answers

Does anybody have an easy way in HTML (or CSS) to layer two images on top of each other, while maintaining the ability to switch the bottom image using a javascript event? [more inside]
posted on Mar 31, 2005 - 7 answers

Windows Explorer has an option to display all the image files in a folder in "filmstrip" mode, which looks like this. I want to create a similar method of display on a web page. I figure I'll have to (unfortunately) use frames to create the bottom gallery of thumbnails and have it scroll like that but I would rather not have to create a separate page for each full-size picture. I would rather the page displaying the picture be dynamic and just change the picture rather than refer the browser to a different file. I figure this could be done with some scripting language (PHP?) but I don't know much about that sort of thing. Can anyone help me out? [+]
posted on Jan 26, 2005 - 15 answers

I want to create a website which visitors can "annotate" with something more than a simple commenting system. Basically, I'm looking for Flickr's photo annotation capabilities, but for html documents instead of jpegs. My instincts say this could be accomplished with some fancy CSS and javascript, but I would prefer not to start from scratch if something already exists. Any ideas?
posted on Oct 6, 2004 - 8 answers

I need javascript or html code for my website so that users can enter their email address in a box, hit send to send it to my inbox. It's so that they can receive notification of updates. I have searched high and low, but no luck.
posted on Apr 7, 2004 - 5 answers

Because I only know pidgin HTML, I'm not sure if what I'm about to ask is Web Design 101 or Web Design 665, but: If I want to have a collapsible list, such that if someone clicked on "Words that start with B" in the following:

Words that start with A
Words that start with B
Words that start with C

the page would then reformat to show

Words that start with A
Words that start with B
balustrade
brickbat
bumptious
Words that start with C

without the whole page having to reload. Can someone please point me to a resource or study-able example?
posted on Mar 30, 2004 - 7 answers

Wanted: list of canonical, essential mailing lists/discussion groups for web development, a lá css-discuss. [more inside]
posted on Feb 5, 2004 - 4 answers