How do you redirect a user to a new page when a JavaScript timer expires?
How do I write a JavaScript timer that will automatically redirect my users to a different page when the timer expires? ...
How do I write a JavaScript timer that will automatically redirect my users to a different page when the timer expires? ...
Is it possible to set session variables from javascript? ...
Unfortunately I can't provide a link, but I can provide the majority of the code. I understand I am not particularly performing these functions the proper way, but that is my question. This code is simply to dynamically add divs that highlight a section of an image as a reference to a select box they hover. Furthermore, on page load, bas...
I'm looking for a jQuery plugin that either replaces or improves the HTML <select> tag in Internet Explorer 6. Think of this situation: <select name="test"> <option>Apple</option> <option>Apricot</option> <option>Lemon</option> <option>Peach</option> <option>Pear</option> <option>Raspberry</option> </select> W...
I have a string (fetched via ajax), which is an entire html document (doctype to < /html>). Does anyone know of a way to load it into an iframe? I cannot simply specify the url that returned the document in the src of the iframe, since the response may have come from a post, and repeating it may have ill effects. Also, I can't submit it...
What are JavaScript Data Types? ...
Hi I'm currently working on a website for a Danish company. The content is all in one page and I've included some jQuery-scrolling and stuff. Works nice! For the menu I'm asked to programme the elements so the active element is bold. That I've done too. The problem comes here: The client wants a home button and a next and previous but...
Is there a way to check if a string contains characters of a given language only? (for example Japanese, Hebrew, Arabic) I'm wondering if there is a way implementing this kind of validation in Javascript\Jquery and in c#? EDIT I'm not willing to check if the string contains valid words of a specific language dictionary. I'd like to ...
i need to submit values of 3 different options in a form, but I'm very inexperienced in using ajax. I have 3 different list of options/select values and whenever one of the option is selected it'll submit all the other 2 options. I've only managed to submit a single option but unable to submit the rest of the options. I need some expert ...
http://shanamccormick.com The page loads all the images and then says "(1 item remaining) Waiting on http:// shanamccormick com..." How can i see what it is waiting to load here?? and why does it take sooo long? The index.html file uses a couple small internal JS and one external JS located within my website (jquery.min) The size of t...
i have 3 elemests of radio group. How can i get the value of the radio element? can i have same id for all 3 elements? ??<input type="radio" id="ans" name="ans" value="1" /> <input type="radio" id="ans" name="ans" value="0" /> how will i get the value of ans ...
I am an avid user of the YUI framework (http://developer.yahoo.com/yui/). It has its' strengths and weaknesses both performance wise and syntax wise. I have seen a bit of JQuery and I have worked a little with prototype as well but I have stuck mainly to YUI. My question is, is it better to stick with one Javascript library per applic...
I have a set of HTML files using JavaScript to generate navigation tools, indexing, TOC, etc. These files are only meant to be opened locally (e.g., file://) and not served on a web server. Since Firefox 3.x, we run into the following error when clicking a nav button that would generate a new frame for the TOC: Error: Permission denied ...
i am geting undefined for ans . why? what is wrong? function submitAnswer() { var myForm = document.getElementById('quiz'); var ansVal = myForm.ans.value; var qnoVal = myForm.qno.value; alert ("ans=" + ansVal); alert ("qno = " +qnoVal); return; } <form nam="quiz" id="quiz" > Yes: <input type="radio" id="ans" name="ans" value="1" /...
When I try to close my Google docs tab with unsaved changes, this is what I get in my browser (FF 3.5). Are you sure you want to navigate away from this page? You have unsaved changes in this document. Click Cancel now, then 'Save' to save them. Click OK now to discard them. Press OK to continue, or Cancel to sta...
I'm trying to replace all the occurrences of a variable in a string using javascript. This is not working.: var id = "__1"; var re = new RegExp('/' + id + '/g'); var newHtml = oldHtml.replace( re, "__2"); This is only replacing the first occurrence of id: var id = "__1"; var newHtml = oldHtml.replace( id,"__2"); What am I doing w...
I'm trying to insert text into an html textbox when the user pushes buttons. This is a simple on screen numeric keypad. I have found many different scripts claiming to be able to find the current cursor position in a textbox cross-browser, but none work in IE (I'm using IE8). Is this just an IE8 defect? Is there a workaround? It see...
I have a situation where a display on a webpage needs to be updated at random. I am wanting to do this in AJAX but am not sure how to do this other than to do a while(true) { ajaxFunction(); sleep(1) } Type thing. The problem with this is that the webpage needs to be updated very quickly on a change to the server, but the changes co...
I've been using the jQuery UI Calendar / Date Picker with great success over the last couple months. I've been given a new requirement to allow for a week to be selected (Sun - Sat) rather than a single day. Has anyone accomplished this before? highlighting by week rather than day show beginning date and ending date rather than sing...
Hey guys I'm currenlty working on something and I want if I click a textbox element the value of it. the only problem is that it doesn't have an ID. my html code: <ul id="textbox"> <li><input type="text" value="test1" name="chosen" disabled="disabled" /></li> <li><input type="text" value="test2" name="chosen" disabled="disabled...