I'm looking for JavaScript code that successfully updates the href value for the "application/rss+xml" link in a way that enables the Firefox Live Bookmarks functionality to work with a href value assigned at run-time.
[more inside]
posted by McGuillicuddy
on Jan 4, 2007 -
6 answers
I'm getting into learning web design -- started with the basics of HTML, XHTML, and CSS, and want to move on to JavaScript and Ajax next. Problem: I have zero, and I mean zero, programming experience.
[more inside]
posted by hazelshade
on Jan 4, 2007 -
15 answers
Coding question: What is the best/easiest way to preserve typographical formatting (like nbsp's, line breaks) of pasted text that will be stored in a database and later displayed in boxes of arbitrary size?
[more inside]
posted by shownomercy
on Dec 31, 2006 -
6 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 by orlin
on Dec 30, 2006 -
7 answers
Since all sorts of very clever people frequent metafilter I figured it would be worth a shot to repost this mootools related javascripting question here.
[more inside]
posted by Grod
on Dec 29, 2006 -
6 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 by jasondigitized
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 by rokusan
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 by BobsterLobster
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 by jasondigitized
on Nov 21, 2006 -
4 answers
How to wait until images being preloaded by JavaScript Image objects are complete?
[more inside]
posted by hcastro
on Nov 14, 2006 -
3 answers
really basic, I think. You can't have <link /> tag inside a <script></script> using XHTML strict. I can't quite figure out how to write a function that takes the place of this basic little OS detection script <script type="text/javascript">
var cssFile = (navigator.userAgent.indexOf("Mac") != -1) ?
"mac.css" : "everyonelse.css";
document.write("<link rel='stylesheet' type='text/css' href='../" + cssFile + "' />");
</script>
Which I would put in the head of the document. How can I move it to a function in an external .js file and get the same result with valid xhtml 1.0 strict? It's not urgent, but it's driving me nuts because I'm really stupid about scripting but I know this sort of thing isn't supposed to be hard.
posted by Grod
on Nov 13, 2006 -
17 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 by Freen
on Nov 13, 2006 -
12 answers
assume that im working on a flash/javascript concoction. I have some code to print out some HTML. All is well except im getting an extra blank page.....
[more inside]
posted by Tryptophan-5ht
on Nov 10, 2006 -
4 answers
On a web page, how can I tell if images have not yet been scrolled into view?
[more inside]
posted by Neon
on Nov 3, 2006 -
8 answers
What I suspect is a fairly stupid javascript question, but one I haven't found an ideal solution for. I four menus made out of unordered lists. I'm using a modified version of the suckerfish dropdown script to make it work in IE (code inside), in one place I want 1 of the four menus to stay open except when I hover on one of the remaining menus. i.e. menu1 is visible. when I mouseover menu2, menu1 is hidden. When I mouseout of menu2 menu1 reappears.
[more inside]
posted by Grod
on Oct 31, 2006 -
6 answers
Ajax design - The more little UI widgets I add to my project, the harder it is to maintain a coherent directory structure. Any tips or articles on how to maintain an intelligent directory/site structure on Ajax projects, where you have N number of little UI widgets that are retrieved on demand?
posted by xmutex
on Sep 30, 2006 -
2 answers
I'm having a strange problem with WebKit's Javascript engine. Please help. Copious explanation inside.
[more inside]
posted by evariste
on Sep 23, 2006 -
14 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 by o2b
on Sep 20, 2006 -
13 answers
In a web survey form, I need to automatically check a radio box if the user clicks on the text field.
[more inside]
posted by Blue Buddha
on Sep 12, 2006 -
9 answers
Easypeasy javascript question: I want to have document.x.src, where x is a variable I'll be calling up at some stage in a page body. As it currently stands, the browser attempts to find the thing with name="x", but it's going to return an error because there aren't any things with name="x". How do I let it know that x is a variable, and to ask whether it would be so kind as to use the value of x instead of the letter x?
posted by nylon
on Sep 9, 2006 -
8 answers
How could Javascript find what media-type related stylesheet has been selected by a Web browser?
[more inside]
posted by adipocere
on Sep 1, 2006 -
5 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 by vanoakenfold
on Aug 31, 2006 -
6 answers
I'd like some premade javascript that adds text into a text input when clicked, sounds simple but I cant find anything on the web. anyone know of a script that can help me out?
posted by yeahyeahyeahwhoo
on Aug 18, 2006 -
3 answers
Web / Flash / DHTML Developers: help me find an image rotator for a website home page; I want it to take text from a config file and overlay it on the image, like a caption; some more specific requirements follow
[more inside]
posted by intermod
on Aug 18, 2006 -
9 answers
I have a webpage that has an embedded movie (wmv) that starts when the page loads. My client is wanting the page to redirect to a different url after the movie is done playing instead of the movie just sitting there in the done position. Please help as my googlefu has failed me on this and I am not familiar enough with movies to figure this out. I am sure there is some javascript that can do this, but I cannot find it.
For those that are a little confused I hope this helps:
Client visits domain.com/movie.html and when the movie is done playing it needs to go to domain.com/done.html
posted by thebwit
on Jul 24, 2006 -
5 answers
Javascript: How to focus on the original window after opening additional windows?
[more inside]
posted by mickbw
on Jul 10, 2006 -
5 answers
Are there any free/open source web app load testing tools that also handle javascript?
[more inside]
posted by mrhaydel
on Jun 15, 2006 -
3 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 by tommorris
on May 20, 2006 -
8 answers
JavaScript filter: how can I change the onMouseOver for an element by name from within another javascript function?
[more inside]
posted by TunnelArmr
on May 10, 2006 -
7 answers
Has anyone previously published a JavaScript methodology for using the Tab key to indent while within HTML textarea controls?
[more inside]
posted by cyrusdogstar
on Apr 23, 2006 -
13 answers
I'm looking for a simple Ajax commenting script that will allow commenters on a blog-like site to submit comments without actually leaving the page. I've found the one for Wordpress - but it seems to be a little too specialised for WP templates to be easily adaptable for my site's needs (though I will if I have to). Any links would be much appreciated.
posted by Dag Maggot
on Apr 20, 2006 -
5 answers
Regex Madness...filter. How do I pull the text out of an html document without looking at the tag attributes?
[more inside]
posted by ph00dz
on Mar 26, 2006 -
26 answers
Using javascript, what would be the most efficient way to reduce a multi-word string down to just the first word?
[more inside]
posted by mr_crash_davis
on Mar 22, 2006 -
10 answers
Are there any tutorials out there that explains how to save/update files from a browser using only javascript as
tiddlywiki does?
[more inside]
posted by gwint
on Mar 19, 2006 -
14 answers
PHP/AJAX: Say I have a form with 3 SELECT's - country, state/province, city. I'm looking for a something that will update the SELECT's from the server using AJAX if possible, but will also degrade to the non-AJAX version for people that have JavaScript disabled. Can anyone recommend a PHP library that can do that?
posted by Sharcho
on Mar 17, 2006 -
7 answers