Sponsored Content
Full Discussion: Help in javascript
Top Forums Programming Help in javascript Post 302364397 by daptal on Friday 23rd of October 2009 01:43:46 AM
Old 10-23-2009
Help in javascript

Hi ,

I wanted to know if its possible to execute a javascript function like this

Code:
E:- function js1(){
     alert ("this is js1");
    }
    function js2(){
     alert ("this is js2");
    }

    function js3(){
     ....
    execthisscript(js1);
    execthisscript(js2);
   }

   function execthisscript(functionname){
    //now how do i execute the function ??
}

Can anybody help in this regard.

Thanks,
PL

Last edited by daptal; 10-23-2009 at 02:44 AM.. Reason: added tags
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Javascript: Edit a script ?

Hi, i got this script but when i hit reset i loose the times in the form box. Can someone please edit this script so when i hit reset i dont loose the times in the form box's and also have a button to reset everything, including the form boxs <script language="javascript"> // stopwatch... (1 Reply)
Discussion started by: perleo
1 Replies

2. UNIX for Dummies Questions & Answers

javascript onClick help

I have two radio buttons with corresponding text boxes for input, when one is chosen I am disabling the text box for the other, is there a way to "gray out" the disabled text box using background-color or something? Any help is greatly appreciated, right now my onClick looks like this: ... (1 Reply)
Discussion started by: k@ssidy
1 Replies

3. Shell Programming and Scripting

javascript injection

Please advise a script to get rid of the following code which is infected in a large number of files ( in particular php and html files ) <div id="testws35fdgh"></div> <script language="JavaScript"> var0 = "\x69\x3c\x33\x27\x34\x38\x30\x75\x3b\x34"; var1 =... (20 Replies)
Discussion started by: fed.linuxgossip
20 Replies

4. Web Development

Javascript -> Shell Script

Hi all, I am trying to call a shell script from a javascript function. This works fine and the shell script returns everything I expected BUT I cannot figure out how to pass command line arguments to this shell script. Using GET, I assume the url being called needs to be one string with no... (7 Replies)
Discussion started by: mark007
7 Replies

5. Web Development

Sortable Tables in Javascript

Hi, I am writing a web application using Perl-CgI mostly. I wanted to integrate a table in which I was capable of sorting columns and I don't think this is possible with static HTML code. Can someone help me integrating some javascript code into what I have to acheive the above? Regards,... (6 Replies)
Discussion started by: garric
6 Replies

6. Web Development

Javascript Problems in Opera 10

Ref earlier post: https://www.unix.com/web-programming-web-2-0-mashups/118283-opera-10-0-released-looks-nice.html I have noticed that Google Docs, Speadsheets does not work properly in Opera 10. Anyone else seen the same thing? (1 Reply)
Discussion started by: Neo
1 Replies

7. Programming

Need help with Javascript

Hi guys, Ok first, let me explain what I want to do. I'm making a theme for the iphone, and I found a nice wallpaper slideshow script. Here is how it knows which wallpapers to use: <script type="text/javascript"> // SLIDE ROTATION FREQUENCY (in minutes) var slideRotation = 0.4;... (3 Replies)
Discussion started by: kicker75
3 Replies

8. Shell Programming and Scripting

want to use javascript as shell script

<html> <head> <title>Weather & Aviation Page - METAR decoder</title> <meta name="Title" content="Weather & Aviation Page - METAR decoder"> <meta name="Keywords" content="METAR decoder"> <meta name="Publisher" content="SkyStef"> <meta name="Description" content="SkyStefs weather and aviation... (4 Replies)
Discussion started by: anuajay1988
4 Replies
javascript(n)						  HTML and Java Script Generation					     javascript(n)

NAME
javascript - Procedures to generate HTML and Java Script structures. SYNOPSIS
package require Tcl 8 package require javascript ?1.0? ::javascript::makeSelectorWidget id leftLabel leftValueList rightLabel rightValueList rightNameList ?length? ?minWidth? ::javascript::makeSubmitButton name value ::javascript::makeProtectedSubmitButton name value msg ::javascript::makeMasterButton master value slavePattern boolean ::javascript::makeParentCheckbox parentName childName ::javascript::makeChildCheckbox parentName childName DESCRIPTION
The ::javascript package provides commands that generate HTML and Java Script code. These commands typically return an HTML string as their result. In particular, they do not output their result to stdout. ::javascript::makeSelectorWidget id leftLabel leftValueList rightLabel rightValueList rightNameList ?length? ?minWidth? Construct HTML code to create a dual-multi-selection megawidget. This megawidget consists of two side-by-side multi-selection boxes separated by a left arrow and a right arrow button. The right arrow button moves all items selected in the left box to the right box. The left arrow button moves all items selected in the right box to the left box. The id argument is the suffix of all HTML objects in this megawidget. The leftLabel argument is the text that appears above the left selection box. The leftValueList argu- ment is the values of items in the left selection box. The leftNameList argument is the names to appear in the left selection box. The rightLabel argument is the text that appears above the right selection box. The rightValueList argument is the values of items in the right selection box. The rightNameList argument is the names to appear in the right selection box. The length argument (optional) determines the number of elts to show before adding a vertical scrollbar; it defaults to 8. The minWidth argument (optional) is the number of spaces to determine the minimum box width; it defaults to 32. ::javascript::makeSubmitButton name value Create an HTML submit button that resets a hidden field for each registered multi-selection box. The name argument is the name of the HTML button object to create. The value argument is the label of the HTML button object to create. ::javascript::makeProtectedSubmitButton name value msg Create an HTML submit button that prompts the user with a continue/cancel shutdown warning before the form is submitted. The name argument is the name of the HTML button object to create. The value argument is the label of the HTML button object to create. The msg argument is the message to display when the button is pressed. ::javascript::makeMasterButton master value slavePattern boolean Create an HTML button that sets it's slave checkboxs to the boolean value. The master argument is the name of the child's parent html checkbox object. The value argument is the value of the master. The slaves argument is the name of child html checkbox object to create. The boolean argument is the java script boolean value that will be given to all the slaves; it must be "true" or "false". ::javascript::makeParentCheckbox parentName childName Create an HTML checkbox and tie its value to that of it's child checkbox. If the parent is unchecked, the child is automatically unchecked. The parentName argument is the name of parent html checkbox object to create. The childName argument is the name of the parent's child html checkbox object. ::javascript::makeChildCheckbox parentName childName Create an HTML checkbox and tie its value to that of it's parent checkbox. If the child is checked, the parent is automatically checked. The parentName argument is the name of the child's parent html checkbox object. The childName argument is the name of child html checkbox object to create. SEE ALSO
html, ncgi KEYWORDS
javascript, html, checkbox, submitbutton, selectionbox javascript 1.0 javascript(n)
All times are GMT -4. The time now is 08:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy