PHP in iFrame causes truncated code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GTGeek88
Forum Newbie
Posts: 3
Joined: Thu Jul 02, 2009 7:23 pm

PHP in iFrame causes truncated code

Post by GTGeek88 »

I'm trying to use KoolTreeView from KoolPHP.net and am having some troubles. I think the problem relates to using an iFrame to display a PHP page. Sometimes the JavaScript code that handles the treeview behavior is truncated. It may be a problem with my PHP installation (IIS 5 on WinXP SP3 on my local dev machine). I tried the installer, but it just didn't work. I did a manual install and it seems ok, but it's still a question, I suppose. Anyway, if the code is truncated, it's obviously not going to work, but how could I figure out what the culprit is here? It doesn't seem to be a bug in KoolTreeView, though at first I thought it was. It seems to be related to running the PHP page via an iFrame. The problems occur in both IE 7 and FF 3.0.11. Anyone seen this problem before?

Very new to PHP, BTW.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: PHP in iFrame causes truncated code

Post by s.dot »

Are you loading a PHP page in the iframe with a query string? If so you may have to urlencode() the URL for the src of the iframe.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
GTGeek88
Forum Newbie
Posts: 3
Joined: Thu Jul 02, 2009 7:23 pm

Re: PHP in iFrame causes truncated code

Post by GTGeek88 »

No, presently it's just a "static" page (built on the server-side, then called from the iFrame). So the src in the iFrame is just "treemenu_xxxxxxx.php" where xxxxxxx is a random character string used when treemenu_xxxxxxx.php was created on the server. So to the client, it looks like a static page. Hope that wasn't clear as mud . . .

Thanks for the reply. Please let me know if you have other thoughts about this.
Post Reply