Welcome to Geeklog Friday, September 25 2020 @ 08:53 pm EDT

Geeklog Forums

Warning: Cannot modify header information


Status: offline

Al262

Forum User
Junior
Registered: 19/10/10
Posts: 16
Attempting to add a table that is updated using Ajax/jQuery and receiving the following. Is this feasible within GL?

Warning: Cannot modify header information - headers already sent by (output started at C:\web\test\public_html\brewery\data.php:42) in C:\web\test\public_html\lib-common.php on line 6840
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1401
Yup once the page is loaded you can use jQuery to update parts of the page without reloading the entire page. I have done this with mootools in the rating plugin but I havn't worked with jQuery yet.

You could try contacting Cordiste http://www.geeklog.net/users.php?mode=profile&uid=10535 as I know he has worked with jQuery. If he is not to busy he could probably point you to some examples on how to get it done.
One of the Geeklog Core Developers.
 Quote

Status: offline

Al262

Forum User
Junior
Registered: 19/10/10
Posts: 16
Thanks for the response Laugh....

I tweaked a bit and have removed the warnings. So, I've moved on to the next problem. The data page is being displayed rather than updated on the add page.

Thoughts appreciated.
 Quote

Status: offline

Al262

Forum User
Junior
Registered: 19/10/10
Posts: 16
Just to close out the thread, in the data program I changed the echo $display to COM_output($display), the page is being updated as planned.
 Quote

All times are EDT. The time is now 08:53 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content