LassoBin Banner
Recent Posts
test
62.2 weeks ago
ezk
2472 weeks ago
Adam Randall
479.1 weeks ago
Adam Randall
482.6 weeks ago
Greg Hemphill
483 weeks ago
Greg Hemphill
486.3 weeks ago
Greg Hemphill
486.3 weeks ago
Becca
486.3 weeks ago
Greg Hemphill
486.3 weeks ago
Becca
486.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 -66 modulus of -35 equals