CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: Shaun Kester
function SaveComments() {
    // ID of the button, not a <input type="submit" />
    // on page load...
    // $('#id_of_button_button_save_comments').click(function() { SaveComments(); });
    
    alert('Saving comments...');
    var commoptions = { 
        success: function(responseText) 
        {
          alert('Comment saved. Returned: '+responseText);
by Shaun Kester   November 23, 2009 @ 11:36am
Tags:
136 Views
no comments
 
*** Setup Transaction
lcAkismetKey = "" &&Get your API key at http://wordpress.com/signup/ and click "Just a username, please."
lcBlogURL = Alltrim(Request.Form("BlogURL")) &&Blog URL
lcUserIP = Alltrim(Request.GetIPAddress())
lcUserAgent = Alltrim(Request.GetBrowser())
lcCommentType = Alltrim(Request.Form("UserType")) &&Choices: blank, comment, trackback, pingback, or a made up value like "registrant".
lcCommentAuthor = Alltrim(Request.Form("UserName")) &&FYI: 'viagra-test-123' forces true a.k.a. "spam"
lcAuthorEmail = Alltrim(Request.Form("UserEmail"))
lcAuthorUrl = Alltrim(Request.Form("UserWebsite"))
lcComment = URLEncode(Alltrim(Request.Form("UserComment")))
by Shaun Kester   October 18, 2009 @ 10:59pm
396 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate