The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
PHP and Javascript in action c0mrade Shell Programming and Scripting 0 09-22-2008 08:30 PM
javascript injection fed.linuxgossip Shell Programming and Scripting 20 08-21-2007 06:46 AM
Javascript Replace Globally insania Shell Programming and Scripting 2 06-27-2007 09:51 PM
javascript onClick help k@ssidy UNIX for Dummies Questions & Answers 1 10-12-2005 08:18 PM
Javascript: Edit a script ? perleo Shell Programming and Scripting 1 05-23-2003 06:45 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 4 Weeks Ago
daptal daptal is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 60
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; 4 Weeks Ago at 01:44 AM.. Reason: added tags
  #2 (permalink)  
Old 4 Weeks Ago
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,929
I believe eval is the function you're looking for.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0