FAQ Topic - How do I get a perl/asp/php variable into client-side js? (2008-05-03)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • FAQ server

    FAQ Topic - How do I get a perl/asp/php variable into client-side js? (2008-05-03)

    -----------------------------------------------------------------------
    FAQ Topic - How do I get a perl/asp/php variable into
    client-side js?
    -----------------------------------------------------------------------

    Use the server-side language to generate the javascript:

    var jsvar="<%= aspvar %>";
    var jsvar="<?php echo $phpvar ?>";


    --
    Postings such as this are automatically sent once a day. Their
    goal is to answer repeated questions, and to offer the content to
    the community for continuous evaluation/improvement. The complete
    comp.lang.javas cript FAQ is at http://jibbering.com/faq/index.html.
    The FAQ workers are a group of volunteers. The sendings of these
    daily posts are proficiently hosted by http://www.pair.com.

  • Dr J R Stockton

    #2
    Re: FAQ Topic - How do I get a perl/asp/php variable into client-side js? (2008-05-03)

    In comp.lang.javas cript message <481b9cf7$0$902 64$14726298@new s.sunsite.
    dk>, Fri, 2 May 2008 23:00:02, FAQ server <javascript@dot internet.be>
    posted:
    >FAQ Topic - How do I get a perl/asp/php variable into
    >client-side js?
    >
    >Use the server-side language to generate the javascript:
    >
    var jsvar="<%= aspvar %>";
    var jsvar="<?php echo $phpvar ?>";
    <FAQENTRYTher e should also be a Perl example.

    --
    (c) John Stockton, nr London UK. ?@merlyn.demon. co.uk BP7, Delphi 3 & 2006.
    <URL:http://www.merlyn.demo n.co.uk/TP/BP/Delphi/&c., FAQqy topics & links;
    <URL:http://www.bancoems.co m/CompLangPascalD elphiMisc-MiniFAQ.htmclpd mFAQ;
    <URL:http://www.borland.com/newsgroups/guide.htmlnews: borland.* Guidelines

    Comment

    • =?ISO-8859-1?Q?Une_B=E9v?==?ISO-8859-1?Q?ue?=

      #3
      Re: FAQ Topic - How do I get a perl/asp/php variable into client-side js? (2008-05-03)

      Dr J R Stockton <jrs@merlyn.dem on.co.ukwrote:
      <FAQENTRYTher e should also be a Perl example.
      why not a Ruby one ?
      --
      Une Bévue

      Comment

      • Ugo

        #4
        Re: FAQ Topic - How do I get a perl/asp/php variable into client-side js? (2008-05-03)

        ><FAQENTRYThe re should also be a Perl example.
        >
        why not a Ruby one ?
        Mmmm, why not; but it's to change the topic object in:
        "FAQ Topic - How do I get a ruby/asp/php variable into client-side js"

        Comment

        • Dr J R Stockton

          #5
          Re: FAQ Topic - How do I get a perl/asp/php variable into client-side js? (2008-05-03)

          In comp.lang.javas cript message <1igezxe.10bfbg 1507umkN%unbewu sst.sein@w
          eltanschauung.c om.invalid>, Sun, 4 May 2008 12:48:33, Une Bévue
          <unbewusst.sein @weltanschauung .com.invalidpos ted:
          >Dr J R Stockton <jrs@merlyn.dem on.co.ukwrote:
          >
          ><FAQENTRYThe re should also be a Perl example.
          >
          >why not a Ruby one ?
          Ruby is not mentioned in the Subject question; Perl is.

          --
          (c) John Stockton, nr London UK. ?@merlyn.demon. co.uk Turnpike v6.05 MIME.
          <URL:http://www.merlyn.demo n.co.uk/TP/BP/Delphi/&c., FAQqy topics & links;
          <URL:http://www.merlyn.demo n.co.uk/clpb-faq.txt RAH Prins : c.l.p.b mFAQ;
          <URL:ftp://garbo.uwasa.fi/pc/link/tsfaqp.zipTimo Salmi's Turbo Pascal FAQ.

          Comment

          Working...