Internet Explorer Color Picker

  • Hallo Leute,

    Ich stehe gerade vor einem Problem.
    Ich möchte als Administrator auf meiner Seite eine neue Userseite anlegen
    Dabei kann ich z.b. die Hintergrundfarbe ändern (und viele andere..).
    Der Quellcode des Buttons, welcher zum Color Picker führt ist dieser hier :

    PHP
    legend> … </legend><table class="panel"><tbody><tr><td class="form_lbl" style="width:160px;"> … </td><td class="form_text"><input class="Multiple" type="hidden" value="ffffff" name="bg_color" style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);"></input><span class="jPicker"><span class="Icon"><span class="Color" style="background-color: rgb(255, 255, 255);"> … </span><span class="Alpha" style="background-image: url("/images/bar-opacity.png"); visibility: hidden;"> … </span><span class="Image" title="Click To Open Color Picker" style="background-image: url("/images/picker.gif");"> … </span><span class="Container"> … </span>

    Wenn ich den value ändere, also so:

    Code
    $oColorBG = "932929"
    			$oBGC = _IEGetObjByName($oForm1, "bg_color")
    			_IEFormElementSetValue($oBGC, $oColorBG)

    und dann mit Getvalue auslese, bekomme ich den korrekten Wert zurück. Jedoch wird die korrekte Farbe im Color Picker nicht ausgewählt!
    Habe schon alles probiert und bin langsam am verzweifeln :(

    Hat einer von euch ne Idee wie das gehen könnte?
    Danke!!!

  • Ich weiß ja nicht, aber ist

    [autoit]

    $oColorBG = "932929"

    [/autoit]

    überhaupt ein gültiger RGB-Wert? :rolleyes:

    MfG

    There's a joke that C has the speed and efficieny of assembly language combined with readability of....assembly language. In other words, it's just a glorified assembly language. - Teh Interwebz

    C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, you blow off your whole leg. - Bjarne Stroustrup
    Genie zu sein, bedeutet für mich, alles zu tun, was ich will. - Klaus Kinski

  • Jop, ist Braun-Rot

    Es scheint das die Fenster, welche method = post sind, probleme machen.
    Hab nen 2. Beispiel noch.

    Ich drücke auf ein "Add Zeichen" und daraufhin öffnet sich ein Fenster, mit verschiedenen Input-Buttons usw..

    PHP
    <div id="addRowWin_body" class="x-window-body" style="font-family: verdana; color: rgb(112, 144, 183); background-color: rgb(255, 255, 255); font-size: 15px; overflow: auto; width: 561px; height: 368px;"><div align="center" style="margin:10px;"><form id="frmInsRow" onsubmit="return ColdFusion.Ajax.checkForm(this, _CF_checkfrmInsRow,'addRowWin_body')" method="post" action="/index.cfm?fuseaction=client.home" name="frmInsRow"><table class="panel"><tbody><tr><td><fieldset><legend> … </legend><table class="form_table"><tbody><tr><td class="mandatory form_lbl"> … </td><td class="form_text"><input class="Text" type="text" value="" name="name"></input></td></tr><tr><td class="mandatory form_lbl"> … </td><td class="form_text" valign="middle"><select id="site_id" class="Text" name="site_id"> … </select></td></tr>

    Das ist der Code davon. Im Endeffekt das gleiche Spiel.
    Ich dachte ich könnte die Input Felder einfach über

    Code
    _IEFormElementGetObjByName($oForm, "name")


    ansprechen (hier z.b. das Inputfeld:

    PHP
    <tr><td class="mandatory form_lbl"> … </td><td 
    class="form_text"><input class="Text" type="text" value="" 
    name="name">

    Aber Pustekuchen, funktioniert nicht :(

    Hat Jemand ne Ahnung wieso?
    Danke sehr!!