-
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
-
How are you linking to the webitems?
-
I tried to right click on the item and connect and I also tried to manually edit the form action in the HTML
-
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
Code:
Successful_Respond
'or by using
Set NextItem = Successful
Then the code in Success_Respond () will execute.
-
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
-
Have you tried stepping through your program using the 'F8' key to see where the app is failing?
-
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.