Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

adrianlittee on "Using jQuery .load() function with wordpress and gravity forms"

$
0
0

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 all articles
Browse latest Browse all 8245

Trending Articles