463 posts tagged with Javascript.
Displaying 351 through 400 of 463. Subscribe:

Reformatting pasted text

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 frames when learning javascript

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

creating a gallery with mootools, can someone help?

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

My Text Runneth Over

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

Can anyone fix my bad Javascript?

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

Script to move text away from mouse?

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

Where did that window go?

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

Preloading images.

How to wait until images being preloaded by JavaScript Image objects are complete? [more inside]
posted by hcastro on Nov 14, 2006 - 3 answers

How do I move this javascript out of the head and into a .js to achieve valid markup?

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 Div Issues.

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

extra page

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

I like asides

I have recently enbraced the dfn tag. However... [more inside]
posted by Brittanie on Nov 6, 2006 - 9 answers

How to defer loading images until they're visible?

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

crossbrowser reusable javascript for dropdown that hides another menu when active?

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

color-coding javascript for a beginners book

I'm writing a book on programming for beginners, and I have a question about color-coding. [more inside]
posted by grumblebee on Oct 9, 2006 - 36 answers

Ajax design tips

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

Where can I find a javascript slider bar widget?

I need a javascript slider bar widget with a couple of special features. [more inside]
posted by Hildago on Sep 30, 2006 - 2 answers

Need a little help with javascript and webpage dropdowns..

Need a little help with javascript.. [more inside]
posted by ascullion on Sep 29, 2006 - 8 answers

How to get the RSS URL in javascript?

How do I access the RSS URL defined in the tag of a page, using javascript? [more inside]
posted by teaperson on Sep 26, 2006 - 4 answers

WebKit Javascript Woes

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

Why is this bot hitting my site?

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

How to make radio box be selected when user enters accompanying text.

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

Super simple javascript question asked by idiot

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

I desperately need some javascript help...

Where would I find a script similiar to this? [more inside]
posted by wilde on Sep 6, 2006 - 5 answers

How could Javascript find what media-type related stylesheet has been selected?

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

RedirectFilter: Can't edit meta or serverside files...

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

quick javascript writer thing

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

looking for web image rotator that does text captions

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

Pruning JavaScript array.

Multidimensional JavaScript array that needs pruning. [more inside]
posted by kenaman on Aug 15, 2006 - 13 answers

Pop [over] goes the weasel.

How can I make nifty mini pop-up window boxes that appear within a window (a la Gmail)? [more inside]
posted by EnormousTalkingOnion on Aug 9, 2006 - 10 answers

Help redirecting to a different url after an embedded movie is done playing

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

Assistance with JavaScript

Javascript: How to focus on the original window after opening additional windows? [more inside]
posted by mickbw on Jul 10, 2006 - 5 answers

Load testing a java/jscript web app?

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

Please help a JavaScript idiot

Displaying multiple random images via JavaScript? [more inside]
posted by chudmonkey on Jun 14, 2006 - 5 answers

My Javascript Google-fu is failing me.

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

How to produce a Gmail-style checkbox selection interface?

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

edit javascript for FeedJumbler

Help editing javascript QueryString using FeedJumbler. [more inside]
posted by mic stand on May 12, 2006 - 5 answers

JavaScript onMouseOver woes

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

Pre-existing JavaScript for using tab to indent textarea contents?

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

Simple Ajax Commenting Script

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

Need to colorize my code!

Looking for a decent (free) C# + JavaScript source code colorizer. [more inside]
posted by blahtsk on Apr 18, 2006 - 10 answers

Regex: Text from HTML, no attributes

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

Javascript regexp help needed

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

Saving files with Javascript?

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

Degradable PHP/AJAX forms

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

Your favorite web design tricks?

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

I'll trade you a proxy for a doxy! (Er, or not.)

Help me make a bookmarklet for a proxy server - now doesn't that sound like fun! [more inside]
posted by metaculpa on Mar 12, 2006 - 2 answers

alternative to XMLHttpRequest

Is there an alternative to XMLHttpRequest that would work across different domains? [more inside]
posted by Dag Maggot on Mar 12, 2006 - 16 answers

Need some help with fixing a del.icio.us bookmarklet ...

Help me untangle a few weirdities in my fine, freshly hand-rolled Cuban cigar ... er ... Javascript bookmarklet. [more inside]
posted by WCityMike on Mar 7, 2006 - 19 answers

Help me read this Javascript and pass the right parameters?

I'm trying to implement some AJAX features in a project, and need help deciphering the possible options and parameters of the Rico framework's accordion display. [more inside]
posted by Tubes on Feb 20, 2006 - 4 answers

Page: 1 ... 3 4 5 6 7 8 9 10