develooper Front page | perl.beginners | Postings from April 2011

Re: unable to print loader image properly until the backend process finishes.

Thread Previous | Thread Next
From:
Agnello George
Date:
April 18, 2011 22:03
Subject:
Re: unable to print loader image properly until the backend process finishes.
Message ID:
BANLkTintOeH1exk0TgSMeL9yqGuXdGiJ5Q@mail.gmail.com
On Mon, Apr 18, 2011 at 6:17 PM, Shlomi Fish <shlomif@iglu.org.il> wrote:

> Hi Agnello,
>
> some comments on your code.
>
> On Monday 18 Apr 2011 15:18:22 Agnello George wrote:
> > Hi
> >
> > I am trying my hand in CGI , i have script that  runs svn list on-submit
> > which obviously takes 30 to 40 secs for the page to load , i plan to use
> a
> > ajax loader to be printed untill those 30 to 40 seconds.  But even after
> > the page has finished loading i can still see the image. I am not good in
> > java script but can this be done using perl  only .. here is a snip of my
> > code ..
>
> Please include your entire code - not a snippet of it.
>
> >
> >
> > my @all_svn;
> >
> > unless (@all_svn) {
>
> This will always be executed since @all_svn is empty.
>
> > print  '<p>  <img alt="" src="
> http://192.168.1.25/template/ajax-loader.gif"
> > /></p>';
> > }
> >  @all_svn = qx(svn list -R  $virticals{$sitei}{svnurl})  ;
>
> 1. You've misspelled "verticals".
>
> 2. What is "sitei"?
>
> 3. Be careful from interpolating strings into qx/.../ :
>
> http://community.livejournal.com/shlomif_tech/35301.html
>
> >
> > s/\s+$// for @all_svn;
>
> Subversion has Application Programmers Interfaces (APIs) for that, so you
> don't need to parse its output non-reliably.
>



 what do  you mean by api for subversion , do you mean perl svn module that
i can find in CPAN.

-- 
Regards
Agnello D'souza


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About