Autor Beitrag
ScorpionKing
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1150

Win XP

BeitragVerfasst: Mi 25.01.06 15:47 
Hi Leute,
ich habe hier ein HTML-Dokument bei dem ich folgende Funktion einbauen will: Wenn ich auf einen Button klicke, soll sich eine zweite Seite wie ein Frame über die momentane Seite legen (kein Popup), in der ich dann ein Formular ausfüllen kann. Wie kann ich das realisieren?

MfG, ScorpionKing!

_________________
Aus dem Urlaub zurück!
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mi 25.01.06 19:12 
Hallo,
:gruebel: wenn sich das über die ganze Seite legen soll, aber kein neues Fenster(PopUp),
dann ruf doch eine andere Seite auf und nach dem ausfüllen des Formulars gehts dann wieder zurück.

Wenn ich ehrlich bin, weis ich nicht wie das genau aussehen soll.
Hast Du mal eine Webadresse oder ein Screenshoot,
damit man sich das besser vorstellen kann?

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
mmmichael
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 27.01.06 14:32 
mach doch ein unsichtbares <div> über die seite in dem dein formular ist. beim Button onClick machst du das div dann visible und wenn du fertig bist wird es wieder ausgeblendet.
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Fr 27.01.06 15:10 
user profile iconmmmichael hat folgendes geschrieben:
mach doch ein unsichtbares <div> über die seite in dem dein formular ist. beim Button onClick machst du das div dann visible und wenn du fertig bist wird es wieder ausgeblendet.

Das wird nicht funktionieren, weil er das Formular dann nicht absenden kann... Höchstens per Suche bei Google AJAX, aber bin ich mir grad nicht so sicher.

_________________
JSXGraph
kabizolis
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 86



BeitragVerfasst: Fr 27.01.06 16:48 
ich hoffe meine lösung hält der browserwelt stand....
hatte leider keine zeit zum testen....

absolut in CSS und HTML gescriptet - kein Javascript!

gruss martin

ausblenden volle Höhe Quelltext
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:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" >

<head>
 <title>
  Menübeispiel - Martin Jakob © 2006
 </title>

<style type="text/css">
a.inner
 {display: block;
 width: 500px;
 height: 500px;
 background: #c0c0c0;
 border: 1px solid #000000;}

/* Muss doppelt sein, weil IE dumm ist :-( */
a.inner
 {display: block;
 width: 500px;
 height: 500px;
 background: #c0c0c0;
 border: 1px solid #000000;}

a.outer, 
a.outer:visited 
 {color: #000000; 
 width: 120px; 
 height: 15px; 
 display: block; 
 background: #c0c0c0; 
 text-align: center; 
 float: left; 
 text-decoration: none; 
 font-family: tahoma, vardana, arial, sans-serif; 
 font-size: 12px; 
 overflow: hidden;}
 
a.outer:hover 
 {overflow: visible;}

a.outer:hover table 
 {width: 120px;  
 border-collapse: collapse;}
</style>
</head>

<body bgcolor="#ffffff">
<!-- Absolute position Anfang -->
 <div class="menu">
  <div style="position: absolute; top: 5px; left: 5px;">
   <a class="outer" href="#">
    Text ausfüllen
    <table>
     <tr>
      <td>
     <a class="inner">
      <form>
     <center>
      <p>
       <br>
       <textarea name="Textfeld" cols="50" rows="20"></textarea>
      </p>
      <p> 
       <input name="Senden" type="submit">
       <input name="Loeschen" type="reset">
          </p>
         </center>
        </form>
     </a>
      </td>
     </tr>
    </table>
   </a>
  </div> 
 </div>
 <!-- Absolute Position Ende -->
      <p>
    <br>
     BLablablablablablbalblablbalbablablbalbalblablbabllablbalblabl abalb albal bal lablab ablab lbalbalb ba babla<br>
       BLablablablablablbalblablbalbablablbalbalblablbabllablbalblabl abalb albal bal lablab ablab lbalbalb ba babla<br>
     BLablablablablablbalblablbalbablablbalbalblablbabllablbalblabl abalb albal bal lablab ablab lbalbalb ba babla<br>
     BLablablablablablbalblablbalbablablbalbalblablbabllablbalblabl abalb albal bal lablab ablab lbalbalb ba babla<br>    
       BLablablablablablbalblablbalbablablbalbalblablbabllablbalblabl abalb albal bal lablab ablab lbalbalb ba babla<br>
       BLablablablablablbalblablbalbablablbalbalblablbabllablbalblabl abalb albal bal lablab ablab lbalbalb ba babla<br>
    </p>
 </div>
 <p>
  <br>
  Leider muss man, um ein brauchbares ergebnis zu erziehlen, die position absolut setzen!
 </p>
</body>

</html>