15,699 Topics
![]() | |
Can you help me with the equivalent code of this in firefox? Thanks in advance. [CODE]<html> <head> <title>Event Handling</title> <script type="text/javascript"> <!-- //MOUSE COORDINATES function updateMouseCoordinates(){ coordinates.innerText = event.srcElement.tagName + "(" + event.offsetX + "," + event.offsetY + ")";//works on IE not in firefox } //--> </script> </head> <body onmousemove="updateMouseCoordinates()"> … | |
Hi, I'm having trouble getting access to a Radio button. I found on the internet that I can use: [CODE]document.form_name.radio_name[number].checked = true;[/CODE] So I'm doing that: [CODE]document.hitForm.Answer_1[0].checked = true;[/CODE] But it isn't working. I have included a picture of the Chrome Dom inspector. [URL="http://yfrog.com/n0radiobuttonsj"]Pic[/URL] The first circle points to the … | |
hi i am hoping that i can explain my predicement properly. i have a form on a page that is working the jquery form plugin. if i use the form in a normal html environment then the form works and the success is placed in the correct div '#f1'. however, … | |
Hi, I need to replace "Link Text" with the value in the variable (myNewString). myNewString is just text e.g hello code document.write(myNewString); <a href="welcome.html">Link text</a> i need some thing like the below or even a php version of it <a href="welcome.html">(myNewString)</a> --this syntax is incorrect it seems THANKS!!!!!!!! | |
hey... I know this is real easy to do and all... but I just can't remember how to do it... I have a textarea named 'code' and a completely empty div [CODE] <div> </div> [/CODE] the textbox get's filled with html code... (dynamically of course) and now I need to … | |
what is the function of: <script> <A> HREF Definition List <comment> | |
Hi, I would like to replace the vertical scroll bar with a div of my own. I would have just cancelled the scroll bar, and created a div, but I want it not to override what is in the containing div. How can I do that? Thanks, Sharon | |
Hello everyone, I have a working page in PHP. What this page do is student will keyin his/her ID and press Papar (Display in English) and th result will be shown in the same page in a lightbox. The problem is (well not really a problem) the page need to … | |
I need to round down to the nearest quarter hour (or .25 in decimal) via Javascript and have not come across any appropriate code yet. Anyone have a solution? | |
I asked this in Google's chromium-discuss list, and nobody replied. I thought this group might have someone who can help. My original post: [B]Persistent values stored in opener.[variable]? [/B] [INDENT]How can I determine what Chrome considers the current page's 'opener'? In all other browsers, assigning a value to a javascript … | |
I am trying to figure out how to add up a series of text boxes which contain numbers that a user will input and have the total of those text boxes show up in a quantity text box on the next page. Not sure if i should use javascript or … | |
Hi, I was wondering if it is possible to get a param value with javascript from an java applet. [CODE]<object type="application/x-java-applet" classid="java:Link.class" width="100" height="25"><[COLOR="Red"]param value="http://f0802594f7f84cdaa59017c6588bf486/selif/moc.xnilemil"[/COLOR] name="java"><and many more that isn't needed> [/CODE] So can I get this param value with a javascript method? I couldn' find anything on google so … | |
I'm studying some javascript code specified for cpm. Although this is not my code I'm just trying to understand all the aspects of the code. Some of these lines are confusing to me and I'm unsure of the exact purpose. any info on these codes would be much appreciated. The … | |
I recently completed making a page in HTML & JavaScript. It is basically a template including various textfields, radio buttons, and dropboxes. There is also a submit button at the bottom. My goal is to have a user enter all the input information and then click "Submit." After hitting submit, … | |
Hi all. Before I say any more, I am a compete noob at JavaScript. I have been attempting to learn some though. I want to make some Windows 7/Vista sidebar gadgets, so, as a practise, I am making a very simple calender. It uses a CSS to draw up a … | |
Hi, I need an answer to a problem with iframe below. I have an iframe jsp page which is a popup window from an other jsp page. The iframe jsp popup window has few buttons. I need the return reponse of button clicked from iframe in parent window. BTW the … | |
Hi, I'm looking for some help. I need to add the letter "a" to the id of an option. The content is dynamic but you will get the idea from below. Any help would really be great. Thanks e.g. [CODE] <script type="text/javascript"> function Toggle(id) { document.getElementById("a18").style.display = "none"; document.getElementById("a19").style.display = … | |
I'm trying to trap a user entry that cannot be found in the database. When a code is entered, the page should give a "Code Not Found" message if it is an undefined value. However, it didn't; and it always shows the "undefined" value to the page instead. I'm really … | |
I AM WEAK IN JAVASCRIPTING, PLEASE HELP ME.[B]THIS IS MY BASIC IDEA TO TOGGLE VALUES USING JAVASCRIPT[/B] [CODE] [COLOR="red"]<?php $xyz=5; ?>[/COLOR] <head> <script type="text/javascript"> var x; function displaymessage() { if (x==5) { alert("yes"); x=1; } else { alert("no"); x=5; } } </script> </head> <body> <form> <input type="button" value="Click me!" onclick="displaymessage();" … | |
Hello ladies and gentlemen I've been trying to find a workaround this issue, and maybe you can help me find a solution. I've got a signature footer bar in a html document. This footer bar must display in several websites, in several domains, so i've been looking for an include … | |
Hi everyone, I need to upload image [U]without refreshing a page[/U] and [U]show the progress of uploading[/U]. How can i do it? Thnx | |
hello all, how to use javascript in content page of asp.net. i put the javascript code below contentplaceholder . but it is giving an error. how should i use javascript. plz help me as soon as possible. anu | |
In another thread I found that a good way to show and hide parts of a form based on previous entries would be as follows: [CODE] function showhidefield (method) { var hideablearea = document.getElementById("hideablearea"); var hideablearea2 = document.getElementById("hideablearea2"); var hideablearea3 = document.getElementById("hideablearea3"); switch (method) { case "1": hideablearea.style.display = 'block'; … | |
I am creating a website for my company's helpdesk and need an Event Calendar for conference room reservations. User need to be able to check the availability of conference rooms and enter a reservation on the calendar. Please help | |
Hello friends I have made the below mentioned code, it is working but its second function to delete a row is not working: [CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script> function generateRow() { var d=document.getElementById("sip"); d.innerHTML+="<p> <input type='text'></p>"; } function deleterow() { var f=document.getElementById("sip"); f.innerHTML-="<p> <input type='text'></p>"; … | |
Hello Friends Is there anybody who can tell me about Jquery? I know why one use Jquery but I want to know how to write jquery as per requirement? | |
Hi, how to run the second function only when the first will be completed in? [CODE]$(document).ready(function() { $("#first").load("first.php?id="+ Math.random()); $("#second").load("second.php?id="+ Math.random()); }); [/CODE] | |
I've been tasked with plotting various points onto a map. Due to financing and the nature of the project we can't use Google or any of that type of thing. So we have to do this the hard way using PHP or Javascript. I'm supplied a map(Mercator) and the coordinates … | |
So I want to show hide various parts of a form based on html form entries and this is what I have so far. [CODE]<script language="JavaScript"> function showhidefield(method) { if (method = 1) { document.getElementById("hideablearea").style.display = 'block'; document.getElementById("hideablearea2").style.display = 'none'; document.getElementById("hideablearea3").style.display = 'none'; } if (method = 2) { document.getElementById("hideablearea").style.display … | |
Hi there, I need some help actually using the ajax I've got, and defining the url in the ajax [if that makes sense] I've been trying to do it but It's not working atall and I wondered if someone could actualy show me in the code how to go about … | |
Hi Everyone, I was wondering can someone with Ajax experience to have a look at the following PHP script. Its a simple domain checker. I am using sessions to pass data from page to page but when I get to this domain checker page and I search for a domain … | |
I have a simple html form and i have a small piece of script which validates it, I would like it so that after the validation is carried out, if the return value is true, then the user will be redirected to index.html i have tried several pieces of code … | |
Hey everybody So I created a dropbox that would only enable certain entries in a second dropbox when specific options in the first dropbox are selected. For example, if A is selected in dropbox 1, then Z and X will be available for selection in dropbox 2, whereas if B … | |
I am embedding a flash photo gallery object in an html page. The flash gallery has a param "thumbVisibility" that allows you to set the visibility of the thumbnails with the options "NEVER" and "ALWAYS." I have it set to "NEVER" so that the thumbs do not show when the … | |
Hi guys Im having a bit of trouble with my form, I basically want the values from the checkboxes to output to a div, I also want to give the check boxes a numerical value eg: if monday conference selected that would cost £80 if Tuesday conference selected theat would … | |
Hi, I need to display a table with many rows. I would like to only paint one page and have the scroll bar of the containing div set to the real range. I would also like to listen to the scrolling event and then display the relevant set of rows. … | |
Hi, I'm kind'a new to AJAX, and have not a lot experience with JS, so this might be just a stupid beginners-error... I'm busy creating a PHP-website in which i'd like to implement some dynamic features (like adding comments tot photo's without having to reload, searching a user-DB, etc). I've … | |
ok there's a game i want to try and make an application for using Java i have some knowledge of JavaScript but its only used for drawing pictures and graphs and arranging images :P what i want to do is create an app for a game called tribal wars so … | |
how can i clear cookies from browser when ever i change any item from a drop down using javascript..... | |
hi, now i get value if i selected checkbox(id which was selected), but how get value when i unselected (id which was unselected)? For example I push on 1, and i get value 1. When I unselect 1, i get value 1. I hope you understand my problem. [CODE]<script> $(document).ready(function() … | |
hello all, i am having a problem.When i was working in an application without master page and content page, javascript was working finely.But later i needed to use mastr paga in my project.After using master page, javascripts is giving error on call of the function. error is like below. "Microsoft … | |
Hello, I've created two form fields (username, password). When a user comes to the page, the word "Username" is shown in the first form field. The word "Password" is shown in the second field. When a user clicks inside the field, the word inside the field erases automatically, allowing them … | |
hi all, i am trying to have the content of a txt file loaded in a page (which works), but this file changes on a regular basis and I need just the text to refreash, not the whole page, this is what I have... As mentioned, it correctly displayes the … | |
Hi, What i want is: I have a textarea. When user selects some text and presses a button "[smth]" is added to the begin and end of selected text. How can i do this? It must work on all browsers. The same thing makes daniweb when you format a text … | |
Hey guys, I'm having some AJAX troubles that hopefully someone can help me with. I have some PHP code, which works fine. And I'm trying to call the PHP function with AJAX. But I've never used AJAX at all so I'm a little confused. I've tried to fiddle around with … | |
hey huys i have a javascript ajax function that gets the parameter "id". I want to send it via post or get to a php file that gets database info based on the "id" but i cant get the id to transfer over to the php file. here is my … | |
My school assignment is to use browser detect to get the name and variation of a browser. I have been looking for detectible features, but the codes are way long. Document.all is good for seeing if this is explorer 4+, but what is a good thing for finding explorer 7? … | |
My code gives me an error only the first time when i press the checkbox. If i press it for the second time or just to uncheck the checkbox and it gives me the right answer. Can you please help me, i tried almost everything. I use IE7, xampp with … | |
Ok, so here is what I've gathered together so far. I've got a countdown timer, that at the end of 180 seconds it executes the function clearit. The problem I'm having I would like to put a user chosen variable in place of the 180. Any help would be greatly … | |
This is a very simple WYSIWYG Text editor that only has three options Bold, Italic, and Underline. just copy and paste on the page you want it on. it is really easy to add more features. ENJOY |
The End.