User Profile

Collapse

Profile Sidebar

Collapse
Mike1961
Mike1961
Last Activity: Sep 5 '08, 05:23 PM
Joined: Apr 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Mike1961
    started a topic Split value and insert into query

    Split value and insert into query

    Hi all.

    I have problem with this asp code:

    Code:
    strSplitDati = Split(request.Form("dati"), ",")
                
            for i = LBound(strSplitDati) to (INT(UBound(strSplitDati)/4)-1)*4 step 4
     
           	            
    strSql = " INSERT INTO "
    strSql = strSql & " tbl "
    strSql = strSql & " ( "
    strSql = strSql & "
    ...
    See more | Go to post

  • Mike1961
    replied to [Javascript] Checkbox values
    No problem acoder, problem solved:

    Code:
    function Re(){
    
    var f=document.getElementById('id_form')
    var stringa=''
    
    for(var k=0;k<f.elements.length;k++){
      stringa+=f.elements[k].value+',';
    }
    
      window.opener.document.myform.dati_aggiuntivi.value = stringa
      alert("OK!");
      window.close();
    
    }
    
    ...
    ...
    See more | Go to post

    Leave a comment:


  • Mike1961
    replied to [Javascript] Checkbox values
    Your help is not the help I think
    However, thanks....
    See more | Go to post

    Leave a comment:


  • Mike1961
    replied to [Javascript] Checkbox values
    OK, please acoder try this page htm:

    http://users1.titanichost.com/MiguelRivero61/...
    See more | Go to post

    Leave a comment:


  • Mike1961
    replied to [Javascript] Checkbox values
    Yes but this is already done:

    Code:
    function insertf1(stringa) 
     
    {
     
       var s = "";
       for( var i = 1; i < 7; i++)
     
      {
       
          s += "," + document.getElementById('test_'+i).value;
            
       }   
            window.opener.document.myform.dati_aggiuntivi.valu  e = s;
            
            return s.substr();
    ...
    See more | Go to post

    Leave a comment:


  • Mike1961
    replied to [Javascript] Checkbox values
    Sorry, I don't understand.

    I do not know how many fields I will have on the form secondary......
    See more | Go to post

    Leave a comment:


  • Mike1961
    replied to [Javascript] Checkbox values
    Error not change:

    Code:
    function insertf1(stringa) 
     
    {
     
       var s = "";
       for( var i = 1; i < 7; i++)
     
      {
       
          s += "," + document.getElementById('test_'+i).value;
            
       }   
            window.opener.document.myform.dati_aggiuntivi.value = s;
            
            return s.substr();
       
    }
    ...
    See more | Go to post

    Leave a comment:


  • Mike1961
    replied to [Javascript] Checkbox values
    Ok, I try this but response with error 'Object required', why?:


    Code:
    function insertf1(stringa) 
    
    {
    
       var s = "";
       for( var i = 0; i < 7; i++)
     
      {
       
          s += "," + document.getElementById('test_'+i).value;
            
       }   
            window.opener.document.myform.dati_aggiuntivi.value=s;
    ...
    See more | Go to post

    Leave a comment:


  • Mike1961
    replied to [Javascript] Checkbox values
    Ok I understand.

    I need insert in the string:

    [code=html]<a href="javascrip t:insertf1(docu ment.myform.SOT TODETTAGLIO _VERIFICA_6.val ue+';'+document .myform.Esito.v alue+ ';'+document.my form.ITEMS_6.va lue+';'+documen t.myf orm.ITEMS_KO_6. value)">[/code]

    all the values selected in the secondary form and insert this string in the hidden field of the main form; whether a value or more valu...
    See more | Go to post

    Leave a comment:


  • Mike1961
    replied to [Javascript] Checkbox values
    I have change the code.

    This is main form:

    Code:
    <html>
    <head>
    <script language="javascript" type="text/javascript">
    <!--
    
    // Variabile globale contenente l'istanza 'window' del popup corrente
    var popup = null;
     
    function Forum(fld, tbl, col, w, h)
    {
      var pw = Math.floor((screen.width - w) / 2);
    ...
    See more | Go to post

    Leave a comment:


  • Mike1961
    replied to [Javascript] Checkbox values
    Open this link:
    http://users1.titanichost.com/MiguelRivero61/

    Select "cespiti" value in the main form;

    In the popup page I have secondary form;

    Select checkbox and the other fields and click in the button "salva".

    Generate LG string...
    See more | Go to post

    Leave a comment:


  • Mike1961
    replied to [Javascript] Checkbox values
    checkbox unique in the secondary form:

    Code:
    <input type="checkbox" name="DETTAGLIO_1" value="CS7">

    checkbox different in the secondary form:

    Code:
    <input type="checkbox" name="DETTAGLIO_1" value="CS7">
    
    <input type="checkbox" name="DETTAGLIO_2" value="CS20">
    ...
    See more | Go to post

    Leave a comment:


  • Mike1961
    started a topic [Javascript] Checkbox values

    [Javascript] Checkbox values

    [Javascript] Checkbox values

    Hello.

    I have a problem with this code ASP / Javascript.

    The problem is JavaScript; try this LINK and select value cespiti

    1) With ASP language is populated a secondary form, generated by a main form with a series of checkboxes, text fields and select;

    2) Selecting different checkbox from a secondary form and compiled other fields, this values...
    See more | Go to post

  • Mike1961
    started a topic Window popUp

    Window popUp

    Hi everyone.

    I have problem with this function javascript:

    Code:
    var popup = null;
     
    function OpenPopup(fld, tbl, col, w, h)
    {
      var pw = Math.floor((screen.width - w) / 2);
      var ph = Math.floor((screen.height - h) / 2);
     
      if (!popup || popup.closed) popup = window.open
    
    ("popUp.htm?f=" + fld + "&t=" + tbl + "&c="
    ...
    See more | Go to post

  • Mike1961
    replied to The error is Object expected
    Concat is for joining arrays.

    Its working now, many thanks.

    Code:
    <html>
    
    <head>
    <script>
    
    function insertColon(id){
    	var stringa = document.getElementById(id).value;
    	var ore = stringa.substr(0,2);
    	var min = stringa.substr(2,2);
    	
    	var new_ = ore + ":" + min;
    	document.getElementById(id).value = new_;
    ...
    See more | Go to post

    Leave a comment:


  • Mike1961
    replied to The error is Object expected
    thanks acoder x your reply, but error of copy/paste.

    The error is same.

    Code:
    <html>
    
    <head>
    <script>
    
    function insertColon(id){
    var stringa = document.getElementById(id).value;
    var ore = stringa.substr(0,2);
    var min = stringa.substr(2,2);
    
    var new_ = concat(concat(ore,":"), min);
    
    document.getElementById(id).value
    ...
    See more | Go to post

    Leave a comment:


  • Mike1961
    started a topic The error is Object expected

    The error is Object expected

    Hi all.

    Why this script not working?

    The error is Object expected in the line:

    var new_ = concat(concat(o re,":"), min);

    Code:
    <html>
    
    <head>
    <script>
    
    function insertColon(id){
    var stringa = document.getElementById(id).value;
    var ore = stringa.substr(0,2);
    var min = stringa.substr(2,2);
    
    var new_
    ...
    See more | Go to post

  • Mike1961
    replied to Import in the DB Access CSV files
    thank's ! it's right !
    See more | Go to post

    Leave a comment:


  • Mike1961
    started a topic Import in the DB Access CSV files

    Import in the DB Access CSV files

    Hi all.

    With ASP I read and register in the DB ACCESS, this lines a CSV file:

    Code:
    29/06/2008 00:15:48
    29/06/2008 00:34:54
    29/06/2008 07:28:03
    29/06/2008 07:38:03
    29/06/2008 08:52:33
    29/06/2008 12:43:14
    29/06/2008 13:18:58
    29/06/2008 14:26:04
    29/06/2008 15:28:05
    29/06/2008 15:39:13
    29/06/2008 15:42:54
    29/06/2008 16:09:16
    29/06/2008
    ...
    See more | Go to post

  • Mike1961
    replied to [Javascript] Fields required
    Many thanks...
    kind regards
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...