Java Script Function
Sep 11, 2006How to get the Value from Drop Down list. Using Java Script? In the Drop down list , i want to get the selected value ? How do i get it using JavaScript ??
View 3 RepliesHow to get the Value from Drop Down list. Using Java Script? In the Drop down list , i want to get the selected value ? How do i get it using JavaScript ??
View 3 RepliesI want to call java function 3 times from vb sub. but i worked one time.
Here i try the following:
is it possible to use the xmlHTTP.responseText in any other java function, after execuation of stateChanged() function??? example in ajax...
[Code]....
i used many ways (a little bit i know) to do but could not get the success. how can we do???
I want to take a popup function and cause it to open Xseconds after the parent page has opened.
This is the script i want to run:
PHP Code:
<script type='text/javascript'>
<!--
function MM_openBrWindow(theURL)
{
newWin = open(theURL);
}
//-->
</script>
I altered it a little, just want to check i cut down newWin = open(theURL ,winName, features); not to include features and winName, I assume that these are NOT required attributes?
How do i do this?
In a JSP, I try to pass a Java object to a javascript function, like this:
<%
Test test = request.getSession().getAttribute("test");
//Test has a field of lasName, such as test.getLastName() will return "john"
%>
//This is for simplizing. In reality this js codes are in different file such as includeFile.js
<script>
var obj = <%= test%>;
[Code]...
What is an equivalent TimeSerial() function of VBscript in the Java
Script??
I have two variables hour and minutes.
Timeserial(hour,minutes) returns the time hour : minutes.
But I want to do similar thing using the javascript .
i try to post java script function from c# code. i success to make regular post data - like has regular html form pages but i have some troubles to post java script data. mybe i can figure this out with calling to function from address line - if it's possible?? some body have ide? there is away to call java script function from address line??
View 2 Replies View RelatedI have inherited some code and have sort of been going through a crash course with JS (typically I'm working in C/C++/Java/asm). The person before me used jQuery, which seems to be basically a convenience thing and for the most part I understand the applications they've used it in. However, one thing scares me. The primary JS file is prefaced with:
Code:
And I have no idea what that does. From what I can guess, it probably waits to define the rest of the code until the document has been entirely loaded, but when I wrap it around MY code it just breaks everything.
I have a bunch of .js files that I insert into my my html file using
the <script> tag, and this works just fine. The .js files contain
info about the menu, table set up, etc. and take care of the page
format.
But now, I have a tidbit of Javascript in an htm file, and this tidbit
opens up a new window with some information on it. I want to insert
all of the menu and format javascript files on this new window that it
opens. so, my question is: how would I do this: (since this doesn't work!)
output.document.write('<SCRIPT language=JavaScript
src="/scripts/menu_array.js" type=text/javascript></SCRIPT>');
Anyone know a good site that'll teach you how to make a drop-down navigation
bar? I assume it is javascript
I have a drop down field that is dynamically populated using an XML sheet that looks like:
Code:
I populate the dropdown box using javascript that looks like this:
Code:
My the drop down form looks like this:
Code:
When a user clicks on the drop down box, all of the values inside "<title>" tags get displayed. Once the user has made their selection, the form is submitted and posts the user's option. My problem is that when the user clicks on the drop down box, I want them to see the content included in the "<title>" text but I want the form to post the data included in the "<xml>" tags.
For example, if the user clicks on the drop down menu and selects the option 'Animals' I want the form to post 'xml/animals.xml'. Any ideas how to handle this?
i have found using java script as an exam timer for displaying it to the client is more good than using php..
but i want the page to exit as soon as 40 misn are out...
if java says 40 misn out is there any way for the php to
note that and perform the rquired action?
i am thinking of parallely starting a timer at the server side in php
do u think so? or is htere any way for java script to tlel php the times out
I have been creating a webpage and I have added some buttons via frontpage and linked them to another page, the thing I cant figure out is how to add commands like a javascript button to enable a smaller window, no toolbars, no scroll bars etc.
is there any way i can make the buttons so when they are pressed a window opens with my dimensions etc?
Can Java classes/objects be used from within the javascript code on the
HTML page? I.e., can I call a Java method from the javascript function?
in JSP, it's easy to pass value from java-variable to
javascript-variable, like
js_function(a)
{ a=<%java-class.A%>
}
I'm wondering how is the other way around? I tried
js_function(a)
{ <%java-class.A=%>a
}
but there was compiling error.
how is it possible to backdoor a java based chat room?
View 2 Replies View RelatedI basically want to be able to store and retrieve a tree structure in
greasemonkey. Unfortunately the GM_setValue and GM_getValue functions
only take string key value pairs. Is there a native javascript function
that will serialize the object so that it can be stored and retrieved
as strings?
i am calling a javascript which is returning NaN and is getting printed
on the broweser i want to supress it.
I'm looking for a javascript, that can detect which java VM is installed and
what the current version is. Can any of you give me some details?
I'm writing this routine that calls the length() member of
java.io.File. Is this object generally available in most mainstream
browsers, or do some of them lock it down?
I have the following script in my jsp. I want to cut this script and include it in a .js file But it is not working with me.
Here is the script :
Code:
<script language="javascript">
function checkForUnaddeditems() {
var mainElement = document.forms.mainentry
var quatityValue = mainElement.<%=quantityelement%>.value
var productIDValue = mainElement.<%=productIDelement%>.value
var price = ""; .....
I copied the previous code into a check.js file and referred to it in the jsp by
Code:
<SCRIPT type="text/javascript" SRC="check.js"></SCRIPT>
I need help with some coding (obviously I am messing something up).
I want my visitors to open up a new page .... tdtest.html.
I have it open up into a new window and at the end of the page I am using this coding to close the window:
<a href="javascript:window.close();">Close Window</A><br>
It is not working at all on either IE or Netscape.
What am I doing wrong, and what is the easiest way to do this?
I am trying to use the same DHTML combo box script on a web page for our church server. I post the same script on the page deleted the links and add a new link under the different icon and it shows the same links on the previous icon (Fall.gif). I want to use the same code on a different icon with different links. I know how to move the inner menu to position. I just need to make this work on the different icons, i.e. winter, spring, or summer. Code:
View 2 Replies View RelatedI have a table on a html page, on some of the <td>'s are onclick evens ... for example ...
onclick="add();"
Later on that page is a div which is hidden when the page loads, I have the following javascript that sets its visibility to visible, showing the DIV, as per below.
function add() {
MMDiv2.style.visibility='visible'
}
What I wish to do now is to send a value on the onclick. I have 1 DIV that gets displayed and hidden and several <TD> onclicks that do it. Is there some way to send a variable from the onclick of a <TD> to the div. For example, in the DIV will be a text form field, is there anyway to populate this with a value from the onclick to tell which <TD> has been clicked?
Does anyone know how to use a prompt on java applet?
I was to create a very simple calculator. Two prompts will appear asking for inputs. Then the sum, product, difference, and quotient will appear on java applet.
I have to develop a program for translating a word in english into pig latin, I have most of it done, it runs but I can't make it define if the first letter see if it's a consonant or not, if it's a consonant take the consonant out and put"ay" at the end and if it's not consonant just put the "ay" at the end of the word, and it has to give an error message if user puts in more than one word, it's done in 2 classes, been stuck on this for hours now have done a lot of research but seems like everyone is doing a more advanced program. Here's my program:
First class
public class piglataintran
{
private String translate;
[code]....