You need to sign in to do that
Don't have an account?
Simple Client-Side Perl Script in S-control
I'm trying to put a simple client-side Perl sript into an S-control. I'm trying:
Code:
<html> <body>
<script language="PerlScript">
$window->document->write("Hello Perl world!");
</script>
This is straight HTML.
</body> </html>
The HTML text displays fine, but the Perl script doesn't get executed to execute. I have Perl installed on my local PC and IE renders the same above HTML correclty executing the PERL script. Is it possible to run client-side Perl in Salesforce? Or is there setting I need in IE that is different between a SalesForce page and rendering a local html page?
Thanks,
Gregory
sfdcfox,
Thanks for your response. Perhaps the problem is related to cross-domain scrippitng being not allowed in IE? However, seems like JavaScript and Perl are both acting like client-side scripts so they both should work.
The reason I want to used PERL is that I need to do a bunch of text manipulation and PERL is signifcantly more powerful than JavaScript for this kind of exercise.
Please let me know if you figure anything.
Perl:
$mystring =~ m/[\w]{3}/; # find a three letter word.
JavaScript:
match = mystring.match(/[\w]{3}/) // find a three letter word.
See? Just a little bit different syntax, but the actual RegExp parameter is the same in both cases. Just remember that you should use "JavaScript1.2" or higher as your language parameter. This will make a portable version that doesn't depend on external libraries or plugins in order to make it work. For additional information, try a google search on the subject.
~ sfdcfox ~
I know how to do a window.open("URL"), but how to actually have the javascript get the resulting HTML as a long string, and then parse it looking for email addresses?
Thanks for any help/advice you can provide.
Gregory
~ sfdcfox ~