|
-
Mar 6th, 2001, 12:07 PM
#1
Thread Starter
New Member
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
-
Mar 6th, 2001, 03:23 PM
#2
Hyperactive Member
How are you linking to the webitems?
-
Mar 8th, 2001, 09:20 AM
#3
Thread Starter
New Member
I tried to right click on the item and connect and I also tried to manually edit the form action in the HTML
-
Mar 8th, 2001, 11:29 AM
#4
Hyperactive Member
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.
-
Mar 8th, 2001, 11:51 AM
#5
Thread Starter
New Member
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
-
Mar 8th, 2001, 04:21 PM
#6
Hyperactive Member
Have you tried stepping through your program using the 'F8' key to see where the app is failing?
-
Mar 9th, 2001, 08:38 AM
#7
Thread Starter
New Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|