LassoBin Banner
Recent Posts
test
66.1 weeks ago
ezk
2476 weeks ago
Adam Randall
483.1 weeks ago
Adam Randall
486.6 weeks ago
Greg Hemphill
487 weeks ago
Greg Hemphill
490.3 weeks ago
Greg Hemphill
490.3 weeks ago
Becca
490.3 weeks ago
Greg Hemphill
490.3 weeks ago
Becca
490.3 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 87 minus -99 equals