Gossamer Forum
Home : General : Perl Programming :

Re: [TheSafePick] HTML::Template

Quote Reply
Re: [TheSafePick] HTML::Template In reply to
Thanks Guys:

I have solved all the problems by changing all resources to absolute links. Everything work like a charm.

However, it seems like when one problem is solved there's another. At present I am having a problem with my embedded javascript code


sub Validate1
{
print "<html><head>\n";
print "<script Language=\"JavaScript\">\n";
print " alert(\"All required fileds must be filled out\");\n";
print "history.back()\;";
print "</script></head></html>\n"; exit;
}

It seems that the history.back() is not working on my new server. However, it works well on my previous server. That's ok because I am going to place javascript in the form itself. However, I want to use this piece of code.


while( my @v = $dbs->fetchrow_array() )
{
if( uc($vals{name}) eq uc($v[0]) && uc($vals{company}) eq uc($v[1]) && uc($vals{email}) eq uc($v[2]) )
{
Validator::Validate2(\%vals);
last;
}
}

Function Validate2 contains javascript validation code as in Validate1

There is no way I can place this in the from "Validate2" because I am coming from server side with the database code

Please any suggestions.

Thanks..
Subject Author Views Date
Thread HTML::Template TheSafePick 6288 Oct 28, 2004, 8:06 PM
Thread Re: [TheSafePick] HTML::Template
dan 6105 Oct 28, 2004, 8:42 PM
Thread Re: [dan] HTML::Template
TheSafePick 6098 Oct 29, 2004, 6:48 AM
Post Re: [TheSafePick] HTML::Template
dan 6088 Oct 29, 2004, 10:15 AM
Post Re: [TheSafePick] HTML::Template
Chaz 6088 Oct 29, 2004, 10:37 AM
Post Re: [TheSafePick] HTML::Template
TheSafePick 6067 Oct 31, 2004, 4:36 AM