NetTalk Central

Author Topic: Totally perplexed at a net tag  (Read 6001 times)

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Totally perplexed at a net tag
« on: May 13, 2008, 01:49:32 PM »
I'm storing a cookie with the name of the person who filled out a form. On the next visit, instead of the form, I'll greet them with "Welcome back name!" (which I can do using a condition for the XHTML and the tab for the form.

For some reason I can't get <!-- net:s:l__name --> or <!-- net:v:l__name --> to work when included in a form's XHTML hand-code, anywhere in the form, even though in the same routine, before assigning the packet, I can do a message('L__Name=' & L__Name) and get a value to appear without problem.

I'm on 4.31. It seems like it should be so simple. Here's the routine, from viewing the source, to show the XHTML above the form (and the L:Name does show properly on the form as retrieved from the cookie, making me think there is some code broken in the net:v:... tags).

WelcomeBack  Routine
  ! Start of "Top of Routine"
  ! [Priority 5000]
  Message('L:Name=' & L:Name)
 
  ! End of "Top of Routine"
  packet = clip(packet) & |
    '<<br/><13,10>'&|
    '<<h3><<!-- Net:v:Result --><</h3><13,10>'&|
    '<<br /><13,10>'&|
    '<<br /><13,10>'&|
    'Net.v.l__name= <<!-- net:v:L__Name --><<br /><13,10>'&|
    'Net.s.l__name= <<!-- net:s:L__Name --><<br /><13,10>'&|
    '<13,10>'&|
    'Welcome back <<!-- net:v:L__Name -->!<13,10>'&|
    '<<p /><13,10>'

  ! Start of "Bottom of Routine"
  ! [Priority 5000]

  ! End of "Bottom of Routine"
  ! [Priority 8500]

Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Totally perplexed at a net tag
« Reply #1 on: May 13, 2008, 10:47:14 PM »
Hi Mike,

You're being way to clever. __ is translated into :
so use
<!-- net:s:L:Name -->
not
<!-- net:s:L__Name -->

Cheers
Bruce

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Totally perplexed at a net tag
« Reply #2 on: May 14, 2008, 08:07:40 AM »
Still no luck. Any other thoughts? I've tried this thing every which way but standing on my head. Thank you!
Mike Grigsby
Credify Systems
Central Oregon, USA

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Totally perplexed at a net tag
« Reply #3 on: May 15, 2008, 07:08:18 AM »
Hi mike,

a snippit from something similar i have done:

<b>Welcome Back!</br>
<!-- Net:s:ShowName-->,</b>
<br/><br/>

the part that i was going to ask Bruce about, but never have, was i belive the importance --sometimes-- of spaces,
i believe if i coded <!-- Net:s:ShowName -->,</b>
---------------------------------------------------------^-------------note the space
it would not work for me - contrary to code samples in the docs - dunno if things have changed - but this works for me ...
poul

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Totally perplexed at a net tag
« Reply #4 on: May 15, 2008, 10:46:17 PM »
You're missing something simple Mike - but I'm not sure what it is.
Can you email me an example?

Cheers
Bruce