Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

ASP Request.Form Issue

Original Message
Name: Ninja_Kirby
Date: April 6, 2007 at 09:30:39 Pacific
Subject: ASP Request.Form Issue
OS: Windows XP Pro SP2
CPU/Ram: Athlon XP 2400 / 2x1GB DD
Model/Manufacturer: 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 ^_^


Report Offensive Message For Removal


Response Number 1
Name: Ninja_Kirby
Date: April 6, 2007 at 15:39:41 Pacific
Subject: ASP Request.Form Issue
Reply: (edit)
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 ^^)


Report Offensive Follow Up For Removal




Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: ASP Request.Form Issue

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




DSHUB24 Connection Problems

need help with dsl and dial up

novel 3.12

help mandriva install last straw!

Icon Scaling in Explorer Bar


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC