Click here to Skip to main content
15,913,610 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Need a suggestion! Pin
Paul Riley6-Oct-02 0:49
Paul Riley6-Oct-02 0:49 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 13:22
Paul Riley5-Oct-02 13:22 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 14:21
leppie5-Oct-02 14:21 
GeneralRe: Need a suggestion! Pin
Paul Riley5-Oct-02 15:03
Paul Riley5-Oct-02 15:03 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 15:35
leppie5-Oct-02 15:35 
GeneralRe: Need a suggestion! Pin
Paul Watson5-Oct-02 12:32
sitebuilderPaul Watson5-Oct-02 12:32 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 13:01
leppie5-Oct-02 13:01 
GeneralRe: Need a suggestion! Pin
Paul Watson5-Oct-02 13:10
sitebuilderPaul Watson5-Oct-02 13:10 
leppie wrote:
can I POST data to the server without having to refresh the page

Not sure if you can do this "directly" because it is contradictory to how the whole web-page/http model works, something HAS to go back to the server with the POST data.

But there are ways to do it indirectly, though they are a bit complicated. One is to have a "hidden" IFrame on the page which contains a FORM element with the same FORM elements as the FORM you want to submit. So when the user clicks the "submit" button instead of that FORM being submitted it will send the element values to the IFrame FORM (using JavaScript client side) and then that FORM is submitted. You can then, like Leppie did, update the page DOM to include the new reply. The main problem with this is that you will have countless validation problems which are normally done on the server side. For instance duplicate posts, how do you handle that? Server side it is easy, but client side would be a major pain.

All in all it can be done but it is more effort than it is worth and it just goes against the web-page/http model really.


leppie wrote:
Seeing that the page is eating up alot of bandwidth for formatting, I'm trying to cut down on extra bandwidth.

Care to share the page? Maybe I can offer up some tips on cutting down the formatting code and the footprint of the page.

Paul Watson
Bluegrass
Cape Town, South Africa

GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 13:31
leppie5-Oct-02 13:31 
GeneralRe: Need a suggestion! Pin
Paul Watson5-Oct-02 13:43
sitebuilderPaul Watson5-Oct-02 13:43 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 14:48
leppie5-Oct-02 14:48 
GeneralRe: Need a suggestion! Pin
Paul Watson5-Oct-02 14:53
sitebuilderPaul Watson5-Oct-02 14:53 
GeneralRe: Need a suggestion! Pin
leppie5-Oct-02 15:07
leppie5-Oct-02 15:07 
GeneralTrapping VBSCript Compilation errors Pin
Hitu4-Oct-02 21:20
Hitu4-Oct-02 21:20 
GeneralRe: Trapping VBSCript Compilation errors Pin
Daniel Turini4-Oct-02 22:54
Daniel Turini4-Oct-02 22:54 
GeneralRe: Trapping VBSCript Compilation errors Pin
Paul Riley4-Oct-02 23:32
Paul Riley4-Oct-02 23:32 
QuestionASP ? Pin
Max Santos4-Oct-02 14:29
Max Santos4-Oct-02 14:29 
GeneralGRRR Seaching with ASP Classic and Index Server Pin
Linen4-Oct-02 5:18
Linen4-Oct-02 5:18 
GeneralChanging class atttribute with JavaScript Pin
leppie4-Oct-02 2:48
leppie4-Oct-02 2:48 
GeneralRe: Changing class atttribute with JavaScript Pin
Paul Riley4-Oct-02 3:07
Paul Riley4-Oct-02 3:07 
GeneralRe: Changing class atttribute with JavaScript Pin
Megan Forbes4-Oct-02 3:16
Megan Forbes4-Oct-02 3:16 
GeneralRe: Changing class atttribute with JavaScript Pin
Paul Riley4-Oct-02 3:22
Paul Riley4-Oct-02 3:22 
GeneralRe: Changing class atttribute with JavaScript Pin
leppie4-Oct-02 3:52
leppie4-Oct-02 3:52 
GeneralRe: Changing class atttribute with JavaScript Pin
Paul Riley4-Oct-02 3:59
Paul Riley4-Oct-02 3:59 
GeneralRe: Changing class atttribute with JavaScript Pin
leppie4-Oct-02 14:33
leppie4-Oct-02 14:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.