Anyone know of a simple javascript IDE/texteditor that i can use? my only requirements is that it has "auto-format" and it is fast (meaning when i ctrl-S-alt-tab-f5 i can see the changes without waiting even half a second). im currently using notepad++ but am looking for a better one because notepad++ doesn't have auto-format (arg!)
I have a form in my page and I want to implement an autosave feature. For that, I submit all the fields in the form every 2 minutes via AJAX, so I can save a Draft.
The problem is, that the textarea used for the body of the message is modified to be a Rich Text Editor (with MceEdit). Thisdynamically generates an iframe that holds the styled text, and only populates the textarea with that content on sumbit.
So, I want to be able to read the iframe contents with jquery, so I can POST it via AJAX to the autosave method. I hope I've provided all the necessary details. If not, feel free to ask for more.
I have a form1 with two fields, field1 and field2. I want the contents of field1 to be transferred to field2 onBlur, but with some changes. I want the contents of field1 to have its spaces replaced with Dashes, and all punctuation removed, so this can happen:
FIELD 1 value: Today's rate is 15%, & the outlook is good.
onBlur should then create a value of:
FIELD 2 value: todays-rate-is-15-percent-and-the-outlook-is-good
Notice that the "&" was converted to "and", the "%" to "percent". The comma was deleted and all spaces replaced with Dashes. The second field should only every contain alphabetic letter, dashes, and numbers.
Here's a small collection of bookmarklets for disecting your own (or other people's!) websites. They do things like, show all TABLE elements with a red border, hide non-link images, and so on...
i need a 5 second counter to start when the page loads. basically the usage is I want people to click a link, and if the page has been loaded for more than 5 seconds, do thisFunction().. if not, do nothing.
so basically
<script type="text/javascript">
window.onload --> start the counter // when the counter hits 5 seconds, set var done = true;
function thisFunction() { if (done = true) { proceed with function) else {do nothing} } </script>
I'm trying to write some validation for a field called Propid, in a form called qSearch. Basically if there's nothing in Propid, or it is says "ref no.", I want to alert the user, otherwise, I want the form to submit.
<!-- function submitForm() { window.setTimeout(document.email_inner.submit(),5000); } //-->
im trying to submit my forum after 5 secounds of viewing the page and i have no knowlege of java wat fo ever but ey told me this is the onlyway to do such a thing ... this i wat i have so far in hte header .... it dose nothing at all
Just a few questions about simple animations (that aren't Flash). I've searched around but haven't been able to find anything really concrete about alternatives to JS. Basically in terms of simple animation, is JS the be-all-end-all? What other options are there in terms of simple animated menus (besides Flash & animated GIFs)?
Something like the above Quick Links menu; would something like that be possible in only Javascript? Or would there be an alternative?
I'm looking for a javascript that will do a 3 minute countdown and display it on the screen, preferably not in a textbox, but i'm not picky.
Here is how it works. Someone will make a selection from a form. The date/time of that selection is then stored in a database. I want to use the date time stored in the database as my starting time and then countdown 3 minutes. After 3 minutes I would like a message saying Times Up, please make a selection.
How do I use JavaScript instead of using this " <a target="_blank" href="http://www.OtherWebsites.com">Other websites</a> " if I want to use a list of JavaScript links?
I have a rather simple question. It's been four long years since I last dealt with JS and although I remember the basic concepts behind loops I don't remember how to actually implement them.
This is my current code:
What's bothering me is how redundant it is. I would much rather simplify it into a few lines where i increments by 1 from 0 to 13 in the case of image[i] and cover[i]. Is this possible? And if so, how would I go about articulating it?
I am building a stand alone html help system (.chm.) So the usual woes with mailto are not going to be encountered. Likewise I am ensured all my intended users have Outlook installed. With that said This is what I want to do.
I have a simple html form with a an radio button option group, a listmenu, a text box, and a text area. What I would like to do is have a user fill out this form, and hit a button that sends the results via outlook. The TO, CC, and subject fields will be hard coded. I want the option from the list menu on line one, the radio button on line two, the text box on line three and the multi-line text area starting on line 4.
I haqve searched the web, and groups all day to no avail. Everything I have tried simply fails. I even tried breaking this down into a simple one text box one button, with no good results via javascript. I can get it to work ok without javscript, but instead of new lines they just overwrite each other.
I'm trying to dynamically change the contents of a select box by doing the following...
function myfunc() { var obj=document.getElementById("objname"); // name of the select box var str='' str+='<option>blah</option>' obj.innerHTML=str; alert(obj.innerHTML); }
For reasons I don't understand, the alert gives me 'blah</option>'. Where is the leading <option> tag?
I've seen plenty of browser detection scripts but they all seem to be slightly different and don't really fit my needs. I have various places where if the browser is IE I'd like to display [this html code] else [display this]. For example, if a browser is IE I want to use this CSS file otherwise use a different one and if it's IE make this cell x pixels high else make it y pixels high. I'm sure this is easy ....
I can't get GetElementsByClassName to work.Clicking on the first button moves data to a second function that when clicked moves the data to the input field.This codes works when I change getElementsByName('pics')to getElementById('upload').But I need it to work with getElementsByName().
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>[code]....
You're going to look at this code and see straight away what's wrong with it, but I've been staring at it for too long that my brain just isn't reading it right.
It's a basic input, you type in your postcode, if it is in the list of postcodes I entered then it replies with a 'Yes' response, otherwise a 'No' response. Unfortunately it keeps saying 'Yes' to anything that's entered.
Here it is, and apologies again for it being annoyingly simple, you know when you've been looking at code too much and you just can't see the small things anymore. [input type.needed=coffee]