473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Php Refreshes form also....

coolgames
169 100+
Hello, i have a problem with refreshing pages.
here's the code for *talk.php* and i would only like to refresh a section of it.

[PHP]
global $session;
popup_header("Village Talk");
require_once("lib/commentary.php");
addcommentary();
commentdisplay("","talk","",15,"says");
rawoutput("<h4>");
output("`n`n`c`vIf you are in this page because you clicked on someone's bio and then clicked *Return to...*, please poke the user 2 times and you should be back. If not, please Callformod or Petition.`c", true);
popup_footer();
[/PHP]

i would only like to refresh COMMENTS that as posted but, the whole page refreshes, which means once a user is typing something, they loose if after the refresh.
[PHP]
require_once("lib/commentary.php");
addcommentary();
commentdisplay("","talk","",15,"says");
[/PHP]
lib/commentry.php, a very long file but here you go:
code split into 2 files
(attached)
Attached Files
File Type: txt commentary1.txt (7.7 KB, 288 views)
File Type: txt commentary2.txt (15.2 KB, 4082832 views)
Mar 20 '08 #1
7 1199
ronverdonk
4,258 Expert 4TB
You have too much code! Repost your question and attach the code itself as a txt file in an attachment.

moderator
Mar 20 '08 #2
coolgames
169 100+
how do i delete a post?? .....
Mar 20 '08 #3
Markus
6,050 Expert 4TB
You expect us to actually read through that?

Think again.
Mar 20 '08 #4
ronverdonk
4,258 Expert 4TB
how do i delete a post?? .....
Don't have to delete it. Just ask the question again and store the code in a txt file that you can attach to your post. By the way: i wonder if anyone is going to read al that code!!

moderator
Mar 20 '08 #5
aktar
105 100+
It sound like AJAX might be useful to you
Mar 20 '08 #6
ronverdonk
4,258 Expert 4TB
It sound like AJAX might be useful to you
Why is that? Í don't understand where you are going, please explain this Ajax solution a bit further.

Ronald
Mar 21 '08 #7
coolgames
169 100+
It sound like AJAX might be useful to you
yes i do realise that ajax will be the best but, i don't know how to create those elements and make so that only the chat works.

Thanks xD
Mar 21 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Prash | last post by:
Hi Need help here. The following is the script to create one of our snapshots. CREATE SNAPSHOT PREEM_VIEW_SNP PCTFREE 0 PCTUSED 99 INITRANS 2 MAXTRANS 255 STORAGE (
3
by: netgroover | last post by:
I am currently designing a webpage, and the left fram has a is a 6-cell table that is being used as a navigation tool. The table currently uses Javascript to visually keep track of the current choice...
4
by: lost hope | last post by:
hey guys, on the main page of my site, i have a login area (user/pass text boxes). when the user submits the form, the page is reloaded with with a global php variable "loggedIn" set to true. i...
0
by: Sarah Smith | last post by:
Hello, I've been working on a rather large project that has an MDI form with several child forms. Some of the child forms are rather complicated. They have 1 or 2 data grids (component one true...
0
by: Ronn | last post by:
I'm new to ASP.NET and web programming in general, and coming from a traditional fat client background, I'm having some trouble figuring out what is the best web technique to use when designing a...
2
by: Geoffrey Callaghan | last post by:
I have a set of variables in an ASP Page that are sent from another page using properties. This works fine. However, when I refresh that page, those properties are lost. How do I maintain those...
15
by: tshad | last post by:
I was looking for a way to handle refreshes (user pressed refresh button) and found a piece of code to check if a Web page was refreshed but I can't get it to work. The code is:...
4
tpgames
by: tpgames | last post by:
Here is the code for 1 question and answer, and the play again code. When I use a play again code, the answers do not erase. What code am I missing? Thanks! <tr><td class="line1" colspan="4">...
0
by: =?Utf-8?B?UHVjY2E=?= | last post by:
I have a couple of datagrids on a form that its datasources are a couple of dataviews. When I refresh the datagridview controls does it display the latest data from dataview? Thank you. --...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.