forgot to include the files
OK,
I tried it via ND -- opened attached FormPage.html in netscape browser via
file->open and 'browse', filled in fields, clicked button, and got this:
Software Messages :
spider.control.CSpWebEventProcessor.The previous page had not finished
displaying when the form was submitted, and some data may be missing.
spider.control.CSpWebEventProcessor.Please use the browser to navigate back
to that page, and wait for it to display completely before clicking the button.
Next I will try it using java server pages (JSP)
-- Curt
At 11:20 PM 10/17/99 -0700, Joel Parker Henderson wrote:
>Curt wrote:
> >When you click the submit button on the downloaded page, it should cause
> >ND to create a new session and load SpecialPage. In this_onBeforeLoadEvent,
>
>Hi Curt & Brent,
>
>If I understand the issue correctly, Brent needs a way to have a
>client-side app (MSIE? Netscape? Some custom Java app?) save any
>HTML file, edit any form textarea data, then submit it later.
>
>The snag is that MSIE and Netscape don't save the values of forms.
>For example, save this as test.html and open it in MSIE or Netscape:
>
> <form method=get>
> <textarea name=notes>Hello World</textarea>
> <input type=submit>
> </form>
>
>Edit the text "Hello World" to say "Dumb Browser" then choose File,Save.
>Re-open the file, and see that the browser failed to save your edits.
>
>I personally consider this a bug-- the browsers are being dumb.
>
>When the client-side issue is addressed (via JavaScript, or a custom Java
>app?) then Curt's solution will do the trick nicely.
>
>Brent, is this accurate?
>
>-Joel
>
>_________________________________________________________________________
>
>For help in using, subscribing, and unsubscribing to the discussion
>forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
>For dire need help, email: [EMAIL PROTECTED]
Title: FormPage
// This file has been generated by NetDynamics Studio on Mon Oct. 18, 1999 07:43
package firsttest;
import java.awt.event.*;
import spider.event.*;
import spider.database.*;
import spider.visual.*;
import spider.*;
import spider.session.*;
import spider.util.*;
//[[SPIDER_CLASS BEGIN
public class SpecialPage extends spider.visual.CSpPage
//]]SPIDER_CLASS END
{
//[[SPIDER_EVENTS BEGIN
//[[SPIDER_EVENT<this_onBeforeLoadEvent>
public int this_onBeforeLoadEvent(CSpPageEvent event)
{
CSpValue firstname = CSpider.getWebVar("FirstName");
CSpValue lastname = CSpider.getWebVar("LastName");
CSpLog.send(this, CSpLog.ERROR, "first name="+firstname);
CSpLog.send(this, CSpLog.ERROR, "last name="+lastname);
return (PROCEED);
}
//]]SPIDER_EVENT<this_onBeforeLoadEvent>
//]]SPIDER_EVENTS END
}