[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] [button] tag died when server was moved to https


At 09:49 PM 3/31/2003 +0200, you wrote:
> At 05:11 PM 3/31/2003 +0200, you wrote:
> > > > Same here but with 4.8.7 :(
> > > > Did someone find any solution ?
> > >
> > > Did you check if the HTML-source of that page is correct? If it is,
then
> >the
> > > problem is probably in your browser...
> > >
> >
> >In source page i can see got this code :
> >[button
> >                                  name="mv_click"
> >                                  src="__THEME__/placeorder.gif"
> >                                  text="Valider ma commande"
> >                                  hidetext=1
> >                                  form=checkout
> >                                 ]
> >                                  mv_todo=submit
> >                                  mv_successpage=mypage
> >                            [/button]</td>
> >                            <td>
> >                                         [button
> >                                                 name="mv_click"
> >
> >src="__THEME_IMG_DIR__recalculate_button.gif"
> >                                                 text="Recalculer"
> >                                                 hidetext=1
> >                                                 form=checkout
> >                                         ]
> >                                                 mv_todo=refresh
> >                                         [/button]
> >                         </td>
> >
> >And once executed i have this :
> ><INPUT TYPE="submit" NAME="mv_click" VALUE="Valider ma commande">
> ><INPUT TYPE="submit" NAME="mv_click" VALUE="Recalculer">
> >
> >But if i set SECURE_ENABLE to no in the variables, then I have my images
and
> >not submit buttons ...
>
> Maybe it can't reach your __DOCROOT__ location when you switch to SSL?

Maybe, but all other images are ok ...
Only these two buttons are not.

I'll have loo again to variables to see if i can see something ...

For some (probably good) reason, the [button] tag has its own "find the image" algorithm, which differs from the <img src=""> method. That explains why only [button] images don't display when the rest do. Here is that algorithm.


        if($src) {
                my $dr = $::Variable->{DOCROOT};
                my $id = $Tag->image( { dir_only => 1 } );
                $id =~ s:/+$::;
                $id =~ s:/~[^/]+::;
                if(     $src =~ m{^https?:}i ) {
                                $image = $src;
                }
elsif( $dr and $id and $src =~ m{^[^/]} and -f "$dr$id/$src" ) {
                                $image = $src;
                }
                elsif( $dr and $src =~ m{^/} and -f "$dr/$src" ) {
                                $image = "$id/$src";
                }
        }

HTH,
-Dan

--
/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
| Dan Browning, Kavod Technologies,      <suppressed> |
| 6700 NE 162nd Ave, Suite 210, Vancouver, WA (360) 843-4074 x217 |
\~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
The light at the end of the tunnel is the headlight of an approaching
train.

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.