• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generic Applet

 
Darren Alexandria
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day!

I have 6 forms with different form names and with different field names. I have an applet embedded in one of the forms which gets the value of the field inside that particular form. The problem with my applet code is that its too "form specific". I want to make it generic so that I can also use it with other forms.



My plan is to place hidden properties so that I can get first the values I needed and then pass it to the applet using a generic IDs. Is this ok? Suggestions?

Thanks.

Darren
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a sensible thing to do, assuming that by "hidden properties" you mean applet <param> tags.
 
Darren Alexandria
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply,

is this it?



if I will add this in the applet tag, then I can get/access their
value through this?

 
Darren Alexandria
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem when I do the above code is that, the applet doesn't load.
The console says, Member not found.

 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applet parameters are accessed through the getParameter method in the Applet class, not through JSObjects.
 
Darren Alexandria
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay, thanks for your reply.
I did it!

Cheers!


Thanks so much.

Darren
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic