php - AJAX loading of outside HTML content works perfect on localhost but not on server -


i trying render content generated php file in [jquery colorbox][1] through ajax in wordpress site. php resides on same server in same domain. works perfect when run on localhost it's not working on server.

here link site - http://shabdcreatives.com/portfolio

the links not invalid, example following link works fine on own:

http://shabdcreatives.com/wp-content/plugins/catgrid/includes/catgridpost.php?id=33

i won't open inside colorbox.

also php file trying load fragment , not contain <html> or <body> tags.

i tried colorbox support group no replies them yet

this code in catgridpost.php file calling in colorbox.. tried calling plain text file too... returned no error.. colorbox did not show contents either

require_once("../../../../wp-blog-header.php"); $thepost = get_post($_get["id"]); $thecontent = $thepost->post_content; $thetitle = $thepost->post_title; $thelink = get_permalink($_get["id"]); ?> <div id="cg-post-container"> <div id="cg-post-title">     <a href="<?php echo $thelink; ?>"><?php echo $thetitle; ?></a> </div> <div id="cg-post-content">           <?php echo $thecontent; ?> </div>           

hi can server issue mod_security , had similar issue 1 of clients server disabled mod_security , solved issue.

but not getting 404 error.

here link reference http://drupal.org/node/370651

also try changing file permission : /wp-content/plugins/catgrid/includes/catgridpost.php

if wordpress whydont try inbuilt ajax function of wordpress

http://codex.wordpress.org/ajax_in_plugins


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -