From what you have shown, downloadform.php never loads WordPress, hence naturally do_shortcode() is not available.
You need to implement your AJAX using this Codex article:
http://codex.wordpress.org/AJAX_in_Plugins
Another alternative I would suggest is loading the contact form in a hidden div during the initial page load and then display the hidden div when users click whatever makes the form pop up. That way you don’t need any AJAX at all.
Related Posts:
- Creating Multiple wp_localize_script for Shortcode?
- Add custom shortcode button to Editor
- call shortcode in javascript
- Including javascript for a shortcode
- Localize variable for multiple Shortcodes
- How disable checkbox when listbox value changes in tinymce
- Dropzonejs with WPCF7 [closed]
- Creating multiple enclosing shortcodes and fixing JS issues on click
- WP UI style within shortcode – Any Suggestions?
- Why Won’t my jQuery Play Nice with WordPress?
- Reload wordpress shortcodes
- include shortcode values in Thickbox form
- Populating shortcode values dynamically in theme template
- Nested Gallery Shortcode INTERMITTENTLY working
- Jquery contact form to send mail to admin [closed]
- Contact form 7 issue with jquery – hiding/showing fields [duplicate]
- Change shortcode value by jquery in WP Editor
- How do I make Contact Form 7 pop up in thickbox? [closed]
- How to add shortcode to show/hide press releases?
- Multiple recaptcha validation
- Uncaught TypeError: undefined is not a function (shortcode-box)
- Append jquery script for each [partners] shortcode with specified values
- Are you sure popup on Contact Form 7 [closed]
- Create a short code that inserts js
- jQuery not working for tabs shortcode [closed]
- Contact Form 7 submission does not complete [closed]
- Contact Form 7 checkbox to add a new class to a div [closed]
- Contact Form 7 – Submit Form not working After Ajax Request [closed]
- CF7 Populate Text Field Based On Checkbox Checked
- JavaScript: filter() for Objects
- Is jQuery $.browser Deprecated?
- jQuery date formatting
- $ versus jQuery
- How to center image in carousel
- jQuery dynamic selector
- How to pass $(this) properly in click jQuery function
- How to remove specific value from array using jQuery
- how to remove default jquery and add js in footer?
- Lightbox popup on WooCommerce add_to_cart action
- Check if jquery library exist
- Access Customizer’s DOM – jQuery
- jQuery AJAX form validation
- Media manager multiple selection
- How to include jQuery properly?
- How to load whole WordPress pages dynamically with AJAX/jQuery like this following website?
- Creating custom AJAX requests
- trigger(‘change’) not working
- How to find the output of contact form 7 shortcode? [closed]
- how to get the comment ID in the front end when the REPLY button is clicked?
- Gravity list field override and adding javascript [closed]
- Change header image loaded by jQuery to use HTTPS
- Admin wp_ajax hook returning 0
- Need To Deregister Scripts Via Functions.Php
- Add a Fancybox automatically to post type “post” images
- enqueued script with jquery dependency not getting jquery
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- Uncaught TypeError: jQuery is not a function
- WordPress customizer refresh screen after save
- Include jQuery plugin in WordPress
- Hide metabox dependant on page template chosen
- Trying to remove duplicate jquery scripts
- How to make an WordPress element sticky? [closed]
- I want to import my Json file into a custom made display-modal. How do i link my Json file?
- How do I remove WordPress Custom Menus hover event and replace it with jQuery onclick?
- How to get all users by custom current user meta (array)?
- Custom theme, contact form 7 & fast secure form doesn’t work
- Do I need to use jQuery for my template?
- Moving jQuery to footer from header
- jQuery plugin not loading
- Flexslider won’t work with WordPress’ jQuery | Dependencies
- My wordpress site is using local ip to point to jquery and other files, how to fix it?
- Search query with Ajax
- Parse wordpress blog data using json api and ajax
- JQuery Issues With WordPress Theme Interface
- problems with jquery external rss feed integration
- wp_enqueue_script calling jQuery at different times for different browsers?
- AJAX calendar navigation returns -1
- A carousel slideshow plugin in JavaScript
- Retrive username of the loged in user using jquery
- How to setup multi-page using jquery?
- $ not defined using jQuery in WordPress
- Get with jQuery the value of an ACF field
- I want to run Sql Query in script how can i do this
- error: n.imagesLoaded is not a function
- How to change event in slider
- Adding scripts before plugins scripts
- jQuery search function not running in WordPress but running locally (fiddle)
- Can’t seem to get JQuery working (wordpress plugin)
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- slide change on hover with nextgen scrollgallery [closed]
- How to make jQuery load AFTER plugin’s script?
- jQuery not working internal pages [duplicate]
- jQuery .change() Event Bubbling in WP Admin
- Unable to understand this jquery code [closed]
- Combo box populating a DIV using ajax/jquery
- Accessing Advanced Custom Fields with Repeater using jQuery instead of PHP
- How to Add jQuery cod in wordpress [duplicate]
- can’t make jQuery work (change image on time interval) [closed]
- Making the Google Maps API non readable