Schrift
Wiki:Tipp zum Debugging: use Data::Dumper; local $Data::Dumper::Useqq = 1; print Dumper \@var;
[thread]7849[/thread]

Zeile beginnt tiefer nur bei Opera, no css-Probl (Seite 3)



<< |< 1 2 3 >| >> 26 Einträge, 3 Seiten
gregor
 2006-04-04 20:21
#64333 #64333
User since
2006-02-03
24 Artikel
BenutzerIn
[default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/perl -w

use strict;
use warnings;
use CGI;
use HTML::Template;

my $operation = CGI::param('operation') || '';
my $eintragen = 'eintragen';

if ($operation  eq $eintragen ) {
   eintragen();
}

my $rhDict = {};

sub aktion1() {
$rhDict->{reaktion} = "Ich habe Aktion 1 ausgefuehrt";
}#aktion1

sub aktion2() {
$rhDict->{reaktion} = "Ich habe Aktion 2 ausgefuehrt";
}#aktion2

my $oCgi = new CGI;
foreach ($oCgi->param) { $rhDict->{$_} = $oCgi->param($_); }
while (my ($sKey, $sValue) = each (%ENV)) {$rhDict->{$sKey} = $sValue; }
$rhDict->{aktion} = '' unless($rhDict->{aktion});
if ( $rhDict->{aktion} eq 'aktion1' ) { aktion1(); }
elsif ( $rhDict->{aktion} eq 'aktion2' ) { aktion2(); }
my @aLines = <DATA>;
my $oTpl = HTML::Template->new( arrayref => \@aLines, die_on_bad_params => 0 );
while ( my($sKey, $vValue) = each(%{$rhDict}) ) { $oTpl->param($sKey => $vValue); }
print "Content-Type:text/html\n\n" . $oTpl->output;
exit(0);

__END__
<html>
<script type="text/javascript" language="JavaScript">
 function go(sAktion) {
  window.document.form.aktion.value=sAktion;
  window.document.form.submit();
 }//go
</script>
<body>
<!--  <form name="form" action="<tmpl_var script_name>" method="post">
  <b>Letze Aktion: </b><tmpl_var reaktion></b><br />
  <input name="aktion" type="hidden" value="" />
  <input value="Sende 1" type="button" onclick="go('aktion1');" /><br />
  <input value="Sende 2" type="button" onclick="go('aktion2');" /><br />    -->
  <a href="<tmpl_var script_name>?>los</a>
 </form>
</body>
</html>


dieses kommt später ;)\n\n

<!--EDIT|gregor|1144167918-->
gregor
 2006-04-04 20:22
#64334 #64334
User since
2006-02-03
24 Artikel
BenutzerIn
[default_avatar]
@opi p.s. nachdem ich begriffen habe was css ist :laugh: kannst du mir auch erklären, wie ich am besten in der nase bohre :laugh:\n\n

<!--EDIT|gregor|1144168707-->
bloonix
 2006-04-05 09:14
#64335 #64335
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
[quote=gregor,04.04.2006, 18:22]@opi p.s. nachdem ich begriffen habe was css ist :laugh: kannst du mir auch erklären, wie ich am besten in der nase bohre :laugh:[/quote]
Hallo gregor, sicherlich nicht. Ich wünsche dir viel Erfolg bei der Lösungsfindung deines Problems.
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.
gregor
 2006-04-05 15:06
#64336 #64336
User since
2006-02-03
24 Artikel
BenutzerIn
[default_avatar]
man kanns halt nicht allen recht machen. schon gar nicht schwimmen alle auf der gleichen welle, wäre ja auch langweilig. trotz einer aneinandervorbeiredung danke ich dir für deine hilfsbereitschaft. :cool:
Dubu
 2006-04-06 23:14
#64337 #64337
User since
2003-08-04
2145 Artikel
ModeratorIn + EditorIn

user image
[quote=gregor,04.04.2006, 14:18]wo in herrgottsnamen benutze ich denn kein css?[/quote]

[quote=gregor,04.04.2006, 14:48]wo benutze ich kein css? [/quote]

[quote=gregor,04.04.2006, 15:40]und jetzt nochmal meine frage an dich: wo benutze ich bitte css? außer im header? ;)[/quote]
(Hervorhebung von mir)

Du scheinst dir nicht ganz klar darüber zu sein, was du andere Leute fragst.
bloonix
 2006-04-07 10:32
#64338 #64338
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
[quote=pq,04.04.2006, 17:30]
Code: (dl )
1
2
print "<table border=\"1\">";
print "<td align=\"left\" valign=\"top\">&nbsp;</td>";

oha, schöner ist das aber nicht. davon kriegt man augenkrebs.[/quote]
da pflichet ich dir 100% bei! diese html ausgabe durch print's
finde ich persönlich sowie einfach grausam, denn wofür gibt
es denn cgi und templates...\n\n

<!--EDIT|opi|1144391668-->
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.
<< |< 1 2 3 >| >> 26 Einträge, 3 Seiten



View all threads created 2006-04-01 17:09.