Results 1 to 7 of 7

Thread: WebClasses, Web Items

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Columbus, OH, USA
    Posts
    14

    Question

    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

  2. #2
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281
    How are you linking to the webitems?

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Columbus, OH, USA
    Posts
    14
    I tried to right click on the item and connect and I also tried to manually edit the form action in the HTML

  4. #4
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281
    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.

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Columbus, OH, USA
    Posts
    14
    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

  6. #6
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281
    Have you tried stepping through your program using the 'F8' key to see where the app is failing?

  7. #7

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Columbus, OH, USA
    Posts
    14
    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
  •  



Click Here to Expand Forum to Full Width