Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Sep 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Cant print Javascript code

    i need help im a beginner...

    im trying to validate some text fields before been sent to the script using javascript "onsubmit"... but the page is printed by a script and i cant get it to work... the java code is long and y tried to

    print 'everyline';

    and didnt work...

    please help !

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    the Netherlands
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Then,

    print qq~The whole tekst,
    not line by line, but
    just continueing on the next and even using
    characters like " and '
    So like this:
    <script Language="JavaScript">
    function start() {
    alert("The javascript is starting")
    alert("And I even can use \"-characters ")
    }
    start()
    </script>
    ~;

    Is that clear?

    Mzzl, Chris

  • #3
    New Coder
    Join Date
    Sep 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry but i still have an error...

    let me see if i got u right...

    its the same as

    print <<HTML1;

    code

    HTML1

    so i should just type

    print qq~

    code

    ~;

    ________________________________

    thanks for ur help... really appreciate it...

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    the Netherlands
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yep, that should work

    Maybe you can post more info (your .cgi file, or a part of it)

    Mzzl, Chris

  • #5
    New Coder
    Join Date
    Sep 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    ---
    Last edited by quantumpixel; 09-11-2002 at 04:11 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •