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 y
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 you think I sho
On 3/23/06, Kevin Old <[EMAIL PROTECTED]> wrote:
> Here's what I have.
>
> # Open js file
> open JSFILE, "$ARGV[0]" or die "can't open file: $ARGV[0]";
> my $js = do { local( $/ ); };
> close JSFILE;
>
> # Clean js
> $js =~ s/^\s*function\s+(?:\w+\(\)\s*)?\s*\{\s*\n//gi;
> $js =~ s/\s*}\s*$//g
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/^\
Here's what I have.
# Open js file
open JSFILE, "$ARGV[0]" or die "can't open file: $ARGV[0]";
my $js = do { local( $/ ); };
close JSFILE;
# Clean js
$js =~ s/^\s*function\s+(?:\w+\(\)\s*)?\s*\{\s*\n//gi;
$js =~ s/\s*}\s*$//gi;
# Write new js file
open JSOUTFILE, ">out_$ARGV[0]" or die "can
At first glance it looks like this should work:
$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: Thu
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");
Below is the gui query
|--+--|
| | |
|Object List by Administrator | |
|--+--|
| |
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 there any way to cha
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".
>
> Is there any way to change
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 to do it into
> javascript
>
e:
http://www.perldoc.com/perl5.8.0/pod/perlfaq4.html#Why-don't-my-%3c%3cHERE-d
ocuments-work-
-rm-
- Original Message -
From: Dan Muey <[EMAIL PROTECTED]>
To: Robbie Staufer <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 1:03 PM
Sub
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
Please post to the list so everyone can play.
>Dear Dan,
>
>Like you, I think that perl can do everything php can do, and more. I'm in the
>learning stages, so don't know alot about >either, but I've used both a few times.
>So taking your advice, I have a perl script that will eventually do ev
> 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 the
Data is submitted proper
Robbie Staufer wrote:
> 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 va
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 acknowledge anyone who
> solves it a
Maurice O'Prey wrote:
> All
>
> I have to admit defeat on this one and will gladly acknowledge anyone
> who solves it as a genius!
Maurice,
OK, here's what I think is happening. You have a tag (curiously
inside your ) with an onkeydown attibute of shortcut(). You also
have several tagswith onke
Maurice O'Prey wrote:
> All
>
> I have to admit defeat on this one and will gladly acknowledge anyone
> who solves it as a genius!
Maurice
This isn't really a beginners Perl question, so don't be surprised if
you get an objector or two. However, unrelated to your problem is the
suggestion that yo
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');
var oForm = document.forms[0];
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 data structures
> 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 such a solutio
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 have
;[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
29 matches
Mail list logo