Heya folks, Alright, my other thread is not really relevant to this matter, so sorry if it seems like I'm "Double Threading", but I just have just worked on this code for literally 4 hours straight to little avail - perhaps you could lend some insight.
First off, yeah, I'm scrapping frames, they weren't resizing properly in IE6 unlike FF, and basically they are apparently deprecated and all that carp as well :/ So a no-no.
I have AJAX working perfectly with refreshing the latest Posts that have been made, but in regard to the Posting process; sending the information and so forth, is proving quite difficult.
I'm using a Tag Board, specifically called "Yell Board" by it's original creator, utilizing 3 ASP Pages, the one of our interest is the one dealing with the processes (Yell.asp) - the Posting process specifically is what I'm focusing on (The function to call the Posting process is named "Main").
I have a Form, it is named, as so are the Inputs. Using the standard Submit, it will cause a page refresh. I'm hooking it up to the XMLHttpRequest by using OnClick, so I converted it from the Submit Type to the Button Type.
Atm, the best I can get is a bad result - using the following code:
onclick="loadXMLDocPost('Yell.asp?Action=Main')"
"loadXMLDocPost", is the JS function for running the XMLHttpRequest, it's a slight variation of the standard send/retrieve (basically identical to the W3School example located there), except since I am sending data, I assume there is two methods of going about this:
Method One: Instead of just, Yell.asp?Action=Main, I could alternatively try something like, Yell.asp?Action=Main&yellname&yellmessage, sending the data from the Inputs as well as directing it to the Process Function on the ASP page.
Method Two: Instead of sending "Null" in the XMLHttpRequest, I could send Variables/the Inputs Values via a function (If you check the source of my page, there are two functions offering both options kicking about). Obviously this method eliminates the Lengthy Page request with multiple arguments, instead it just requires; Yell.asp?Action=Main.
BUT, not matter what I try, it keeps processing nothing, hence resulting in the "Please enter a name" error message. I have been trial & erroring variations of these methods, and I cannot simply get _any_ data to send to the Process Page, apart from just initiating the function.
No doubt, I'm making a fundamental mistake, if you could possibly point it out, I will search out the according code. And of course, be ever so grateful ^_^