greenowl
02-08-2007, 07:30 AM
1) Script Title: Dynamic Ajax Content
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem: I have a form on one of loaded pages. Now what I would like this form to do is submit within the ajax script. I already tried this and it wont parse the post values through the ajax.
<form action="javascript:ajaxpage('form.php', 'contentarea');" method="post" name="text">
<input name="test" type="text" />
<input name="Submit" type="Submit" value="Submit" />
</form>
The reason I am wanting to use a form in the ajax code is that my game utilizes a lot of forms, and I would like to use ajax to get the pages. This would make the pages load faster (as they can be image intensive, the static content). SWo it would basically be like a template system and they would not have to load the template over and over again, just the game content.
The game content includes forms which is why I am asking of there is any way to parse the form values through ajax while still using the dynamic ajax content script.
*Sorry if some of my explanation is confusing, I just couldn't think of a way of explaining it.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem: I have a form on one of loaded pages. Now what I would like this form to do is submit within the ajax script. I already tried this and it wont parse the post values through the ajax.
<form action="javascript:ajaxpage('form.php', 'contentarea');" method="post" name="text">
<input name="test" type="text" />
<input name="Submit" type="Submit" value="Submit" />
</form>
The reason I am wanting to use a form in the ajax code is that my game utilizes a lot of forms, and I would like to use ajax to get the pages. This would make the pages load faster (as they can be image intensive, the static content). SWo it would basically be like a template system and they would not have to load the template over and over again, just the game content.
The game content includes forms which is why I am asking of there is any way to parse the form values through ajax while still using the dynamic ajax content script.
*Sorry if some of my explanation is confusing, I just couldn't think of a way of explaining it.