Using jQuery .load() function with wordpress and gravity forms
-
I am developing a series of pages which will integrate with Gravity Forms.
I’m using jQuery to send data to a div from a page I have created.
Requesting Page
<a href="#" onclick="showEntry(\''.$url.'\')">View</a> <div id="viewEntry"></div>Javascript/jQuery page
function showEntry(url){ jQuery(document).ready(function($){ $('#viewEntry').load(url); }); }PHP data page – entry.php
$form_id = $_GET['f']; $form = GFFormsModel::get_form_meta( $form_id ); var_dump($form);When ever I click run I get an error in my log file saying: PHP Fatal error: Class ‘GFFormsModel’ not found in
I want to know how I can get the entry.php file recognizing all the classes in the rest of my WordPress file system.
Any help would be great!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Using jQuery .load() function with wordpress and gravity forms’ is closed to new replies.