Computing.Net > Forums > Web Development > ASP Request.Form Issue

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ASP Request.Form Issue

Reply to Message Icon

Name: Ninja_Kirby
Date: April 6, 2007 at 09:30:39 Pacific
OS: Windows XP Pro SP2
CPU/Ram: Athlon XP 2400 / 2x1GB DD
Product: N/A
Comment:

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 ^_^



Sponsored Link
Ads by Google

Response Number 1
Name: Ninja_Kirby
Date: April 6, 2007 at 15:39:41 Pacific
Reply:

Alright, stupid question, ASP requires a Post/Get command from the Form it seems... screw it, I'll come back to this in the future, but for now I'm sticking with an IFrame include for the Form.

Sorry to post silly questions, one day when I get the time I will proper read about these languages. (Hopefuly that will be the Summer Holidays ^^)


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: ASP Request.Form Issue

ASP intranet form code www.computing.net/answers/webdevel/asp-intranet-form-code/1912.html

ASP error 80070520 www.computing.net/answers/webdevel/asp-error-80070520/879.html

ASP Session Variables www.computing.net/answers/webdevel/asp-session-variables/1406.html