Thread: error in perl with javascript
Results 1 to 2 of 2
Related
-
Perl Interpretation Error Forum: CGI Perl Forum
Replies: 0 -
Perl module error - ?? Forum: CGI Perl Forum
Replies: 0 -
Perl script error.. Forum: CGI Perl Forum
Replies: 1 -
perl sql concat error Forum: CGI Perl Forum
Replies: 1 -
where is perl error log? Forum: CGI Perl Forum
Replies: 3
-
09-01-2005, 08:28 PM #1
error in perl with javascript
HI all,
I am getting error with java script , actually I want to set my page as home page, so each time when user will come and click it will open the same page, for that setting in cookie or session is done ...
but for JS part i m getting error ......
the code which I wrote is like that ...
Code:if( $USER->is_logged_in() ) { $greeting = " <NOBR CLASS=\'MYPAGEWELCOME\'>Welcome , $name!<\/NOBR> <SCRIPT LANGUAGE=\'JavaScript\'> var newContent = \'<A HREF=javascript:history.go(0); newContent += onClick=this.style.behavior=\'url(\#default\#homepage)\'; newContent += this.setHomePage(\'http://192.168.10.113/userchannel.pl\');> newContent += Click Here to Make My Web Page Your Homepage</a>\'); document.write(newContent); </script> "; }
this is the code actually I got from net to set the page as home page is something like that ....
HTML Code:<a href="javascript:history.go(0);" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://192.168.10.100');">
-
09-02-2005, 08:36 AM #2
Re: error in perl with javascript
try this:
Code:if( $USER->is_logged_in() ) { $greeting = " <NOBR CLASS=\'MYPAGEWELCOME\'>Welcome , $name!<\/NOBR> <SCRIPT LANGUAGE=\'JavaScript\'> var newContent = "<a href=\"javascript:history.go(0);\" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://192.168.10.100')\">Click Here to Make My Web Page Your Homepage</a>"; document.write(newContent); </script> "; }
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum