Search Result

Collapse
66 results in 0.0050 seconds.
Keywords
Members
Tags
function
  •  

  • My javascript functions do not work in Python?

    Code:
    #!C:/Python27/python.exe
    
    import cgi
    form = cgi.FieldStorage()
    
    a=int(form.getvalue('a','0'),0)
    b=int(form.getvalue('b','0'),0)
    
    
    print """Content-type: text/html
    
    <html>
      <head>
        <title>Greeting Page</title>
      </head>
      <b><h1>Welcome!</h1></b>
      <body>
    ...
    See more | Go to post

  • themightystef
    started a topic function output as form value

    function output as form value

    hi,

    i've been looking for the right answer but can't seem to find it, so I figured i'd give this a try.

    I'm trying to make a website where visitors can input the quantity of a certain product they want, then press a button to have a function calculate the total price of the selected products. so far I've ovly been able to get this final value in an alert box, but what I'm trying to do is to have the final price written...
    See more | Go to post

  • Performance Improvement of Stored Procedure

    I have a stored procedure which is being used on an online form.

    In the form the user is able to ask for records based on an Age. So 5 days old, 2 days old, etc. The age is based on the date that the record was entered or received. So we have JobReceiveDate.


    The stored procedure was written like this. Where @Ageto and @AgeFrom come from the online form.

    Code:
    JobReceivedDate Between DateAdd(dd,
    ...
    See more | Go to post

  • spideynok
    started a topic MOD Function in MS ACCESS

    MOD Function in MS ACCESS

    Hi. I'm a newbie regarding the use of MS Access and i have some problem that i would like to ask for a help or an answer..

    i use this EXCEL formula
    Code:
    =IF(ISBLANK(I5),"",(NETWORKDAYS(F5,I5,HolidayList)-1)*(DayEnd-DayStart)+IF(NETWORKDAYS(I5,I5,HolidayList),MEDIAN(MOD(I5,1),DayEnd,DayStart),DayEnd)-MEDIAN(NETWORKDAYS(F5,F5,HolidayList)*MOD(F5,1),DayEnd,DayStart))
    then i create the same system on MS Access....
    See more | Go to post

  • ammyra91
    started a topic call function

    call function

    hi evryone.....i would like to ask your favour regarding on my php code.....this is my code....

    Code:
    <html>
    <head>
    <title>
    </title>
    <script type="text/javascript">
    function validation()
    {
    	var valid=true;
        if(document.form2.icnumber.value=="")
        {
        	alert(" Please fill in the ' Identification Card Number '
    ...
    See more | Go to post

  • ammyra91
    started a topic call two session in an isset
    in PHP

    call two session in an isset

    HI...i need help in this php project....this is my coding...

    Code:
    <?php
    session_start();
    if(isset($_SESSION ['username']))
    {
    ?>
    
    <html>
    <body>
    Hi, <?php echo $_SESSION['username']['position']; ?> [<a href="logout.php">Logout</a>]
    <br><br>
    <?php echo	"DAILY TASK LIST"; ?>
    <br><br>
    ...
    See more | Go to post

  • BeginnerVBProg
    started a topic Function from another form

    Function from another form

    I have a Public function in 1 form, its purpose is to load data into a listview, but why it doesn't work when i called it in another form?

    I used these line of codes but they doesn't work:
    Code:
    Call form1.loadAudit
         Form1.loadAudit
    loadAudit is my function..
    See more | Go to post

  • Problem returning values from a function written in vbscript

    When I use this code, it works fine:

    <% Function RandomNumber(in tHighestNumber)
    Randomize
    RandomNumber = Int(Rnd * intHighestNumbe r) + 1
    End Function
    SEEDNMBR=(Rando mNumber(16))
    Response.Write SEEDNMBR %>
    However, with the code below I get this error code:Microsoft VBScript compilation error '800a03ea'
    Syntax error
    /seed_modify_bat ch.asp, line 20
    Function RandomNumber(in tHighestNumber)...
    See more | Go to post
    Last edited by dsmith76; Dec 23 '11, 12:46 AM. Reason: typos

  • How to get PMW counter to call a function when value changes

    Hi,
    I have implemented a number of megawidget counters, and I would like them to call a function when their values change. Is this possible?

    So far, I have only been able to get the counters to call my function when I enter keystrokes in the entryfield (excluding the up and down arrow keys, which do nothing). Here's a snippet:
    Code:
    myCounter.component('entryfield').bind("<Key>",myFunc)
    ...
    See more | Go to post

  • limweizhong
    started a topic Override referenced functions

    Override referenced functions

    Hi,

    Say I have already executed the following code in a JavaScript interpreter:
    [code=javascript]
    var x,o1,o2;
    x=function(){ alert(this.z); };
    o1={z:"o1",t:"o 1t"};
    o1.alertfunc=x;
    o2={z:"o2",t:"o 2t"};
    o2.alertfunc=x;
    o1.alertfunc(); // alerts "o1"
    o2.alertfunc(); // alerts "o2"[/code]

    How do I change...
    See more | Go to post

  • martinezgeno199
    started a topic Local function definitions are illegal?
    in C

    Local function definitions are illegal?

    Been at this for a while now. Can't for the life of me figure it out... All help is very much appreciated.

    Code:
    #include "Menu2.h"
    #include <iostream>
    //additional includes
    
    using namespace std;
    
    Menu::Menu() 
    {
    
    
    void Menu::display_main_menu() const 
    {
    	cout << "Here is the MAIN MENU \n";
    }
    void Menu::display_info() const
    ...
    See more | Go to post
    Last edited by Niheel; Sep 30 '11, 02:18 AM. Reason: code tags

  • limweizhong
    started a topic Closures with functions as parameters

    Closures with functions as parameters

    Hi,

    Could anyone explain what happens when some function (x) is passed as a parameter into a function (b) which is nested inside a function(a), i.e.
    Code:
    a=function()
    {
      b=function(t)
      {
        // what scope chain does t have in here?
      };
      b(x); // where x is some random function that could be externally defined.
    };
    See more | Go to post
    Last edited by Dormilich; Sep 27 '11, 04:12 PM. Reason: please use [CODE] [/CODE] tags when posting code

  • ziycon
    started a topic PHP mySQL resource query?
    in PHP

    PHP mySQL resource query?

    I have this first piece of code which works fine but I'm trying to break it up into two parts like in the second code snippet below.
    Code:
    $tables = mysql_query("SHOW tables;");
    while($row = mysql_fetch_array($tables)) {
    	$tableNames .= "<a href=\"".$_SERVER['PHP_SELF'].">".$row[0]."</a><br/>\n";
    	$tableCount++;
    }
    So it passes the sql query...
    See more | Go to post

  • brnedon bourne
    started a topic Varied Job Schedule, Excel

    Varied Job Schedule, Excel

    I've been working on an idea on how to create a job schedule from a list of names and a list of numbers (numbers are positions) I'd like it to generate 4 columns of predefined numbers so that each person has a unique number for each column. Ex.
    1 2 3 4
    Jim 21 22 11 10
    Dave 10 11 21 22
    Will 11 10 22 21
    John 22 21 10 11

    Does anyone know how I...
    See more | Go to post

  • gwidaz
    started a topic Email confirmation during registration
    in PHP

    Email confirmation during registration

    Hi,im trying to make registration form..And i want that users can use just couple of emails to register..I will try to explain what i mean:

    Im using code to check mail:

    function checkEmail($str )
    {
    return preg_match("/^[\.A-z0-9_\-\+]+[@][gmail_\-]+([.][com_\-]+)+[A-z]{1,4}$/", $str);
    }

    This works fine if u trying to register for example with sample@gmail.co m..But confusing...
    See more | Go to post
Working...