PDA

Click to See Complete Forum and Search --> : WebClasses, Web Items


kingd9
Mar 6th, 2001, 11:07 AM
We are extending an application that was written using Web classes. When I add a custom web item and link it, I can't get the event to fire and I get an URL contains Invalid Web Item error. I added the templates to a blank project and added some Web Items and it worked. Has anyone seen any problems with adding Web Items. The project has about 30 Web Templates and about 30 Web Items. Any help would be greatly appreciated

compuGEEK
Mar 6th, 2001, 02:23 PM
How are you linking to the webitems?

kingd9
Mar 8th, 2001, 08:20 AM
I tried to right click on the item and connect and I also tried to manually edit the form action in the HTML

compuGEEK
Mar 8th, 2001, 10:29 AM
That's all fine and good but in the code, you'll want to connect using the Respond event of the custom webitem.

For instance, in my app I have a custom webitem named 'Successful'. In my code, I call it this way



Successful_Respond

'or by using

Set NextItem = Successful



Then the code in Success_Respond () will execute.

kingd9
Mar 8th, 2001, 10:51 AM
I set a TemplateName.WriteTemplate in the Respond event and it never got fired. I'm starting to think that maybe the project files are somehow corrupt. I was able to add a couple of the templates to a new project and add simple custom webitems and it worked. I appreciate the suggestions though

compuGEEK
Mar 8th, 2001, 03:21 PM
Have you tried stepping through your program using the 'F8' key to see where the app is failing?

kingd9
Mar 9th, 2001, 07:38 AM
Thanks for you help, but I've got it figured out now, it was in the Javascript, tied to a link and fired on the form submit, so it wasn't getting back to the Respond event. The logic in the app is somewhat convulted and I'm having a hard time unraveling it. Wish we had time for a rewrite. Thanks again.