I've got a function, you can see it below, that is being called
onmouseup in the textarea on my main form. The idea is to find a
selection if possible and store that text in a global variable. I can't
get this to work in any browser on a Mac, though it works alright on a
PC. What am I missing?
I grab Jquery scroll bar demo from htmldrive.com and try to work it out for myself. But when I modify the coding, some text color doesn't change as it suppose to be. I am not sure where is the problem. The function is as the following
In a web page I have a div tag that has a onlick event registered through the event listener. However, that same div tag also has a onmousedown - start a drag and drop script
The problem I am having is that once the drag and drop is complete, the mouse button is released and the onclick event is firing. I've tried returning false from the function dealing with the mouse up and cancelling the event with if (e.stopPropagation) e.stopPropagation(); else e.cancelBubble = true;
I have a web server built in to our Student Data system. I want to put a teacher survey form out there but can't modify the DB and have no cgi ... darn proprietary web server.
Can I use JS to save form values to a separate text file? So far the best I can do is appendData() into the current html.
In my application, i have to display the employee information and the employee name(with first name and last name) as hyperlink....n when i click the hyperlink i should get the information of that particular employee as in the edit page..............what all i need is, i want to capture the data which is the hyperlink and through that i have to get the data of that hyperlink from database...through Javascript n java....
i have to display the employee information and the employee name(with first name and last name) as hyperlink....n when i click the hyperlink i should get the information of that particular employee as in the edit page..............what all i need is, i want to capture the data which is the hyperlink and through that i have to get the data of that hyperlink from database...through Javascript n java .
I can view plain text public data from a government web page. But I want to capture that text and put it into a string var in a javascript to parse the data for display in a very different way (create graphical indicators).
1. How do I get the www.webtext.gov/textpage.txt into a string var. 2. I would prefer to use pure javascript as my users are very diverse and not all of them have recent brosers (IE8 or 9, Firefox 4, 5 or 6, etc.). 3. I would be able to use php on the server if that would do it.
I have be days searching the web for a solution but have found none that suits my purpose.
I have a PHP form with a html section at the bottom. There are 14 input text fields on the form and I want the form to send of the email as it should do and also take the name field, pass it to the following web page and display it in a <div> tag.
I think the relevant code looks like this
HTML section
Can I capture the input from FieldData0 and send it to the next webpage by Javascript or as a cookie? Or to have then confirm their name in a second form and automatically capture it before the submit button.
Im currently creating a textbox with an AJAX auto-complete feature but have reached a wall. I can create a div below it with a list of results but now need to allow the user to select. I can setup it up with an onClick, easy. But I need help with the arrow buttons as that is how I would like it to function. The script only allows 5 results at a time with each having an id of 0 to 4. Each result is a div, below is this code (created by PHP):
There is a JS file attached to the page this is echoed onto, so what would the code need to be on both the div (mouseup, mousedown...) and then the function that calls.
How can I have global variables and global arrays whose value(s) can be modified and accessed by all the Javascript functions in my HTML document as well as by the HTML code?
ive got a problem with some of my code. mozilla likes it, but IE gives an error and doesnt do anything with the code what im trying to do is show two fields only if a checkbox is checked. the javascript function is as follows:
I use a basic pop-up window code that i have used for many years.I probably need to update it, but i was wondering why it will work for every browser but IE8.
function popUp(URL) { day = new Date(); id = day.getTime();[code].........
I have some Javascript that takes the input from some textboxes and then puts them all into a sentance automatically. It works perfectly in IE but not with FireFox... does anyone know how to make it work with both browsers?
HTML Code: <script type="text/javascript"> function Text_Change() { var TxtFName = document.getElementById("TxtFName"); var TxtSName = document.getElementById("TxtSName"); var TxtAge = document.getElementById("TxtAge"); var TxtLoc = document.getElementById("TxtLoc");
var SpnDisp = document.getElementById("SpnDisp");
var FName = TxtFName.value == "" ? "?" : TxtFName.value; var SName = TxtSName.value == "" ? "?" : TxtSName.value; var Age = TxtAge.value == "" ? "?" : TxtAge.value; var Loc = TxtLoc.value == "" ? "?" : TxtLoc.value;
SpnDisp.innerHTML = "Hello " + FName + " " + SName + ", " + "you are " + Age + " years old and " + "at the moment you live in " + Loc; } </script>
im working on my online portfolio and I have an external javascript file that has functions to add a piece to the collection...here is the link to my pageillustratorthe javascript file is herehttp://www.freewebs.com/harrisonengl...ngleweb/add.jsas you see some of the pieces will show up, and some wont. they are all going off the same function, and all work when i run the html off my computer harddrive rather than the freewebs server.Also, i understand that formatting of the site will get all messed up when it is ran in different browsers... for instance it works in firefox and safari now, but not IE and Chrome
This script is supposed to tally the score of the questions. It shows up fine but it does not tally the score :confused:
<p>You are on a business journey beyond traditional small business style <input type="checkbox" value="1" name="Q1">yes <input type="checkbox" value="0" name="Q1">no</p> <p>You don t want to be the glue holding everyday operations together <input
Using Firefox 3, trying to use a confirm box where it says ok or cancel. The box shows up to confirm ok or cancel but if I click cancel it doesnt seem to return false, it just goes to the link of the url set in href. Im including the js file in the page:
Code: <script src="js/forms.js" type="text/javascript"></script> I then call it in the link:
sort of made a thread about this earlier but I dont feel I explained the problem very well, if you go to http://love2-create.com and click on the orange "view profile" link about halfway down the left hand column a tab opens showing a profile with a small picture gallery at the bottom, this gallery works fine in firefox and google chrome, however in safari it works sometimes but not always and in IE it usually works on the first time the page is loaded but then when the page is refreshed and the profile link is clicked I get an Error: 'document.getElementById(...)' is null or not an object on line 60,the lines in question look like this:
HTML Code: buildcontentdivs:function(setting){ var alldivs=document.getElementById(setting.id).getElementsByTagName("div")
I wanna create a functionality where on clicking a (minus) button a div show slide up and and the image should change to (plus). Again on clicking the plus button. the content div should slide back out