Results 1 to 2 of 2

Thread: post multiple url in ajax

  1. #1
    Join Date
    Aug 2013
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default post multiple url in ajax

    I have this code that post ajax form to database1.php and i now want it to post also to another page database2.php
    how can i achieve that

    Code:
    
    function sendData(url, data) {
    
    			 $.ajax({
    					url: 'database1.php',
    
    					type: 'POST',
    					processData: false,
    					contentType: false,
    					data: data,
    					cache: false
    				}).done(function (data) {
    
    				});
    			}
    Thanks

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. Resolved best practice login (secure data) via ajax - POST JSON AJAX
    By lse123 in forum JavaScript
    Replies: 12
    Last Post: 01-01-2013, 12:22 AM
  2. Resolved jQuery .post multiple callback
    By ggalan in forum JavaScript
    Replies: 1
    Last Post: 12-07-2011, 02:37 AM
  3. Ajax Post conflict with Ajax Pagination
    By s0110282 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-16-2011, 02:28 PM
  4. Multiple categories in blog post
    By Vayu in forum MySQL and other databases
    Replies: 0
    Last Post: 10-01-2008, 11:24 PM
  5. AJAX - multiple targets
    By grailkeeper in forum JavaScript
    Replies: 0
    Last Post: 09-15-2008, 09:29 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •