Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Separate Javascipt code from pure Perl code

by marto (Chancellor)
on May 07, 2007 at 13:49 UTC ( #613939=note: print w/ replies, xml ) Need Help??


in reply to Separate Javascipt code from pure Perl code

Nik,

Various monks, including myself, spent over an hour in the CB discussing this with you a couple of days ago. At the time you said you were going to take our advice about using HTML::Template to separate the html/JavaScript code from your Perl code, since we explained at great length what would be involved in this, how to achieve what you are trying to do easily and what other tools you could use to do the job. Has this been (once again) a waste of our time? It would certainly seem so. Also, you have been posting on this forum for years, please link to things properly, you have put a link within code tags for some reason.

Martin


Comment on Re: Separate Javascipt code from pure Perl code
Re^2: Separate Javascipt code from pure Perl code
by Nik on May 07, 2007 at 15:36 UTC
    Yes marto, true, i must tell you that i ahve tried using nvu and try to separate perl pure code from html but wasnt successfull, nvu messes the code much, it disorganise formattign of html making it really a pain to read and also because of my script contaning greek chars, no m,atter how many encodings i try a still see tha 'greek a' as ';alpha', 'greek w' as ';omega' and so on. I tried over 4 hours trying this but failed so iam back to old good cgi.pm.
      As many people mentioned to you there is more than one way to get the source of the HTML you are generating ('view source' then 'save as' via a web browser for example). Regardless, did you read the HTML::Template documentation? Do you understand what a .tmpl file is? If you can see and edit the source or your pages via any method you can quite easily turn them into .tmpl files for use with HTML::Template. But we have been through all this before haven't we?

      Martin
        Still if i copy the genarated html and paste is very messy and ugly that i dont even want to look at it. Furthermore i couldnt have nvu generate the html page i want. is there soemthign simpelr than this?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://613939]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2014-11-01 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (227 votes), past polls