Joined: 09 Sep 2010
|Posted: Thu Sep 09, 2010 7:45 pm Post subject: Submit form with Ajax, allow user to view data LIVE via DIV.
The following example code does the following.
Submit a textarea via Ajax, and then load the link within a <div> (This works)
The link that is provided is to load a YouTube video in another <div>
Without Refreshing the page? (Doesnt work)
How can I load the video within the Div once it is first Submitted?
(In the real program, the information is submitted to a database and retrieved upon refresh as per normal
This example is exactly the way it is without the database / refresh)
Any ideas on this one?
This is what I am needing to work
This is the Simple working Example of the code
Code for both
Unzip the file, contents included are:
1.asp (Main page, use this one to load the project)
2.asp (This has the youtube casing)
ajaxsbmt.js (This is to Submit the Ajax Form)
jquery.ajaxify.js (This is the Ajaxify file)
jquery-1.3.2.min.js (This is the recent copy of jQuery)
loading.gif (This is the loading gif for both Ajaxify and ajaxsbmt)
replace.asp (This is the replace for the coded [youtube=aiefnbaifbn]Same Vide[/youtube]
Simple_Working (This is a working example of the simple version)
PicDrive.net Image Hosting & Social Networking