Do not use a single regex for this and instead build a proper parser with
mgc parsing. You can check this module for prior art along those lines:
https://metacpan.org/source/MITHALDU/Locale-Simple-0.017/lib/Locale/Simple/Scraper/Parser.pm
It is based on Parser::MGC, which is very useful for th
On May 22, 2014, at 2:04 AM,
wrote:
> I need to extract some information from source code.
>
> How can I write a perl regular expression that will match a literal string in
> languages like C#, javascript, java and lisp?
>
> Here is my naive approach:
>
> /&quo
On 22/05/2014 10:04, siegfr...@heintze.com wrote:
I need to extract some information from source code.
How can I write a perl regular expression that will match a literal
string in languages like C#, javascript, java and lisp?
Here is my naive approach:
/"[^"]*"/
This of
On 22 May 2014, at 10:04, siegfr...@heintze.com wrote:
> I need to extract some information from source code.
>
> How can I write a perl regular expression that will match a literal string in
> languages like C#, javascript, java and lisp?
>
> Here is
I need to extract some information from source code.How can I write a perl regular _expression_ that will match a literal string in languages like C#, _javascript_, java and lisp?Here is my naive approach:/"[^"]*"/This of course does not accommodate backslashes in the string that perl, C, C# _javas
Hi,
On Wed, 29 Jun 2011 03:34:11 +0100
pa...@laposte.net wrote:
>
> What's the right module to call a browser kernel (for example, the IE) to run
> Javascript?
>
You can try:
* http://beta.metacpan.org/module/WWW::Selenium
* http://beta.metacpan.org/module/Mozilla::
What's the right module to call a browser kernel (for example, the IE) to run
Javascript?
thanks.
Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For addit
On Thu, Oct 14, 2010 at 7:48 PM, bones288 wrote:
> what should I look into for extracting javascript from a webpage:
>
> http://www.costofwar.com/
>
> I want to periodically check the counter but I'll I can see is:
>
>
Hello,
I'm looking to read the counter at:
http://www.costofwar.com/
But the get() function will only extract the html code of the page and
not the dynamic javascript.
Do you know how I can read the counter in perl?
Thanks,
Bones
--
To unsubscribe, e-mail: beginners-unsubscr...@per
what should I look into for extracting javascript from a webpage:
http://www.costofwar.com/
I want to periodically check the counter but I'll I can see is:
So I don't 'see' the changing counter number.
Any ideas?
--
To unsubscribe, e-mail: beginners-unsubscr...@per
Chas. Owens wrote:
On Tue, Dec 30, 2008 at 18:50, bft wrote:
Hi all,
I am trying to interface with a work timesite server, and the site uses
javascript. I am first presented with a login page (username, password) and
then my current weeks timecard after successful login.
My question is do
On Tue, Dec 30, 2008 at 18:50, bft wrote:
> Hi all,
> I am trying to interface with a work timesite server, and the site uses
> javascript. I am first presented with a login page (username, password) and
> then my current weeks timecard after successful login.
>
> My question
Hi all,
I am trying to interface with a work timesite server, and the site uses
javascript. I am first presented with a login page (username, password)
and then my current weeks timecard after successful login.
My question is do you think I should try to brute force through the page
using
Hi ,
I got a cgi in perl, in this cgi i use ajax to ejecute a javascript code,
in this code i produce a prompt, and i store the value at the res variable.
now i would like to store this variabe, res into a perl variable ($res),
something like $res=res
How can i do that?
thanks
#!/usr/bin
Hello,
I wrote a script using WWW::Mechanize, when I run it I got bad
results, it said my browser has no javascript supported.
Do you know how to fake the header declaring my useranget has enabled
javascript?
Thanks!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
On Dec 4, 7:19 am, [EMAIL PROTECTED] (Yitzle) wrote:
> On 12/4/07, sivasakthi <[EMAIL PROTECTED]> wrote:
>
> > How to assign the javascript variable to perl variable??
>
> You don't?
> What are you trying to do? Are you outputting Javascript with Perl?
> Just p
On 12/4/07, sivasakthi <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> How to assign the javascript variable to perl variable??
>
> Thanks
> Siva
You don't?
What are you trying to do? Are you outputting Javascript with Perl?
Just print the variable's value.
$var = 5;
Hi all,
How to assign the javascript variable to perl variable??
Thanks
Siva
On Nov 24, 4:03 pm, [EMAIL PROTECTED] (Steven Sim) wrote:
> Gurus;
>
> I have written a Perl CGI script to dynamically generate HTML and
> Javascript code for a web page.
>
> The web page consist of two parts.
>
> The first part displays a list of directories.
>
>
Gurus;
I have written a Perl CGI script to dynamically generate HTML and
Javascript code for a web page.
The web page consist of two parts.
The first part displays a list of directories.
The Javascript code that does this is dynamically generated by Perl. I
use Perl's opendir functi
TGIF All!
I hope my thread is relevant and not off-topic here. If it is, please
ignore it and I apologize for taking up your time.
I'm currently looking to implement a web function and an OS/X widget
utilizing JavaScript's XmlHttpRequest (aka asynchronous javascript, aka
AJAX). I
On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi All
I am updataing an application that includes a section which has a number
of strings created on a WEB page and escaped with Javascript escape before
being sent to a perl script. The original application had a custom
unescape fu
nt to that $dropdown_value ("Camps"
will show certain data, "Electives" will show different data, etc.).
my question is: how do i exit from the javascript function ("alert" will be
replaced with the appropriate functionality) back to perl to call "sub
build_data_di
Hi All
I am updataing an application that includes a section which has a number
of strings created on a WEB page and escaped with Javascript escape before
being sent to a perl script. The original application had a custom
unescape function however I notice that this unescape function no longer
function wR(_1, _2, _3, _4) {
> var _5 = document.getElementById("w" + _1);
> var _4 = _4 || window.event;
> sbHandler.prediction = _3;
> RatingManager.handleMouseover(_4, _5);
> }
>
> I'm trying to at least duplicate that, and add a few
I've gotta run, but maybe this is a place to
start.
-Original Message-
From: Kevin Old [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 23, 2006 11:35 AM
To: Timothy Johnson
Cc: Perl Beginners
Subject: Re: Javascript Regex to Perl Regex
Here's what I have.
# Clean js
$js =~ s/^\
t; $fcode =~ s/^\s*function\s+(?:\w+\(\)\s*)?\s*\{\s*\n//gi;
>
> but I don't have any code to test it on. What do you expect to happen,
> and what is really happening?
>
> -Original Message-
> From: Kevin Old [mailto:[EMAIL PROTECTED]
> Sent: Thursd
Sent: Thursday, March 23, 2006 11:17 AM
To: Perl Beginners
Subject: Javascript Regex to Perl Regex
Hello everyone,
I have a piece of javascript that formats a chunk of javascript into a
"pretty print" version of it. I'd like to have a command line version
of this, but can't s
Hello everyone,
I have a piece of javascript that formats a chunk of javascript into a
"pretty print" version of it. I'd like to have a command line version
of this, but can't seem to get the regexes to work in Perl. Just a
long shot, but can anyone help with the conversio
Hi Todd,
I'm completely new to perl. I'm have to work in biology using perl,
postgresql (as database) and clustalw or multalin (as the alignment
tool). I'm stating my problem briefly:
In the postgresql db the data is clustered using complete linkage
clustering. I've to connect to that db, fetch t
"Frank Geueke" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi. I need to grab regex matches from a string in
> perl. The string is an enum data type in Mysql. i.e.
> enum('Berks','Carbon','Lehigh','Montgomery')
> So basically I need a match on alphabetic chars
> between single
Hi. I need to grab regex matches from a string in
perl. The string is an enum data type in Mysql. i.e.
enum('Berks','Carbon','Lehigh','Montgomery')
So basically I need a match on alphabetic chars
between single quotes. No problem. But I'd like to
be able to grab each match and store it in an a
Hi,
Umesh T G <[EMAIL PROTECTED]> wrote:
> Below is my index.pl
Some comments:
> #!/usr/bin/perl
# consider using -T fpr taint mode
use strict;
use warnings;
# consider using the CGI module, too.
> use Env;
> print "Content-Type: text/html\n\n\n";
One \n too many.
> chdir("/path/to/dir");
Hello List,
Below is my index.pl
#!/usr/bin/perl
use Env;
print "Content-Type: text/html\n\n\n";
chdir("/path/to/dir");
@files=`ls -1`; ## load all the html files..
print "\n";
print "\n";
print <
function submit_form()
{
document.show_fi
Subject
javascript in Perl
People of the Perl,
There is this website on our internal LAN that serves as a DNS mgmt tool
and it is called qip developed by Lucent. I know it is written in Perl but
I believe it also uses java script. Below is the main page and is show
IE's status bar referencing a perl script within the seco
Anish Kumar K. wrote:
Hi
Hello,
Sorry to put in this PL forum
Then don't :) put it in a JavaScript forum
Say I have Javascript alert like this.
when I preview this I get the alert window it is working fine. But The caption of the
window is" Microsoft Internet Explorer".
Is t
Anish Kumar K. <[EMAIL PROTECTED]>
> Sorry to put in this PL forum
Just don't do it.
> Say I have Javascript alert like this.
>
>
> when I preview this I get the alert window it is working
> fine. But The caption of the window is" Microsoft Internet Explorer
Hi
Sorry to put in this PL forum
Say I have Javascript alert like this.
when I preview this I get the alert window it is working fine. But The caption
of the window is" Microsoft Internet Explorer".
Is there any way to change it...I mean some user defined strings.
Anish
Francesco del Vecchio wrote:
> Hi to all,
>
> I need to parse javascript into web pages to substitute all relative addresses to
> absolute ones.
Why? Are you in a masochistic frame of mind?
>
>
> I do this job in the HTML using LWP but I'm having bad times trying t
Hi to all,
I need to parse javascript into web pages to substitute all relative addresses to
absolute ones.
I do this job in the HTML using LWP but I'm having bad times trying to do it into
javascript
contained in the page.
Can anyone help me?
Frank
Hope I'm not missing the context of the question :-o
--
You can include Javascript as any HTML code
print "\n";
print " var SealoffSource = true\; /* Deshabilitar Click
Derecho. */\n";
print " function click(
Original Message
Subject: RE: javascript and perl dbi
Date: Wed, 26 Mar 2003 13:03:50 -0600
From: "Dan Muey" <[EMAIL PROTECTED]>
To: "Robbie Staufer" <[EMAIL PROTECTED]>
CC: <[EMAIL PROTECTED]>
javascript... ... HTML Just watch out for y
perl, if I use print $query->start_html('BMDB Query Form');
If that finction won't do what you need then don't use it.
See search.cpan.org and look for CGI.pm there's lots of info there.
You could use a 'here' doc.
print <
javascript...
> Hi,
>
> I have a web page where I've used Java Script to set up some
> relational
You mean wher if they choose something from menu 1 ,then menu 2 changes accordingly,
right?
However javascript script is client side so it doesn't matter to the scripts as long
as
ction. There should be no need to
do so. Both Perl and PHP are full-scale server-side programming languages, and either
language alone should have adequate facilities to handle DB processing without the
complications of inter-process communications.. If you are using PHP, you probably
sh
Hi,
I have a web page where I've used Java Script to set up some relational
menus, within a php script to send form data to a perl DBI script for
querying a database. The user selects an option from the first menu,
and an option from the second menu, and these values need to be passed
either
lectBox("flat-file-containing-options",
> "name-of-select-box", "default value",
> "arcane-null-value","role-of-user-accessing-page"
> I need a label to pop up with a correlative value (also stored in a
> flat-file) whenever a valu
"Library" is not a standard Perl like module name, do you have a Library.pm, etc. that
is being loaded? aka something written in house by whomever... as an aside you
shouldn't use & unless you need them.
> I need a label to pop up with a correlative value (also stored in a
&
f-select-box", "default value",
"arcane-null-value","role-of-user-accessing-page"
I need a label to pop up with a correlative value (also stored in a
flat-file) whenever a value in the select box is highlighted.
I've tried Javascript with no luck.
Is there a Per
Dan Muey wrote:
>> Dan et all
>>
>>> I also am applying for genius, looks good on resume!
>>> Actually it's wizz400 and wizz400 lowercase 'W'
>>> I logged in fine but am not quite sure what the problem is. Could
>>> you elaborate what your'e trying to figure out? May be I missed an
>>> earlier post
> Dan et all
>
> >I also am applying for genius, looks good on resume!
> >Actually it's wizz400 and wizz400 lowercase 'W'
> >I logged in fine but am not quite sure what the problem is.
> Could you
> >elaborate what your'e trying to figure out? May be I missed
> an earlier
> >post about it
>
>
Dan et all
>I also am applying for genius, looks good on resume!
>Actually it's wizz400 and wizz400 lowercase 'W'
>I logged in fine but am not quite sure what the problem is.
>Could you elaborate what your'e trying to figure out?
>May be I missed an earlier post about it
The problem has been res
> > All
> >
> > I have to admit defeat on this one and will gladly
> acknowledge anyone
> > who solves it as a genius! The Perl script below is part of an
> > application which can be tested at
> >
> > http://www.demo.wizz400.com/scripts/cgi-bin/wizz400/wizz400sop.pl
> >
> > You can login wi
Hi -
> -Original Message-
> From: Maurice O'Prey [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 15, 2003 11:52 PM
> To: [EMAIL PROTECTED]
> Subject: JavaScript/Perl Genius Sought
>
>
> All
>
> I have to admit defeat on this one and will gladly
have several tagswith onkeydown attributes of move_cursor($i).
move_cursor() calls shortcut(), so pressing a key in an input field will
execute both the and onkeydown actions. shortcut() will
be called twice, and the add_to_order button will be clicked twice by
JavaScript.
My apologies to others f
blem is the
suggestion that you should use 'here documents' as the basis for
outputting the chunks of JavaScript.
print <
$browser_title_030
END
The string 'END' can be any text you like, but must be flush with the
left margin.
At least this will get rid of all those
= "$_[9]"; # finish discription
$ORCOL = "$_[10]"; # colour
$ORFNS = "$_[11]"; # finish
# set browser title
print "";
print "$browser_title_030";
# javascript routines
print "";
# javascript arrays
print "v
Are you sure the lines in your file don't contain double-quotes? These would
turn the JavaScript parameter into nonsense.
R
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 5:03 PM
Subject: Content-type: applica
okay here is the thing, i have found this really neat piece of code
when I add
http://www.mydomain.com/cgi-bin/test.cgi"</a>;>
and test.cgi has the following code
#!/usr/bin/perl
print "Content-type: application/x-javascript\n";
print "Pragma: no-cache\n
this is not a perl question. better posted to a HTML/javascript list.
nonetheless the following works ...
A
B
function updateSubCategory(sCategory)
{
var aSubCategories = new Array('A1','A2','B1','B2'
I think my problem should be rather solved in JavaScript, but where can I find help? I
tried many different keywords on goggle to find some info on accomplishing the
following (but without success):
I have two pull-down menus. How can I make the values (choices) in the second
pull-down menu
nfirm("Are you sure to delete this IP-Block ?");
if (decision == true){ document.location = noc }
}
function SubmitEdi() {
document.edi.submit();
}
# -
>
> I want to write a script that will:
> 1) Go into a website, answer
I want to write a script that will:
1) Go into a website, answer to a login form (JavaScript)
2) Answer to another Form and submit it (JavaScript)
I'm kind of novice in perl.
10x in advance.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
From: "Luis Guillot" <[EMAIL PROTECTED]>
> Where can I learn HEREDOC syntax? Do you Know any URL?
Execute
perldoc perldata
and search for <<
Jenda
=== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
There is a reason for living. There must be. I've se
Where can I learn HEREDOC syntax? Do you Know any URL?
Thank you.
- Original Message -
From: "Jenda Krynicky" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 11:40 AM
Subject: Re: How I can execute Javascript into Perl?
> Fro
From: "Luis Guillot" <[EMAIL PROTECTED]>
> I don't know how I can execute an event of Javascript into a link in a
> program in Perl. This event of JavaScript have executed a function
> that return a HTML page. Anybody know how I can it?
>
> Is it po
I don't know how I can execute an event of Javascript into a link in a program in
Perl.
This event of JavaScript have executed a function that return a HTML page.
Anybody know how I can it?
Is it possible do it this?:
$datos=$datos."";
What is bad in this code?
Than
This really isn't a perl question. Write out your javascript in a
simple HTML file and see if that works. If it does then port write the
perl code to output that HTML.
This isn't the forum for this but... When you call
nwin.document.write() you should be passing HTML, not ju
Hi,
I am using a perl program to invoke a small javascript to first open a new
window,
and then another javascript to write some text or form to the new window.
I can't get it to work in Netscape 4.72
I will open a window but won't write to it.
It works fine in IE 5.0
The problem
On Mon, Jan 28, 2002 at 08:21:44PM +0100, anthony wrote:
:
:does anyone know if Javascript can interact with dbi?
:not mysql
I think I can manage to tun this into a Perl related question. :-)
There is a module called WDDX, actually, it's a protocol. You can use
it to turn Perl
Hi,
does anyone know if Javascript can interact with dbi?
not mysql
Anthony
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
t; It is possible to load a gif once to the person visiting
> my web sites computer and call it again without loading
> it repeatly?
Hi,
You really need to do this using Javascript, since Perl can
only (generally) deal with the server side of things. Yes,
it can be done - however you are rea
Here Here !!
> -Original Message-
> From: Gary Hawkins [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 1:43 AM
> To: [EMAIL PROTECTED]
> Subject: RE: off topic - javascript question
>
>
> When we're done with the terrorists I suggest we go a
1 8:53 AM
> To: [EMAIL PROTECTED]
> Subject: off topic - javascript question
>
>
> I want to have a window loaded when someone leaves my website.
> does anyone know what is wrong with the following code?
> Thanks!
>
>
> <BODY onUnload=open("exit.htm",
I believe the format of the javascript open method should be:
Also, you don't need to put the tags around the <body> tag
Dave Merritt
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [<A HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]
t=400")>
>
Try comp.lang.javascript instead. This is the wrong forum for Javascript
questions, even if you declare "off topic" in the subject header.
Cheers,
mel
--
mel matsuoka (vox)1.808.531.5474
Head Geek (fax)1.80
I want to have a window loaded when someone leaves my website.
does anyone know what is wrong with the following code?
Thanks!
ink after activated once get
> disabled..
> I am using HTML/PERL
> Can i use onClick event in hyperlink..and onClick make the
> hyperlink disabled if there is no other way out..and how to do
> thisi dont know javascript
>
> waiting for reply,
>
out..and how to do thisi dont
> know javascript
I'm not seeing how this is a Perl question. Changing the state of a
hyperlink in the browser requires client-side code, which usually involves
Javascript. Now, if the link goes to some CGI script you have on your
server, which t
hyperlink..and onClick make the hyperlink disabled if
there is no other way out..and how to do thisi dont know javascript
waiting for reply,
Thanx in advance,
Rahul
> LWP::UserAgent ...
> javascripts on that webpage which I need to execute
You are almost certainly not going to find an otherwise
pure perl user agent that has a full dom understanding
of the web pages it reads, and can invoke a dom-aware
javascript interpreter.
If you *do* find
you could try downloading the javascript code from the server. If the code
is in external files and added into the page like so
You should be able to download the code by grabing the matching URL. E.g
http://servername/code/script.js
Running it within Perl is another matter entirely and I
Hi folks,
Well, I am actually implementing an LWP::UserAgent to walk through a website
and do the things I want it to and get me the desired results(dont
worry, this is a noble cause :-) ) and my problem is that there are some
javascripts on that webpage which I need to execute thru my per
;[EMAIL PROTECTED]>
To: "Prachi Shroff" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 10:29 PM
Subject: Re: javascript
>
> --- Prachi Shroff <[EMAIL PROTECTED]> wrote:
>
> > Can anyone please give any clue of how to call and execut
--- Prachi Shroff <[EMAIL PROTECTED]> wrote:
> Can anyone please give any clue of how to call and execute
> javascripts from perl?
Assuming you're writing web content, just print the script into the
content as if you were wrting a normal HTML page. It'll run when the
browser reads it just the s
HI!
Can anyone please give any clue of how to call and execute javascripts from
perl?
thanks,
Prachi
_
Get your FREE download of MSN Explorer at http://explorer.msn.com
87 matches
Mail list logo