LassoBin Banner
Recent Posts
test
82.7 weeks ago
ezk
2492.6 weeks ago
Adam Randall
499.7 weeks ago
Adam Randall
503.2 weeks ago
Greg Hemphill
503.6 weeks ago
Greg Hemphill
506.9 weeks ago
Greg Hemphill
506.9 weeks ago
Becca
506.9 weeks ago
Greg Hemphill
506.9 weeks ago
Becca
506.9 weeks ago
Make new post
Lasso Reference
MySQL Reference
Valid HTML 4.0!
 
Posted by Greg Hemphill on 02/21/2008 14:54:55.
Link
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[
function listAdd(I, L, Ad, D, Test, S)
  {
    var url = '/WeeklyAd/ShoppingList/Add/AJAX/';
    var qtyID = 'Qty' + L;
    var returnPathID = 'URL' + L;
    var returnPathName = document.getElementById(returnPathID);
    var qtyName = document.getElementById(qtyID);
    var qty = qtyName.value;
    var returnPath = returnPathName.value;
    var pars = 'I=' + I + '&L=' + L + '&Ad=' + Ad + '&Q=' + qty + '&D=' + D + '&Test=' + Test + '&Path=' + returnPath + '&-token.S=' + S;
    var ajaxTarget = 'ListItem' + L;
    var highlightTarget = 'AdItem' + L;
    
    var List = new Ajax.Updater(
      ajaxTarget, 
      url, 
      {
        method: 'post', 
        parameters: pars,
        evalScripts: true
      });
    
    new Effect.Highlight(highlightTarget,{duration: 2.0});
  }
]

  Post new code below.
Name
Code
Math -16 minus 39 equals