Autor |
Beitrag |
WeBsPaCe
Beiträge: 2322
Erhaltene Danke: 1
FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
|
Verfasst: Fr 25.05.07 20:52
Tach! ;-)
Könnte mir jemand von euch behilflich sein und mir erklären, wie man per Javascript die frameBorder-Eigenschaft eines Inlineframes ändert?
Hab meiner Meinung nach alles Sinnvolle ausprobiert. Mach seit gestern nichts anderes. :-(
MfG, WeBBy
PS: Seh grad nur ich keine Smilies im obrigen Beitrag?!
_________________ Steht der Bauer im Gemüse, hat er später grüne Füße.
|
|
Marco D.
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Fr 25.05.07 22:02
Zeig mal, was du bis jetzt schon probiert hast.
Naja normalerweise läuft das doch in JS so, dass du document.irgendwas.frameBorder = '40' schreibst.
Bleibt die Frage, wie man genau den Inline-Frame anspricht. Zeig mal den entsprechenden HTML-Code.
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
WeBsPaCe
Beiträge: 2322
Erhaltene Danke: 1
FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
|
Verfasst: Sa 26.05.07 13:21
Tach.
Marco D. hat folgendes geschrieben: | Zeig mal, was du bis jetzt schon probiert hast. |
Zu viel.
Marco D. hat folgendes geschrieben: | Naja normalerweise läuft das doch in JS so, dass du document.irgendwas.frameBorder = '40' schreibst. |
Nun ja. Normalerweise. Zudem darf frameBorder nur die Werte 1 oder 0 bzw. yes oder no besitzen. 40 macht keinen Sinn.
Marco D. hat folgendes geschrieben: | Bleibt die Frage, wie man genau den Inline-Frame anspricht. Zeig mal den entsprechenden HTML-Code. |
Ist doch völlig wurscht, Beispiel:
Quelltext 1: 2: 3: 4: 5: 6: 7: 8: 9:
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <iframe src="http://www.google.de"></iframe> </body> </html> |
Danke für deine Antwort.
MfG,
WeBBy
_________________ Steht der Bauer im Gemüse, hat er später grüne Füße.
|
|
GTA-Place
Beiträge: 5248
Erhaltene Danke: 2
WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
|
Verfasst: Sa 26.05.07 13:28
getElementById benutzt?
_________________ "Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
|
|
Marco D.
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Sa 26.05.07 13:29
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:
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <iframe id='iframe' src="http://www.google.de"></iframe> </body> </html>
//JS: //set ist boolean function SetFrameBorder(set) { var frame = document.getElementById('iframe'); if (set) { frame.frameBorder = 'yes'; } else { frame.frameBorder = 'no'; } }
//Vlt. geht's es so auch function SetFrameBorder(set) { document.getElementById('iframe').frameBorder = (int) set; } |
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Zuletzt bearbeitet von Marco D. am Sa 26.05.07 13:31, insgesamt 1-mal bearbeitet
|
|
Christian S.
Beiträge: 20451
Erhaltene Danke: 2264
Win 10
C# (VS 2019)
|
Verfasst: Sa 26.05.07 13:31
_________________ Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
|
|
WeBsPaCe
Beiträge: 2322
Erhaltene Danke: 1
FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
|
Verfasst: So 27.05.07 20:31
Tach.
Ich vergaß wohl zu sagen, dass ich eine Lösung für FF sowohl IE suche. Die beiden Lösungen (bzw. der eine Lösungsansatz; sind ja beide Lösungen recht ähnlich) hatte ich auch schon und führen bei mir im IE nicht zum gewünschten Erfolge.
Bei euch etwa doch?!
MfG,
WeBBy
//EDIT: Jetzt erstma ne Woche Urlaub. Also postet schön, bis ich wieder da bin.
_________________ Steht der Bauer im Gemüse, hat er später grüne Füße.
|
|
WeBsPaCe
Beiträge: 2322
Erhaltene Danke: 1
FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
|
Verfasst: Mo 04.06.07 14:42
Mhm, bin wieder da.
Hat keiner geantwortet, weil's bei niemandem geht? Ihr könnt mir ruhig auch schreiben, dass es bei euch so wie oben beschrieben auch nicht geht, dann komm ich mir nicht so blöd vor...
Auch das will nicht:
Quelltext 1: 2: 3:
| var iehack = document.createAttribute("frameborder"); iehack.nodeValue = "0"; document.getElementsByTagName("iframe")[0].setAttributeNode(iehack); |
MfG,
WeBBy
_________________ Steht der Bauer im Gemüse, hat er später grüne Füße.
|
|
blackbirdXXX
Beiträge: 1077
Erhaltene Danke: 1
Ubuntu Dapper
|
Verfasst: So 17.06.07 11:14
Probier node.style.borderWidth = '0px'; oder was auch immer du willst.
_________________ Klein, schwarz und ärgert Techniker? Jumper!
|
|
WeBsPaCe
Beiträge: 2322
Erhaltene Danke: 1
FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
|
Verfasst: Mi 20.06.07 15:23
Tach.
blackbirdXXX hat folgendes geschrieben: | Probier node.style.borderWidth = '0px'; oder was auch immer du willst. |
Was ist "node" bei dir? firstChild?!
MfG,
WeBBy
_________________ Steht der Bauer im Gemüse, hat er später grüne Füße.
|
|
Heiko
Beiträge: 3169
Erhaltene Danke: 11
|
Verfasst: So 24.06.07 16:44
blackbird meint wahrscheinlich den Node "iframe":
Quelltext 1:
| document.getElementById("myIFrame").style.borderWidth |
|
|
WeBsPaCe
Beiträge: 2322
Erhaltene Danke: 1
FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
|
Verfasst: Di 26.06.07 20:05
_________________ Steht der Bauer im Gemüse, hat er später grüne Füße.
|
|