cfoutput in javascript

Hello

I can't understand why the code below does not work. I'm just trying to create a table from a cfquery. The code does not have any errors. but the alerts do not work. If I find the source of the browser page I can see table has the right in since the database information. Why alerts are not popping up?

Thank you.
Shawn Cowman

The text in your alert should be enclosed in double quotes:

Tags: ColdFusion

Similar Questions

  • Creating a variable to use in Javascript

    I created a website with a search function where the user can use the drop down menus. It is in a small window that opens when you click on advanced search. They choose the first descent down, then the next menu drop down appears and has inside elements depending on what was chosen in the first menu drop-down. This works, except that it works on our www. site. If you do not type in the www., these drop-down menus do not work. These drop downs using Javascript and in this javascript, I have the full path of our web site to the .cfm file where it's more javascript to the bottom of the fall. This path has the www. in it. Does anyone know how I can write this while the two lanes or paths work - with and without the www. ? Do I need to set up some kind of variable to use? How to do that in Javascript. I think I can do it in Cold Fusion, but I don't think it will work in javascript. The web site is www.ironwoodelectronics.com here is the JavaScript below. Thank you.

    Andy

    <script>
         function getICNumber() {
              $('#ICNumber').load("http://www.ironwoodelectronics.com/incICNumber.cfm",{ManufacturerID:$('#select_ManufacturerID').val()});
         }
         function getPackage() {
              $('#Package').load("http://www.ironwoodelectronics.com/incPackage.cfm",{ManufacturerID:$('#select_ManufacturerID').val(),ICNumber:$('#select_IC_Number').val()});
         }
         
         function getPackageType() {
              $('#PackageType').load("http://www.ironwoodelectronics.com/incPackageType.cfm",{FunctionID:$('#select_FunctionID').val()});
              $('#Pitch').html("");
         }
         function getPitch() {
              $('#Pitch').load("http://www.ironwoodelectronics.com/incPitch.cfm",{FunctionID:$('#select_FunctionID').val(),PackageID:$('#select_PackageID').val()});
         }
         function getBody() {
              $('#Pitch').load("http://www.ironwoodelectronics.com/incPitch.cfm",{FunctionID:$('#select_FunctionID').val(),PackageID:$('#select_PackageID').val(),PitchID:$('#select_PitchID').val()});
         }
         function getArray() {
              $('#Pitch').load("http://www.ironwoodelectronics.com/incPitch.cfm",{FunctionID:$('#select_FunctionID').val(),PackageID:$('#select_PackageID').val(),PitchID:$('#select_PitchID').val(),BodyID:$('#select_BodyID').val()});
         }
    </script>

    You have two errors.

    First of all, you have any hash of escape characters (#) located in CFOUTPUT which are not used for CF to output variables. Escape you by doubling their:

    $('#ICNumber').load

    should be

    $('##ICNumber').load

    Second, CGI. HTTP_HOST contains only the host, Protocol, etc. So, you have to do something like this:

    $('##ICNumber').load ("http://#cgi.http_host#" "/...")

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Fig Leaf Software is a small business Veteran - Owned (VOSB) on

    GSA Schedule and provides high caliber of the authorized seller

    instruction at our training centers, online, or on-site.

    Read this before posting:

    http://forums.Adobe.com/thread/607238

  • Calendar JavaScript does not date... Help!

    This form makes me crazy! This is the third time I had to ask the help of this forum trying to complete a simple form. The timing of entry seems to work fine, but no date is recorded in my database. Someone at - it suggestions... this thing is me grinding to a halt. Thanks in advance!

    Here is the code:

    < cfinclude template = "mp_ck_auth1.cfm" >

    < cfquery name = "CheckUser" datasource = "manna_premier" >
    SELECT *.
    USERS
    WHERE UserID = #Session.UserID #.
    < / cfquery >

    < html >
    < head >

    < style type = "text/css" >

    {.ds_box}
    background-color: #FFF;
    border: 1px solid #000;
    position: absolute;
    z index: 32767;
    }

    {.ds_tbl}
    background-color: #FFF;
    }

    {.ds_head}
    background-color: #333;
    color: #FFF;
    do-family: Arial, Helvetica, without serif.
    font size: 13px;
    make-weight: bold;
    text-align: center;
    letter-spacing: 2px;
    }

    {.ds_subhead}
    background-color: #CCC;
    Color: #000;
    do-size: 12px;
    make-weight: bold;
    text-align: center;
    do-family: Arial, Helvetica, without serif.
    Width: 32px;
    }

    {.ds_cell}
    background-color: #EEE;
    Color: #000;
    font size: 13px;
    text-align: center;
    do-family: Arial, Helvetica, without serif.
    padding: 5px;
    cursor: pointer;
    }

    {.ds_cell:hover}
    background-color: #F3F3F3;
    } / * This code hover does not work for IE * /.

    < / style >
    < / head >
    < title > manna Pro Products, LLC < /title >
    < body >

    < table class = "ds_box" cellpadding = "0" cellspacing = "0" id = "ds_conclass" style = "" display: none; ">"
    < tr > < id td = "ds_calclass" >
    < table > < /tr >
    < /table >

    < script type = "text/javascript" >
    <!-<! [CDATA]

    Project: Date Picker Dynamics (DtTvB) - 2006-03-16
    The script featured on JavaScript Kit - http://www.javascriptkit.com
    Code to start...
    Set the initial date.
    var ds_i_date = new Date();
    ds_c_month = ds_i_date.getMonth () + 1;
    ds_c_year = ds_i_date.getFullYear ();

    Get the item by Id
    function ds_getel (id) {}
    return document.getElementById (id);
    }

    Download the left and the top of the element.
    function ds_getleft (el) {}
    var tmp = el.offsetLeft;
    El = el.offsetParent
    {while (El)}
    tmp += el.offsetLeft;
    El = el.offsetParent;
    }
    return tmp;
    }
    function ds_gettop (el) {}
    var tmp = el.offsetTop;
    El = el.offsetParent
    {while (El)}
    tmp += el.offsetTop;
    El = el.offsetParent;
    }
    return tmp;
    }

    Output element
    var ds_oe = ds_getel ('ds_calclass');
    Container
    var ds_ce = ds_getel ('ds_conclass');

    Output control
    var ds_ob = ";
    function ds_ob_clean() {}
    ds_ob = ";
    }
    function ds_ob_flush() {}
    ds_oe.innerHTML = ds_ob;
    ds_ob_clean();
    }
    function ds_echo (t) {}
    ds_ob += t;
    }

    var ds_element; Text element...

    var ds_monthnames =]
    'January', 'February', 'March', 'April', 'May', 'June ',.
    'July', 'August', 'September', 'October', 'November', 'December '.
    ]; You can translate it into your language.

    var ds_daynames =]
    'Sun', 'Mon', 'Mar', 'Sea', 'Thursday', 'Sun', 'Sam '.
    ]; You can translate it into your language.

    Model calendar
    function ds_template_main_above (t) {}
    "return ' < table cellpadding = '3' cellspacing ="1"class ="ds_tbl">"
    + "< tr >".
    + ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_py (); "> & lt; & lt; < table > '
    + ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_pm (); "> & lt; < table > '
    + ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_hi (); ' colspan = "3" > [close] < table > '
    + ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_nm (); "> & gt; < table > '
    + ' < class td = "ds_head" style = "" cursor: pointer "onclick =" ds_ny (); "> & gt; & gt; < table > '
    + "< /tr >".
    + "< tr >".
    + '< td colspan = "7" class = "ds_head" >' t + '< table >.
    + "< /tr >".
    + "< tr >";
    }

    function ds_template_day_row (t) {}
    return '< class td "ds_subhead" = >' t + '< table > ";
    Set the width in CSS, XHTML Strict 1.0 does not have the width for her property.
    }

    function ds_template_new_week() {}
    return '< /tr > < tr > ";
    }

    function ds_template_blank_cell (colspan) {}
    return ' < td colspan = "' + colspan + '" > < table > '
    }

    function ds_template_day (d, m, y) {}
    return ' < class td = "ds_cell" onclick = "ds_onclick (d + ',' + m + ',' + y + ')" > ' d + '< table > ";
    Set the width of the line of the day.
    }

    function ds_template_main_below() {}
    return '< /tr > ".
    + '< /table > ';
    }

    It is inspired by calendar...
    function ds_draw_calendar (m, y) {}
    Start by removing the output buffer.
    ds_ob_clean();
    Here, we will make the header
    ds_echo (ds_template_main_above (ds_monthnames [m - 1] + ' ' + y));
    for (i = 0; I < 7; i ++) {}
    ds_echo (ds_template_day_row (ds_daynames [i]));
    }
    Make a date object.
    var ds_dc_date = new Date();
    ds_dc_date.setMonth (m - 1);
    ds_dc_date.setFullYear (y);
    ds_dc_date. SetDate (1);
    If (m == 1 | m == 3 | m == 5: m == 7 | m == 8 | m == 10: m == 12) {}
    days = 31;
    } Else if (m == 4: m == 6 | m == 9 | m == 11) {}
    days = 30;
    } else {}
    days = (y % 4 == 0)? 29: 28;
    }
    var first_day = ds_dc_date.getDay ();
    var first_loop = 1;
    Beginning of the first week
    ds_echo (ds_template_new_week());
    If Sunday is not the first day of the month, make an empty cell...
    If (first_day! = 0) {}
    ds_echo (ds_template_blank_cell (first_day));
    }
    var j = first_day;
    for (i = 0; I < days; i ++) {}
    Today is Sunday, a new week.
    If this Sunday is the first day of the month,
    We already have a new line for you.
    If (j == 0 & &! first_loop) {}
    New week!
    ds_echo (ds_template_new_week());
    }
    Do a rank of this day here!
    ds_echo (ds_template_day (i + 1, m, y));
    Is not first loop more...
    first_loop = 0;
    What is the next day?
    j ++;
    j % = 7;
    }
    Make the footer
    ds_echo (ds_template_main_below());
    And we will show...
    ds_ob_flush();
    To scroll in the display.
    ds_ce. ScrollIntoView();
    }

    Function to display the calendar.
    When the user clicks on the date, it will define the content of t.
    function ds_sh (t) {}
    Set the element to set.
    ds_element = t;
    Make a new date and set the current month and year.
    var ds_sh_date = new Date();
    ds_c_month = ds_sh_date.getMonth () + 1;
    ds_c_year = ds_sh_date.getFullYear ();
    Draw schedule
    ds_draw_calendar (ds_c_month, ds_c_year);
    To change the position correctly, we must show first.
    ds_ce.style.display = ";
    Move the calendar container!
    the_left = ds_getleft (t);
    the_top = ds_gettop (t) + t.offsetHeight;
    ds_ce.style.left = the_left + 'px ';
    ds_ce.style.top = the_top + 'px ';
    To scroll in the display.
    ds_ce. ScrollIntoView();
    }

    Hide the calendar.
    function ds_hi() {}
    ds_ce.style.display = 'none ';
    }

    Moves to next month...
    function ds_nm() {}
    Increase the current month.
    ds_c_month ++;
    We have past December, back to next year.
    Increase the current year and set the month of January.
    If {(ds_c_month > 12)
    ds_c_month = 1;
    ds_c_year ++;
    }
    Redraw the calendar.
    ds_draw_calendar (ds_c_month, ds_c_year);
    }

    Moves to the previous month.
    function ds_pm() {}
    ds_c_month = ds_c_month - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
    We stayed in January, let's go back to the previous year.
    Decrease the current year and set the month of December.
    If (ds_c_month < 1) {}
    ds_c_month = 12;
    ds_c_year = ds_c_year - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
    }
    Redraw the calendar.
    ds_draw_calendar (ds_c_month, ds_c_year);
    }

    Moves to next year...
    function ds_ny() {}
    Increase in the current year.
    ds_c_year ++;
    Redraw the calendar.
    ds_draw_calendar (ds_c_month, ds_c_year);
    }

    Moves to the previous year...
    function ds_py() {}
    Reduction in the current year.
    ds_c_year = ds_c_year - 1; Impossible to use the dashboard dashboard here, getting the invalid page.
    Redraw the calendar.
    ds_draw_calendar (ds_c_month, ds_c_year);
    }

    The format of the release date.
    function ds_format_date (d, m, y) {}
    2-digit month.
    M2 = '00' + m;
    M2 = m2.substr (m2.length - 2);
    day 2-digit.
    D2 = '00' + d;
    D2 = d2.substr (d2.length - 2);
    AAAA-MM-JJ
    return y + '-' + m2 + '-' + d2;
    }

    When the user clicks on the day.
    function ds_onclick (d, m, y) {}
    Hide the calendar.
    ds_hi();
    Set the value of it, if we can.
    If (typeof (ds_element.value)! = 'undefined') {}
    ds_element. Value = ds_format_date (d, m, y);
    Maybe we want to define the HTML in there.
    } else if (typeof (ds_element.innerHTML)! = 'undefined') {}
    ds_element.innerHTML = ds_format_date (d, m, y);
    I don't know how we should view, only he warn the user.
    } else {}
    Alert (ds_format_date (d, m, y));
    }
    }

    And this is the end.

    []] >-->
    < /script >

    < style type = "text/css" >
    <!--
    {.style1}
    do-family: "Arial Black";
    do-size: 18px;
    make-weight: bold;
    }
    . Style2 {make-size: 24 PX}
    . Style7 {make-size: 18px; do-family: Tahoma ;}}
    . Style8 {do-family: Tahoma}
    ->
    < / style >

    < style type = "text/css" >
    <!--
    {body
    background-image: url();
    background-repeat: no-repeat;
    left margin: 0px;
    margin-top: 0px;
    }
    a: link {}
    text-decoration: none;
    }
    a: visited {}
    text-decoration: none;
    }
    a: hover {}
    text-decoration: none;
    }
    a: active {}
    text-decoration: none;
    }
    .style12 {do-size: 12}
    {.style15}
    do-size: 14px;
    make-weight: bold;
    }
    .style16 {do-size: 12px}
    .style17 {do-size: 18px}
    ->
    < / style >


    < table align = "center" width = "755" background = "images/manna_premier_bg.jpg" border = "0" cellspacing = "0" cellpadding = "0" > "
    < b >
    < td width = "27%" >
    < table border = "0" cellpadding = "0" cellspacing = "0" width = "159" >
    "<!-fwtable fwsrc ="manna_premier_menu.png"fwbase =" manna_premier_menu.jpg "fwstyle ="Dreamweaver"fwdocid ="90849735"fwnested ="0"->
    < b >
    "< td > < img src ="images/spacer.gif"width ="4"height ="1"border ="0"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="7"height ="1"border ="0"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="36"height ="1"border ="0"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="54"height ="1"border ="0"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="2"height ="1"border ="0"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="21"height ="1"border ="0"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="21"height ="1"border ="0"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="1"border ="0"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="1"border ="0"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="8"height ="1"border ="0"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="4"height ="1"border ="0"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="1"border ="0"alt =" "/ > < table >
    < /tr >

    < b >
    "< td colspan ="11"> < img name ="manna_premier_menu_r1_c1"src ="images/manna_premier_menu_r1_c1.jpg"width = '159' height = '86' border ="0"id ="manna_premier_menu_r1_c1"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="86"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    "< td rowspan ="14"colspan ="2"> < img name ="manna_premier_menu_r2_c1"src ="images/manna_premier_menu_r2_c1.jpg"width ="11"height ="463"border ="0"id ="manna_premier_menu_r2_c1"alt =" "/ > < table >
    < td colspan = "4" > < a href = "mp_imagelibrary.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r2_c3', ' images/manna_premier_men u_r2_c3_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r2_c3',' images/manna_premier_menu_r2_c 3_f2.jpg','images/manna_premier_menu_r2_c3_f4.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r2_c3" src = "images/manna_premier_menu_r2_c3.jpg" width = "113" height = "12" border = "0" id = "manna_premier_menu_r2_c3" alt ="" / > < /a > < table >
    "< td rowspan ="4"colspan ="5"> < img name ="manna_premier_menu_r2_c7"src ="images/manna_premier_menu_r2_c7.jpg"width ="35"height ="68"border ="0"id ="manna_premier_menu_r2_c7"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    "< td colspan ="4"> < img name ="manna_premier_menu_r3_c3"src ="images/manna_premier_menu_r3_c3.jpg"width ="113"height ="22"border ="0"id ="manna_premier_menu_r3_c3"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    < td colspan = "2" > < a href = "mpremier_whatsnew.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r4_c3', ' images/manna_premier_men u_r4_c3_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r4_c3',' images/manna_premier_menu_r4_c 3_f2.jpg','images/manna_premier_menu_r4_c3_f3.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r4_c3" src = "images/manna_premier_menu_r4_c3.jpg" width = "90" height = "12" border = "0" id = "manna_premier_menu_r4_c3" alt ="" / > < /a > < table >
    "< td rowspan ="2"colspan ="2"> < img name ="manna_premier_menu_r4_c5"src ="images/manna_premier_menu_r4_c5.jpg"width ="23"height ="34"border ="0"id ="manna_premier_menu_r4_c5"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    "< td colspan ="2"> < img name ="manna_premier_menu_r5_c3"src ="images/manna_premier_menu_r5_c3.jpg"width ="90"height ="22"border ="0"id ="manna_premier_menu_r5_c3"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    < td colspan = "6" > < a href = "mp_open_promos.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r6_c3', ' images/manna_premier_men u_r6_c3_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r6_c3',' images/manna_premier_menu_r6_c 3_f2.jpg','images/manna_premier_menu_r6_c3_f3.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r6_c3" src = "images/manna_premier_menu_r6_c3.jpg" width = "135" height = "12" border = "0" id = "manna_premier_menu_r6_c3" alt ="" / > < / a > < table >
    "< td rowspan ="2"colspan ="3"> < img name ="manna_premier_menu_r6_c9"src ="images/manna_premier_menu_r6_c9.jpg"width ="13"height ="34"border ="0"id ="manna_premier_menu_r6_c9"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    "< td colspan ="6"> < img name ="manna_premier_menu_r7_c3"src ="images/manna_premier_menu_r7_c3.jpg"width ="135"height ="22"border ="0"id ="manna_premier_menu_r7_c3"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    < td colspan = "7" > < a href = "mp_events.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r8_c3', ' images/manna_premier_men u_r8_c3_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r8_c3',' images/manna_premier_menu_r8_c 3_f2.jpg','images/manna_premier_menu_r8_c3_f4.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r8_c3" src = "images/manna_premier_menu_r8_c3.jpg" width = "136" height = "12" border = "0" id = "manna_premier_menu_r8_c3" alt ="" / > < / a > < table >
    "< td rowspan ="8"colspan ="2"> < img name ="manna_premier_menu_r8_c10"src ="images/manna_premier_menu_r8_c10.jpg"width ="12"height ="361"border ="0"id ="manna_premier_menu_r8_c10"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    "< td colspan ="7"> < img name ="manna_premier_menu_r9_c3"src ="images/manna_premier_menu_r9_c3.jpg"width ="136"height ="22"border ="0"id ="manna_premier_menu_r9_c3"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    < td colspan = "5" > < a href = "bookings.cfm" target = "_self" onMouseOut ="MM_nbGroup ('out'); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r10_c3',' images/manna_premier_menu_r10 _c3_f2.jpg','images/manna_premier_menu_r10_c3_f4.jpg',1);' onClick = "MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r10_c3', ' images/manna_premier_me nu_r10_c3_f3.jpg', 1); "" > < img name = "manna_premier_menu_r10_c3" src = "images/manna_premier_menu_r10_c3.jpg" width = "134" height = "12" border = "0" id = "manna_premier_menu_r10_c3" alt ="" / > < / a > < table >
    "< td rowspan ="6"colspan ="2"> < img name ="manna_premier_menu_r10_c8"src ="images/manna_premier_menu_r10_c8.jpg"width ="2"height ="327"border ="0"id ="manna_premier_menu_r10_c8"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    "< td colspan ="5"> < img name ="manna_premier_menu_r11_c3"src ="images/manna_premier_menu_r11_c3.jpg"width ="134"height ="22"border ="0"id ="manna_premier_menu_r11_c3"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    "< td > < a href =" mpremier_faq.cfm"target ="_self"> < img name ="manna_premier_menu_r12_c3"src =" images/manna_premier_menu_r12_c3.jpg "width ="36"height ="12"border ="0"id ="manna_premier_menu_r12_c3"alt =" "/ > < /a > < table >"
    "< td rowspan ="2"colspan ="4"> < img name ="manna_premier_menu_r12_c4"src ="images/manna_premier_menu_r12_c4.jpg"width ="98"height ="34"border ="0"id ="manna_premier_menu_r12_c4"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    "< td > < img name ="manna_premier_menu_r13_c3"src ="images/manna_premier_menu_r13_c3.jpg"width ="36"height ="22"border ="0"id ="manna_premier_menu_r13_c3"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="22"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    < td colspan = "3" > < a href = "mpremier_contact.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r14_c3', ' images/manna_premier_me nu_r14_c3_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r14_c3',' images/manna_premier_menu_r14 _c3_f2.jpg','images/manna_premier_menu_r14_c3_f4.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r14_c3" src = "images/manna_premier_menu_r14_c3.jpg" width = "92" height = "12" border = "0" id = "manna_premier_menu_r14_c3" alt ="" / > < /a > < table >
    "< td rowspan ="2"colspan ="2"> < img name ="manna_premier_menu_r14_c6"src ="images/manna_premier_menu_r14_c6.jpg"width ="42"height ="259"border ="0"id ="manna_premier_menu_r14_c6"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="12"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    "< td colspan ="3"> < img name ="manna_premier_menu_r15_c3"src ="images/manna_premier_menu_r15_c3.jpg"width ="92"height ="247"border ="0"id ="manna_premier_menu_r15_c3"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="247"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    "< td rowspan ="2"> < img name ="manna_premier_menu_r16_c1"src ="images/manna_premier_menu_r16_c1.jpg"width ="4"height ="42"border ="0"id ="manna_premier_menu_r16_c1"alt =" "/ > < table >
    < td colspan = "9" > < a href = "mpremier_main.cfm" target = "_self" onClick ="MM_nbGroup ('down', 'navbar1', 'manna_premier_menu_r16_c2', ' images/manna_premier_me nu_r16_c2_f3.jpg', 1); "onMouseOver =" MM_nbGroup ('over', 'manna_premier_menu_r16_c2',' images/manna_premier_menu_r16 _c2_f2.jpg','images/manna_premier_menu_r16_c2_f4.jpg',1);"onMouseOut =" MM_nbGroup ('out'); "" > < img name = "manna_premier_menu_r16_c2" src = "images/manna_premier_menu_r16_c2.jpg" width = "151" height = "36" border = "0" id = "manna_premier_menu_r16_c2" alt ="" / > < /a > < table >
    "< td rowspan ="2"> < img name ="manna_premier_menu_r16_c11"src ="images/manna_premier_menu_r16_c11.jpg"width ="4"height ="42"border ="0"id ="manna_premier_menu_r16_c11"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="36"border ="0"alt =" "/ > < table >
    < /tr >
    < b >
    "< td colspan ="9"> < img name ="manna_premier_menu_r17_c2"src ="images/manna_premier_menu_r17_c2.jpg"width ="151"height ="6"border ="0"id ="manna_premier_menu_r17_c2"alt =" "/ > < table >
    "< td > < img src ="images/spacer.gif"width ="1"height ="6"border ="0"alt =" "/ > < table >
    < /tr >
    < / table > < table >
    < td width = "73%" valign = "top" > < table border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
    < b >
    < td colspan = "3" > < div align = "center" class = "style1 style2" > STATUS of territory MANAGER < / div > < table >
    < /tr >
    < b >
    < td colspan = "3" valign = "top" > < cfoutput query = 'CheckUser' > < div align = "center" >
    < div align = "center" > < span class = "style7" > Welcome back #UserFirstName # #UserLastName #!
    Your last login was #DateFormat(LastLogin, "mmm dd, yyyy") # to #TimeFormat (LastLogin, "h: mm tt") # PST.
    You have logged in to the site a total of #TotalLogins # time. </span > < / div >
    < / cfoutput >
    < cfform method = "post" action = "log_entry.cfm" >
    < div align = "center" > < cfoutput >
    < input type = "hidden" name = "LogDate" value = "#DateFormat (Now (), ' mm/dd/yyyy') #" >
    < / cfoutput >
    < table width = "525" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
    < b >
    < td width = "177" align = "left" class = "style8 style15" > Territory Manager: < table >
    < td width = "363" height = "16" align = "left" > < span class = "style12" >
    < label > < cfoutput query = 'CheckUser' >
    < input name = "TerritoryManager" type = "text" id = "TerritoryManager" value = "" #UserFirstName # #UserLastName # "/ >"
    < / label >
    </span > < / cfoutput > < table >
    < /tr >
    < b >
    < td align = "left" bgcolor = "#CCCCCC" class = "style8 style15" > status: < table >
    < height td = '20' bgcolor = "#CCCCCC" class = "style12" >
    < label > < / label > < table >
    < /tr >
    < b >
    < td align = "left" class = "style8 style16" > < strong >
    < input name = "Status" type = "radio" value = "in the field" / >
    In the field < facilities > < table >
    < class td 'style12' = >
    < label > < / label > < table >
    < /tr >
    < b >
    < td align = "left" bgcolor = "#CCCCCC" class = "style8 style16" > < strong >
    < input name = "Status" type = "radio" value = "Vacation" / >
    Holiday < facilities > < table >
    < td bgcolor = "#CCCCCC" > < table >
    < /tr >
    < b >
    < td align = "left" > < blockquote >
    < class p = "style16 style8" > < strong > start date:
    < facilities > < / p >
    < / blockquote > < table >
    < td align = "left" > < input type = "text" onclick = "ds_sh (this); "name ="VacStart"style =" "cursor: text" / > < table > "
    < /tr >
    < b >
    < td align = "left" > < blockquote >
    < class p = "style16 style8" > < strong > end date:
    < facilities > < / p >
    < / blockquote > < table >
    < td align = "left" > "> < input type ="text"onclick =" ds_sh (this); "name ="VacEnd"style =" "cursor: text" / > < table > "
    < /tr >
    < b >
    < td align = "left" class = "style8 style16" > < strong >
    < label >
    < input name = "Status" type = "radio" value = "Sick day" / >
    < / label >
    Sick day < / strong > < table >
    < td > < table >
    < /tr >
    < b >
    < td align = "left" class = "style8 style16" > < strong >
    < label >
    < input name = "Status" type = "radio" value = "Admin Day" / >
    < / label >
    Admin Day < facilities > < table >
    < td > < table >
    < /tr >
    < b >
    < td align = "left" class = "style8 style16" > < strong >
    < input name = "Status" type = "radio" value = "DSR Ride Along" / >
    DSR Ride Along < facilities > < table >
    < td align = "left" > < label >
    < input name = "DSRName" type = "text" id = "DSRName" / >
    < / label > < table >
    < /tr >
    < b >
    < td align = "left" class = "style8 style16" > < strong >
    < label >
    < input name = "Status" type = "radio" value = 'ServiceCall' / >
    < / label >
    Calls for service < facilities > < table >
    < td align = "left" > < label >
    < input type = "text" name = "ServiceName" / >
    < / label > < table >
    < /tr >
    < b >
    < td align = "left" > < table >
    < td align = "left" > < table >
    < /tr >
    < b >
    < td colspan = "2" align = "center" > < label >
    < input type = "submit" value = "Submit" / >
    < / label >
    < label >
    < input type = "reset" value = "Reset" / >
    < / label > < table >
    < /tr >
    < /table >
    < / div >
    < / cfform >
    < p align = "center" class = "style7" > < br / >
    < a href = "TM_launch.html" target = "_self" > continue without updating of status. " < /a > < /p >
    < / div > < table >
    < /tr >
    < b >
    < td colspan = "3" > < p > < / p >
    < p > < / p > < p > < / p > < table >
    < /tr >
    < b >
    < td colspan = "3" bordercolor = "#000000" > < table >
    < /tr >
    < tr valign = "top" >
    < td colspan = "3" > < div align = "center" class = "style8" > < / div > < table >
    < /tr >
    < b >
    < td > < table >
    < td > < table >
    < td > < table >
    < /tr >
    < / table > < table >
    < /tr >
    < /table >
    < / body >
    < / html >

    Ah

    See... Here's a deal at the point of why it's good to NPA as little as possible (while making sure that all the code is displayed.  "It is a delicate balance sometimes).  I don't at all look @ your original code and did not notice that you rolled your own calendar control.

    Now, my first reaction is the reason why you do not use for this: http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_c_02.html#3798877 ?

    Second... I'm not sure what you're asking, it's actually a ColdFusion question, possibly more JS or DHTML question.

    Yet, a few thoughts:

    * is your calendar control actually enter a date correctly on the client?  IE: when you choose a date, is - this one) actually save a value (pop up you can an alert() with the correct value); (b) is the value in a form control.  I'm not going to study your logic to follow what is happening, but at some point, he must put a value into a form field.  I guess it is a hidden... change to an input text to ensure that it is actually be filled.

    * the value gives thanks to the action page?  Replace your current action code by .  Are the dates it?

    * How will you put the data in the Database?  A bit of code that you do not publish is the action page.

    If there is a problem with the first point above, it's really a matter of JS is not a question of CF.

    --

    Adam

  • ColdFusion with JavaScript timer

    Hello ~

    I use a JavaScript timer on a .cfm page. So far, everything works, but what I want to do is, when the time reaches zero, a button appears on the page. At present, the work of timer, but when it gets to zero, nothing happens right here. This whole .cfm page serves as an inclusion in another .cfm page. I'm not very familiar with Javascript, so I would be grateful for any suggestion. Thank you!

    < cfoutput >

    < cfset totalSeconds = #currentTopicTime # >

    < cfset totalMinutes = Int(#totalSeconds#/60) >
    < cfset remainingSeconds = #totalSeconds # MOD 60 >

    < script type = "text/javascript" >
    var minutes = #totalMinutes #;
    seconds var #remainingSeconds = #;

    function countDown() {}
    reduction of the
    seconds;
    If (seconds ==-01) {}
    seconds = 59;
    minutes = minutes - 1;
    } else {}
    minutes = minutes;
    }
    If (seconds < = 9) {seconds = '0' + seconds ;}}
    time = "you must see this page for #totalMinutes # minutes < cfif remainingSeconds NEQ 0 > and < cfif remainingSeconds LTE 9 > 0 < / cfif > #remainingSeconds # seconds < / cfif >.» < br / > you have "+ (" minutes < = 9? ")" 0 "(+ minutes: minutes) +" minutes and "+ seconds +" seconds remaining. < br / > please read this page until the timer reaches 0. < br / > please DO NOT refresh this page & mdash; This will restart the timer! » ;
    If (document.getElementById) {document.getElementById('theTime').innerHTML = time ;}
    SD = Window.setTimeout ("countDown ();', 1000");
    If (minutes == '00' & & seconds == '00') {seconds = '00'; window.clearTimeout (SD) ;}
    }

    function addLoadEvent (func) {}
    var oldonload = window.onload;
    If (typeof window.onload! = 'function') {}
    Window.OnLoad = func;
    } else {}
    Window.OnLoad = function() {}
    If {(oldonload)
    oldonload();
    }
    Func();
    }
    }
    }

    {addLoadEvent (function ()}
    countDown();
    });
    < /script >

    < hr style = "margin-bottom: 3px;" margin-top: 3px; Width: 90%; "/ >
    < id p "theTime" = class = "timeClass" > < / p >

    < / cfoutput >

    When the time-out is reached the code does nothing special. You must

    show the button right there (my example assumes the visibility of)

    the button is set to hidden, to adapt to your own situation):

    if (minutes == '00' && seconds == '00') {  window.clearTimeout(SD);
    document.getElementById("id_of_your_button").style.visibility = ''; }
    

    Mack

  • JavaScript and SESSION variable

    Everyone,

    Here's my question. I am putting together an application and I use a date picker Javascript. I want to do is when the form is sent on itself I want to set a SESSION variable to the date that was selected when someone returns to the page there so the selected date already chosen and not the date of the day like this is happening now. My knowledge of javascript is somewhat limited, but I included a link to the js file and the code of the page that calls it. It looks like var today = Date(). do I have to change I'm not really sure how to do this. Any help would be greatly appreciated.

    Thanks in advance.

    Daniel Krajc

    Link to the javascript code:
    http://www.redpegonline.com/NEW_VERSION/assets/calendarDateInput.js

    Everyone,

    I went back to the documentation that Jason Moon provided with the script and watch much closer that before, I figured out that I can set the SESSION variable in the with a cfoutput.

    Lesson learned, read the documentation.

    Thank you.

    Daniel Krajc

  • ColdFusion / Javascript Issue

    This is probably not the place most suitable for this post, but I don't know that people who frequent these forums have met this:

    I'm doing an edit form. the form will allow users to update a record in the database.

    -Here are the parts of the code that I have-

    I have the following javascript code:
    < cfoutput query = "qryGetEvent" >
    < script language = "javascript" >
    function setTeam()
    {
    ddlTeam = document. GetElementByID ("cboTeam")
    ddlTeam.value = ' #qryGetEvent.team # '.
    }
    < /script >
    < / cfoutput >

    < body onload = "setTeam ()" >
    < form id = "form1" name = "form1" method = "post" action = "ac_editevent.cfm" >

    < select id = "cboTeam" name = "cboTeam" >
    < cfloop query = "qryGetTeams" >
    < option value = "#id #" > #team # < / option >
    < / cfloop >
    < / select >
    <! - evaluates this in the view source - >
    < select id = "cboTeam" name = "cboTeam" >
    < option value = "6" > Varsity < / option >
    < option value = "7" > update the < / option >
    < option value = "8" > Masters < / option >
    < option value = "9" > teams < / option >
    < option value = "10" > Novice < / option >
    < option value = "11" > Varsity/Novice < / option >
    < option value = "12" > select the teams < / option >
    < / select >
    <!-->
    < / make >
    < / body >
    If this work? I used two getElementsByName, getElementByName, getElementsByID, getElementByID.

    Basically, by default the cboTeam trying to a value when the page is loaded.

    hope this post makes sense...
    Thanks for any help
    SB

    Never mind... I thought about it...

    Never mind

    Damn vb and their lack of consideration for the distinction of uppercase / lowercase

    It must be getElementById... which means GetElementByID will not work (it would be in VB.).

  • CFLOOP &amp; amp; JavaScript help

    I wonder if I can make this script work. I am wanting to 'i' to be available for javascript is there a way to do this? Anyone have any ideas? Thank you
    < CFLOOP to = "#abilityQ.recordcount # '1' = ' index 'i' = >"
    #abilityQ.question < CFOUTPUT > # < cfform >
    < cfinput type = "radio" name = "A1" label = "Yes" value = "Yes" >
    < span class = "questionsNormalAnswer" > Yes </span > k
    < cfinput type = "radio" name = "A2" label = "" onClick = "javascript:MM_showHideLayers('incorrecti','','show');" value = "No" >
    < span class = "questionsNormalAnswer" > </span > n
    < / cfform > < hr align = "center" width = "75%" class = 'horizontalline' > < / CFOUTPUT >
    < / CFLOOP >

    Hello

    Your onClick attribute must be like this,

    onClick = "javascript:MM_showHideLayers('incorrect#i#','','show')";

  • XMLHttpRequest: return a javascript variable

    These few lines a well-trained unordered list of links back to the callback routine and replace the innerHTML of a layer here. Works very well.

    < ul >
    #getSubdata.sogno # < cfoutput >: #getSubdata.sognonumero # < / cfoutput >
    < cfoutput query = "getSubdata" >
    < li > < a href = "javascript:populateDescription('#descrizione#','#descrizionenumero#','#id#')" >
    #descrizione #: #descrizionenumero # < /a > < /li >
    < / cfoutput >
    < /ul >

    Now, I need to come back at the same time a variable javascript at the same callback routine.
    How can I do?
    I tried, but I couldn't find anything relevant.
    Thanks for help.

    Thank you

  • Select with the javascript function

    I need to create a purchase order that allows to calculate the cost of printing using one-sided or two-sided. My problem is that this code can use only the cost of single_side in the function. The function must use two side cost if "DUP" checkbox is disabled. What I read javascript does not provide a way to access the selection list as if it were a table. (Where I can identify what dimension of the table I would use). Is there another way to do this?

    < script type = "text/javascript" >
    total() function
    {
    var Field1 = document.getElementById("DUP").value;
    var Field2 = document.getElementById("COPIES").value;
    var field3 = document.getElementById("ORIG").value;
    Field4 var = document.form2.paperlist.value;
    sphere5 var = document.form2.paperlist.value;
    If (Field1! = "no")
    document.getElementById("mytotal").value = parseInt (field2) *.
    parseInt (field3) / 2 * parseFloat (field4);

    on the other
    document.getElementById("mytotal").value = parseInt (field2) *.
    parseInt (field3) * parseFloat (field5);

    }
    < /script >

    Select name = "paperlist" id = "paperlist" onchange = "total ()" > "
    < cfoutput query = "paperlist" >
    < option value = "#paperlist.single_side # #paperlist.two_side #" > #paperlist.descr #, #paperlist.single_side #, #paperlist.two_side # < / option >
    < / cfoutput >
    < / select >

    < input type = "checkbox" name = "DUP" id = "DUP" onchange = "total ()" accesskey = "3" tabindex = "3" > "
    < input type = "text" name = "COPIES" id = "COPIES" onchange = "total ()" accesskey = "1" tabindex = "1" default size "0" = "10" = > "
    < input type = "text" name = "ORIG" id = "ORIG" onchange = "total ()" size = "10" accesskey = "2" tabindex = "2" default = "0" / > "
    < input type = "text" name = "mytotal" id = "mytotal" readonly = "true" size = "10" / >
    < input type = "submit" name = "submit" value = "Submit" / >

    I guess you want to get the "selected" option from the selection list?

    You call the js function in the onchange event of the select list just pass it as a parameter

    Select name = "paperlist" id = "paperlist" onchange = "total (this.selectedIndex.value)" > "

    total function (slectedValue)

    or

    document. FORMNAME. SELECTLISTNAME.options [document. FORMNAME. Alue SELECTLISTNAME.selectedIndex] .v

    This will give you the value selected from the list of selection, simply replace "FORMNAME" with the name of your form and your 'SELECTLIST' with the name of your selection list

    Ken

    Edit:
    Should have to read it again, yes you can do it.

    It is not clear which character you have between 2 values in the value attribute of the selection list, but I would suggest a comma, no spaces

    Then

    field5Array = field5.split(',');

    This will then give you the picture that you want with
    field5Array [0] equal to single sided
    and
    field5Array [1] equal to double-sided

  • JavaScript question for document.domain

    Hello

    How is it when I use 'document.domain' in my JavaScript, the alert no longer works?

    The JS function below, when it is called, the alert does not work:
    function showMessage() {}
    document. Domain = "cfoutput <>#CGI. Server_name #"" < / cfoutput > ";"
    Alert ("Message here");
    }

    Thanks in advance!

    OK sure, here is my tell...















    Display the data in the parent Page:


  • The use of Javascript to calculate monthly payments on form

    I have a form one page where I want to be able to allow the user to choose between making a time payment or monthly payments for an amount defined by the user. I could easily penetrate the shape of two pages and calculate the value of monthly payments and post it on the second page, if the user has selected the monthly payment option. What I would like is a single page where the monthly payment is determined on the fly when the user selects the box of monthly payment option or the user defined amount is entered.

    I think I have the function determined to do the calculation for the monthly payment, but I'm not sure how to get CF to read or display the value. I tried to use the following with no luck:

    < input type = radio name = value of payments = "Yes" tabindex = 1 onClick = "calculatemonthlypayment (return [0].). DonationAmount) ">"

    < script type = "text/javascript" >
    function calculatemonthlypayment (donation)
    {
    monthlypayment =(donation/12)
    }
    return monthlypayment
    < /script >

    You try the result like this:

    < cfoutput > < input type = "text" readonly = "yes" value = "#dollarformat (monthlypayment) #" > < / cfoutput >

    No idea I'm doing wrong or missing? Or is there a better way to do this?

    >

    You can't do that. CF code runs on the server (the first). The javascript that results (html, css,...) is sent to the browser where it is running. Given that the javascript code is executed in the client browser, after the CF code is already completed, the variable "monthlypayment" does not exist that CF is concerned.

    You can use javascript to read the amount of the donation text field and calculate the amount of "monthlypayment" to display. Here's a simple example. You will need to add validation and formatting number.

  • JavaScript + CF XML integration

    Hello world...
    I searched the net and I can't seem to achieve results on how to do my job.
    The task seems simple enough and I have tried several methods, but I can't seem to make it work
    Here is my goal:
    (1) I have a simple HTML form with a "submit" button and a < div > tag ID = "divver. This page is "AJAX enabled" so I want the data to be transferred "behind the scenes".
    (2) inside of this code HTML page's javascript to send an asynchronous request to a .cfm page.
    (NOTE: I tried to receive a responseText of the .cfm page and it works... so communication is OK)
    (3) inside of the .cfm page I have just a simple XML in a string, and I tried to use < cfdump > and < cfoutput > to the XML output

    (4) my goal is to receive the XML of the .cfm page and treat it using javascript, and then update the HTML page with javascript in it.

    I think my problem is I don't know how to generate the XML correctly using the .cfm page, and when I get with my JS I don't know how to treat it.

    Any help would be * VERY * useful. Thank you!

    Sending XML:
    (1) use the CFXML tag - see the documentation; or
    (2) use the CFCONTENT tag. You can assign the "text/xml" mime type to aid like this: ...
    If you use the CFXML tag, you do not use the XML header line; CF creates it for you. If you use the CFCONTENT tag. provide your own line of XML header immediately after the tag CFCONTENT.
    Receipt of XML:
    On the side of JavaScript, you access the entering by using the responseXML property - XML object is an OBJECT, so responseText will not work in most browsers.
    Here is an excerpt on how to read the XML using Javascript. 'Obj' is the incoming XML object:

  • &amp; lt; a href and onclick = &amp; quot; JavaScript:...

    Hello
    Once again a question of calendar application. I have a dynamic array representing the month, created through cfloop. I want to give the user the choice to select a date and when they click on "weekly view" on the top it shows week pertaining to that date. It must necessarily be via javascript. For my link with work for users with javascript disabled, I want the link points to the first week of this month. Something like this:
    < ahref = "weeklycalendar.cfm? month = #currentmonth # & year = those #& day = 1" onclick = "javascript" weeklcal () >
    Javascript code picks up the selected table and therefore cell the selected date. It has the same parameters as the href attribute, except that the day is the selected date and no 1.
    It is possible to work. Any suggestions, advice, opinions would be greatly appreciated.

    THX in advance

    Found the solution, just in case anyone else is interested:
    You use-return false and everything degrades gracefully. For active users with javascript, the javascript works and the href attribute does not work, and for users with javascript disabled, the href works.
    The synatx would be something like
    cfoutput >

  • JavaScript for cfscript

    Hello gurus
    Wondering if it's possible?
    (CFMX 5)

    I have a cfscript function:
    < cfscript >
    function doSomething (thingToDo) {}
    Return URLEncodedFormat (Encrypt (thingToDo, myKey));
    }
    < / cfscript >

    is "thingTodo", crypt with the private key, then makes it friendly to use in the URL.

    Now, I want to spend in a JS variable rather than a raw string, something like this:

    < cfoutput >
    < select name = "selectObject" onchange = "javascript:location.href ='somepage.cfm? #doSomething (this.value) #" ">"
    < option value = "option1" > Option 1
    < option value = "option2" > Option 2
    < / select >
    < / cfoutput >

    so that the page passes to:
    somepage.cfm? with_encrypted_js_variable_here

    Is there a way to do this?
    So I have no hair left, the pointers in the right direction appreciated

    Jam

    Not sure if that's what you're looking for, but... How about this?

    Note: If you want to encrypt the values on the fly you need to encode (or encrypt) through javaScript. I beieve the cold fusion and javaScript are treated and run at different times.


    myKey = "test";
    function doSomething (thingToDo) {}
    Return URLEncodedFormat (Encrypt (thingToDo, myKey));
    }



  • iOS 10 Safari / JavaScript bookmarklets

    I have not updated to iOS 10 again. Before that, I would like to know if Safari still allow JavaScript bookmarklets in iOS 10?

    (For the community, there was no Safari for iOS or any community for iOS in general applications.)

    To cite how this can be tested:

    You can change the address of any bookmark to

    JavaScript:Alert('test');

    and when you click the bookmark, if it displays "test" and then the JavaScript worked. Anyone can try this in iOS 10 Safari?

Maybe you are looking for

  • Where can I download SM Bus controller?

    I recently did a clean install of Windows XP on my laptop and I lost several drivers. I went to the site of the oem and downloaded all those that need... except one. I always get a yellow question mark in my next Device Manager: SM Bus controller Any

  • Acer aspire E13 (ES1-331) my battery fixed with laptop.

    I just bought this netbook slim yet Nice last month. The problem is that it does not charge the battery. The battery remains on 0%, and only when I plugged the adapter. Lights orange indicator keep flashing. When I unplugged, the netbook will turn of

  • How can I print black ink only automatic duplex mode for Officejet 6500?

    When I set the printer to automatically print on both sides, it allows only color or grayscale of high quality as print color options.  If I print on one side, then I have a third option for black ink only.  Does anyone know how to get black ink only

  • Failure of the USB2 connections

    I have a Hitachi 250 GB hard drive and a keyboard wireless mouse. I had to move connections USB2 from the monitor to the computer case due to the failure of the USB2 connections on the monitor. The keyboard and mouse don't work, but the hard drive is

  • How to add BB10 existing product release?

    I have an existing application of the Playbook and have created a version of BB10. The version of the Playbook is to 1.2.1 and I would add the BB10 version 1.0. When I download the file bar, I get the following error: "Bundle file (xxxxx.bar) has bee