Sign in to follow this  
Followers 0
pezo89

_ie help requested

9 posts in this topic

#1 ·  Posted (edited)

Hi guys i where just wondering how i can sort this little issue out, im trying to hit the next button (neste - norwegian)

the affected code around that area is listed below, and all the way down is the code i thought would work,

but how can i seperate them? so i don't push the first b_next in order, but the second one.

in advance, thanks for any response

<td align="right" valign="middle" width="20%">
                                  <input type="button" class="navbutton" name="b_next" value="Tilbake" onclick="gopage('1')" />
                                  <input type="button" class="navbutton" name="b_next" value="Neste" onclick="gopage('3')" />

$oSubmit = _IEGetObjByName ($oIE, "b_next")
_IEAction ($oSubmit, "click")
_IELoadWait ($oIE)

Also how can i fix this issue, i have 4 dropdowns menues that has the same formname,

been reading about but i cant understand how i can have them fill it in, in the correct order (top->down)

$oSelect11= _IEFormElementGetObjByName ($oForm, "field_2_30_start_month");Fra mnd
$oSelect12= _IEFormElementGetObjByName ($oForm, "field_2_30_start_year ");Fra år
$oSelect13= _IEFormElementGetObjByName ($oForm, "field_2_30_end_year");Til mnd
$oSelect14= _IEFormElementGetObjByName ($oForm, "field_2_30_end_month");Til år


_IEFormElementOptionselect ($oSelect11, "12", 1, "byValue");fra
_IEFormElementOptionselect ($oSelect12, "1994", 1, "byValue");fra
_IEFormElementOptionselect ($oSelect13, "12", 1, "byValue");til
_IEFormElementOptionselect ($oSelect14, "2004", 1, "byValue");Til
Edited by pezo89

Share this post


Link to post
Share on other sites



anyone able to help? :graduated:

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Try this

$oForm = _IEFormGetObjByName($oIE, "FORM_NAME")
$oFormElements = _IEFormElementGetCollection($oForm)

For $oElement In $oFormElements
    If StringLower($oElement.name) == StringLower("Neste") Then
        $oSubmit = $oElement
    EndIf
Next



$oSubmit.FireEvent("onclick")
_IELoadWait($oIE)

m not 100% sure what you mean by the second issue.

Can you provide more info and possibly website?

Steve

Edited by Steveiwonder

They call me MrRegExpMan

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Cannot delete this post

Edited by Steveiwonder

They call me MrRegExpMan

Share this post


Link to post
Share on other sites

second thing is a number of dropdownmenus.

but it has the same names ie: field_2_30_start_month x2 ect.

as stated above

$oSelect11= _IEFormElementGetObjByName ($oForm, "field_2_30_start_month");Fra mnd
$oSelect12= _IEFormElementGetObjByName ($oForm, "field_2_30_start_year ");Fra år
$oSelect13= _IEFormElementGetObjByName ($oForm, "field_2_30_end_year");Til mnd
$oSelect14= _IEFormElementGetObjByName ($oForm, "field_2_30_end_month");Til år


_IEFormElementOptionselect ($oSelect11, "12", 1, "byValue");fra
_IEFormElementOptionselect ($oSelect12, "1994", 1, "byValue");fra
_IEFormElementOptionselect ($oSelect13, "12", 1, "byValue");til
_IEFormElementOptionselect ($oSelect14, "2004", 1, "byValue");Til

im making a script for an workapplication form and this part is used to add month and year of the work/education and courses.

Share this post


Link to post
Share on other sites

bumpybump

Share this post


Link to post
Share on other sites

You say the name is the same but you give example with all names different :

$oSelect11= _IEFormElementGetObjByName ($oForm, "field_2_30_start_month");Fra mnd

$oSelect12= _IEFormElementGetObjByName ($oForm, "field_2_30_start_year ");Fra år

$oSelect13= _IEFormElementGetObjByName ($oForm, "field_2_30_end_year");Til mnd

$oSelect14= _IEFormElementGetObjByName ($oForm, "field_2_30_end_month");Til år

So what is it?

Give us the source code of the page.

Share this post


Link to post
Share on other sites

my bad lol, missed the diffrence between them. but im still not able to change it thou :"

the src

<h2 class="category">Arbeidserfaring</h2>
<input type="hidden" name="form_submit" value="2" />
<input type="hidden" name="multi_key" value="f1ba7a64fb5fb532e95489573987dcae" />
<table border="0">
  <tbody>
    <tr>
            <td  valign="top" align="left" width="300">
 
Periode:&nbsp;<font color="red">*</font>&nbsp;
      </td>
 
      <td valign="top"  align="left">
 
<select name="field_2_30_start_month">
  <option value=""> - Måned - </option>
  <option value="01" >Januar</option>
  <option value="02" >Februar</option>
  <option value="03" >Mars</option>
  <option value="04" >April</option>
  <option value="05" >Mai</option>
  <option value="06" >Juni</option>
  <option value="07" >Juli</option>
  <option value="08" >August</option>
  <option value="09" >September</option>
  <option value="10" >Oktober</option>
  <option value="11" >November</option>
  <option value="12" >Desember</option>
</select>
<select name="field_2_30_start_year">
  <option value=""> - År - </option>
  <option value="2010" >2010</option>
  <option value="2009" >2009</option>
  <option value="2008" >2008</option>
  <option value="2007" >2007</option>
  <option value="2006" >2006</option>
  <option value="2005" >2005</option>
  <option value="2004" >2004</option>
  <option value="2003" >2003</option>
  <option value="2002" >2002</option>
  <option value="2001" >2001</option>
  <option value="2000" >2000</option>
  <option value="1999" >1999</option>
  <option value="1998" >1998</option>
  <option value="1997" >1997</option>
  <option value="1996" >1996</option>
  <option value="1995" >1995</option>
  <option value="1994" >1994</option>
  <option value="1993" >1993</option>
  <option value="1992" >1992</option>
  <option value="1991" >1991</option>
  <option value="1990" >1990</option>
  <option value="1989" >1989</option>
  <option value="1988" >1988</option>
  <option value="1987" >1987</option>
  <option value="1986" >1986</option>
  <option value="1985" >1985</option>
  <option value="1984" >1984</option>
  <option value="1983" >1983</option>
  <option value="1982" >1982</option>
  <option value="1981" >1981</option>
  <option value="1980" >1980</option>
  <option value="1979" >1979</option>
  <option value="1978" >1978</option>
  <option value="1977" >1977</option>
  <option value="1976" >1976</option>
  <option value="1975" >1975</option>
  <option value="1974" >1974</option>
  <option value="1973" >1973</option>
  <option value="1972" >1972</option>
  <option value="1971" >1971</option>
  <option value="1970" >1970</option>
  <option value="1969" >1969</option>
  <option value="1968" >1968</option>
  <option value="1967" >1967</option>
  <option value="1966" >1966</option>
  <option value="1965" >1965</option>
  <option value="1964" >1964</option>
  <option value="1963" >1963</option>
  <option value="1962" >1962</option>
  <option value="1961" >1961</option>
  <option value="1960" >1960</option>
  <option value="1959" >1959</option>
  <option value="1958" >1958</option>
  <option value="1957" >1957</option>
  <option value="1956" >1956</option>
  <option value="1955" >1955</option>
  <option value="1954" >1954</option>
  <option value="1953" >1953</option>
  <option value="1952" >1952</option>
  <option value="1951" >1951</option>
  <option value="1950" >1950</option>
  <option value="1949" >1949</option>
  <option value="1948" >1948</option>
  <option value="1947" >1947</option>
  <option value="1946" >1946</option>
  <option value="1945" >1945</option>
  <option value="1944" >1944</option>
  <option value="1943" >1943</option>
  <option value="1942" >1942</option>
  <option value="1941" >1941</option>
  <option value="1940" >1940</option>
  <option value="1939" >1939</option>
  <option value="1938" >1938</option>
  <option value="1937" >1937</option>
  <option value="1936" >1936</option>
  <option value="1935" >1935</option>
  <option value="1934" >1934</option>
  <option value="1933" >1933</option>
  <option value="1932" >1932</option>
  <option value="1931" >1931</option>
  <option value="1930" >1930</option>
</select>
Til
<select name="field_2_30_end_month">
  <option value=""> - Måned - </option>
  <option value="01" >Januar</option>
  <option value="02" >Februar</option>
  <option value="03" >Mars</option>
  <option value="04" >April</option>
  <option value="05" >Mai</option>
  <option value="06" >Juni</option>
  <option value="07" >Juli</option>
  <option value="08" >August</option>
  <option value="09" >September</option>
  <option value="10" >Oktober</option>
  <option value="11" >November</option>
  <option value="12" >Desember</option>
</select>
<select name="field_2_30_end_year">
  <option value=""> - År - </option>
  <option value="2014" >2014</option>
  <option value="2013" >2013</option>
  <option value="2012" >2012</option>
  <option value="2011" >2011</option>
  <option value="2010" >2010</option>
  <option value="2009" >2009</option>
  <option value="2008" >2008</option>
  <option value="2007" >2007</option>
  <option value="2006" >2006</option>
  <option value="2005" >2005</option>
  <option value="2004" >2004</option>
  <option value="2003" >2003</option>
  <option value="2002" >2002</option>
  <option value="2001" >2001</option>
  <option value="2000" >2000</option>
  <option value="1999" >1999</option>
  <option value="1998" >1998</option>
  <option value="1997" >1997</option>
  <option value="1996" >1996</option>
  <option value="1995" >1995</option>
  <option value="1994" >1994</option>
  <option value="1993" >1993</option>
  <option value="1992" >1992</option>
  <option value="1991" >1991</option>
  <option value="1990" >1990</option>
  <option value="1989" >1989</option>
  <option value="1988" >1988</option>
  <option value="1987" >1987</option>
  <option value="1986" >1986</option>
  <option value="1985" >1985</option>
  <option value="1984" >1984</option>
  <option value="1983" >1983</option>
  <option value="1982" >1982</option>
  <option value="1981" >1981</option>
  <option value="1980" >1980</option>
  <option value="1979" >1979</option>
  <option value="1978" >1978</option>
  <option value="1977" >1977</option>
  <option value="1976" >1976</option>
  <option value="1975" >1975</option>
  <option value="1974" >1974</option>
  <option value="1973" >1973</option>
  <option value="1972" >1972</option>
  <option value="1971" >1971</option>
  <option value="1970" >1970</option>
  <option value="1969" >1969</option>
  <option value="1968" >1968</option>
  <option value="1967" >1967</option>
  <option value="1966" >1966</option>
  <option value="1965" >1965</option>
  <option value="1964" >1964</option>
  <option value="1963" >1963</option>
  <option value="1962" >1962</option>
  <option value="1961" >1961</option>
  <option value="1960" >1960</option>
  <option value="1959" >1959</option>
  <option value="1958" >1958</option>
  <option value="1957" >1957</option>
  <option value="1956" >1956</option>
  <option value="1955" >1955</option>
  <option value="1954" >1954</option>
  <option value="1953" >1953</option>
  <option value="1952" >1952</option>
  <option value="1951" >1951</option>
  <option value="1950" >1950</option>
  <option value="1949" >1949</option>
  <option value="1948" >1948</option>
  <option value="1947" >1947</option>
  <option value="1946" >1946</option>
  <option value="1945" >1945</option>
  <option value="1944" >1944</option>
  <option value="1943" >1943</option>
  <option value="1942" >1942</option>
  <option value="1941" >1941</option>
  <option value="1940" >1940</option>
  <option value="1939" >1939</option>
  <option value="1938" >1938</option>
  <option value="1937" >1937</option>
  <option value="1936" >1936</option>
  <option value="1935" >1935</option>
  <option value="1934" >1934</option>
  <option value="1933" >1933</option>
  <option value="1932" >1932</option>
  <option value="1931" >1931</option>
  <option value="1930" >1930</option>
</select>
              </td>
    </tr>
    <tr>
            <td  valign="top" align="left" width="300">
 
                         Jobbkategori:<br /> 
 
      </td>
 
      <td valign="top"  align="left">
 
<script language="javascript"> 
<!--//
function WorkExperienceSub(id) { return this.sub_category[id]; }
function WorkExperience() {
    this.WorkExperienceSub = WorkExperienceSub;
    this.sub_category = new Object();
    this.sub_category['1'] = new Array(new Array("182","Avdelingsdirektør"),new Array("3","FoU Samfunnsvitenskap og Humanistiske fag"),new Array("1","Kontormedarbeider/Sekretær "),new Array("166","Kundeservice/Ordremottakning"),new Array("167","Rekruttering/Personal"),new Array("2","Sentralbord/Resepsjon"),new Array("4","Sosialtjeneste"));
    this.sub_category['24'] = new Array(new Array("164","Annet"));
    this.sub_category['2'] = new Array(new Array("10","Annet"),new Array("336","Avdelingsansvarlig"),new Array("7","Bank/Finansielle tjenester"),new Array("8","Forsikring/Fond/Pensjonsfond"),new Array("165","Mekler/Analyse"));
    this.sub_category['30'] = new Array(new Array("326","Designer"));
    this.sub_category['42'] = new Array(new Array("386","Test"));
    this.sub_category['3'] = new Array(new Array("13","Annet"),new Array("11","FoU Naturvitenskap og Teknikk"),new Array("12","FoU Samfunnsvitenskap og Humanistiske fag"));
    this.sub_category['6'] = new Array(new Array("33","Annet"),new Array("28","Annet faglært håndverk"),new Array("31","Bygg og anlegg"),new Array("30","Mekaniske yrker"),new Array("29","Tekniske byggfag"),new Array("32","Ufaglært håndverk"));
    this.sub_category['4'] = new Array(new Array("20","Annet"),new Array("19","Apotektjenester / Farmasi"),new Array("17","Fysioterapi / Ergoterapi"),new Array("14","Lege-, tannhelse- og veterinærtjenester"),new Array("170","Optiker"),new Array("388","Pedagog"),new Array("16","Psykiatri- og psykologitjenester"),new Array("18","Sosialtjenester"),new Array("15","Sykepleie- og omsorgstjenester"),new Array("355","Sykepleier"),new Array("169","Tannlege"),new Array("168","Veterinær"));
    this.sub_category['5'] = new Array(new Array("23","Annen overnatting"),new Array("27","Annet"),new Array("21","Hotellvirksomhet"),new Array("25","Kantine/Catering/Storhusholdning"),new Array("26","Reiseliv"),new Array("24","Restaurant- og barvirksomhet"));
    this.sub_category['27'] = new Array(new Array("365","HR Administrasjon"),new Array("367","HR konsulent"),new Array("368","HR Manager"),new Array("366","Lønn"),new Array("369","Opplæring og utvikling"),new Array("363","Organisasjonsutvikling"),new Array("364","Rekruttering"));
    this.sub_category['7'] = new Array(new Array("46","Annet"),new Array("171","Bilindustri / Maskiner og tilbehør"),new Array("34","Elektriske og optiske produkter"),new Array("35","Energi og vannforsyning"),new Array("36","Farmasøytisk industri"),new Array("37","Grafisk industri"),new Array("38","Gummi-, plast- og mineralvarer"),new Array("39","Kjemisk industri / Petroleumsindustri"),new Array("40","Metallurgisk industri / Metallvarer"),new Array("41","Nærings- og nytelsesmidler"),new Array("42","Tekstilindustri og bekledning"),new Array("43","Transportmidler / Maskiner og utstyr"),new Array("44","Trevareindustri / Treforedling / Møbelindustri"),new Array("45","Verksindustri"));
    this.sub_category['8'] = new Array(new Array("60","Annet"),new Array("54","Automasjon / Instrumentering"),new Array("47","Bygg og anlegg"),new Array("56","Elektro"),new Array("50","Energi"),new Array("49","Fysikk / Matematikk"),new Array("51","Geofag / Petroleumsteknologi"),new Array("48","Kjemi / Biologi"),new Array("59","Kontrakt / Innkjøp"),new Array("52","Marin teknikk"),new Array("55","Maskin"),new Array("53","Materialteknologi"),new Array("58","Prosjektleder"),new Array("173","Teknisk konsulentvirksomhet"),new Array("57","VVS"));
    this.sub_category['9'] = new Array(new Array("66","Annet"),new Array("62","Arbeidstakerorganisasjoner"),new Array("63","Ideelle organisasjoner"),new Array("65","Internasjonale organisasjoner"),new Array("64","Næringsliv- og arbeidsgiverorg."));
    this.sub_category['10'] = new Array(new Array("72","Annet"),new Array("67","Applikasjonsutvikling"),new Array("70","Drift av applikasjoner og infrastruktur"),new Array("68","Forretningsutvikling"),new Array("71","Salg og markedsføring"),new Array("69","Utvikling av infrastruktur og maskinvare"));
    this.sub_category['11'] = new Array(new Array("79","Annet"),new Array("73","Dyrking/Gartneri"),new Array("77","Fiske og fangst"),new Array("78","Fiskeoppdrett"),new Array("74","Husdyrhold"),new Array("76","Jakt/Viltstell"),new Array("75","Skogbruk"));
    this.sub_category['12'] = new Array(new Array("88","Annet"),new Array("80","Arkitektvirksomhet"),new Array("83","Eiendomsforvaltning"),new Array("84","Forretningsutvikling/Strategi"),new Array("82","Juridiske tjenester"),new Array("85","Organisasjonsutvikling"),new Array("86","Rekruttering"),new Array("87","Revisjon/Skatterådgivning"),new Array("81","Teknisk konsulentvirksomhet/Engineering"));
    this.sub_category['13'] = new Array(new Array("94","Annet"),new Array("92","Bibliotek/Museer/Galleri"),new Array("91","Individuell kunstnerisk virksomhet"),new Array("90","Musikk/Dans"),new Array("93","Sport/Idrett"),new Array("89","Teater/Opera/Ballett"));
    this.sub_category['26'] = new Array(new Array("196","Brand/Gruppe Produktsjef"),new Array("195","Direktemarkedsføring"));
    this.sub_category['14'] = new Array(new Array("101","Annet"),new Array("95","Annonse/Reklame"),new Array("100","Forlagsvirksomhet"),new Array("97","Journalistikk"),new Array("96","Kommunikasjonsrådgivning"),new Array("98","Radio/TV/Film/Video"),new Array("99","Trykte media"));
    this.sub_category['15'] = new Array(new Array("110","Annet"),new Array("105","Forsvar/Utenriks"),new Array("103","Helse/Sosial"),new Array("104","Kirke/Undervisning/Forskning"),new Array("108","Offentlige lederstillinger"),new Array("102","Politi/Brann/Toll"),new Array("107","Retts- og fengselsvesen"),new Array("106","Skatt/Trygd"),new Array("109","Tekniske tjenester"));
    this.sub_category['16'] = new Array(new Array("125","Annet"),new Array("114","Drilling/Logging/Brønn/Boring"),new Array("117","Engineering"),new Array("116","Engineering"),new Array("121","Forskning og Teknologi Utvikling"),new Array("112","Geologi/Geofysikk/Reservoar"),new Array("119","Helse/Miljø/Sikkerhet"),new Array("122","Ledelse og Fellestjenester"),new Array("123","Nautisk"),new Array("111","Olje- og gassutvinning"),new Array("118","Operatør/Vedlikehold"),new Array("120","Prosjektledelse"),new Array("124","Teknisk - maritim"),new Array("113","Tjenester tilknyttet gass- og oljeutvinning"),new Array("115","Utvinning av råstoffer/Bergverksdrift"));
    this.sub_category['17'] = new Array(new Array("132","Annet"),new Array("126","Hår- og skjønnhetspleie"),new Array("127","Lønnet husarbeid/Hagestell"),new Array("128","Treningsenter"),new Array("129","Vaktmestertjenester"),new Array("131","Vaske- og rensevirksomhet"),new Array("130","Vektertjenester"));
    this.sub_category['39'] = new Array(new Array("266","Produksjon"));
    this.sub_category['18'] = new Array(new Array("136","Annet"),new Array("133","Rengjøringsvirksomhet/Desinfeksjon"),new Array("135","Renovasjon"),new Array("134","Vann-, kloakk- og renseanlegg"));
    this.sub_category['19'] = new Array(new Array("140","Annet"),new Array("139","Markedsføring"),new Array("138","Produktsalg"),new Array("176","Telefonsalg"),new Array("137","Tjenestesalg"));
    this.sub_category['28'] = new Array(new Array("372","Annet"),new Array("371","Legesekretær"),new Array("370","Tannlegesekretær"));
    this.sub_category['40'] = new Array(new Array("255","Analytiker"),new Array("254","Datateknikker"),new Array("253","Prosjektleder"),new Array("256","Utvikler"));
    this.sub_category['20'] = new Array(new Array("148","Annet"),new Array("143","Innkjøp"),new Array("141","Landtransport"),new Array("147","Logistikk/Lager"),new Array("144","Lufttransport"),new Array("146","Post- og budtjenester"),new Array("142","Sjøtransport"),new Array("145","Transporttilknyttede tjenester"));
    this.sub_category['21'] = new Array(new Array("154","Annet"),new Array("149","Barnehage"),new Array("150","Grunnskole"),new Array("387","Høgskole/Universitet"),new Array("152","Universitet/Høyskole"),new Array("151","Videregående skole"),new Array("153","Voksenopplæring/Kurs"));
    this.sub_category['22'] = new Array(new Array("155","Agentur/Engroshandel"),new Array("158","Annet"),new Array("156","Detaljhandel/Butikksalg"),new Array("177","Franchisetaker"),new Array("157","Reparasjon og vedlikehold"),new Array("383","Slagter"));
    this.sub_category['23'] = new Array(new Array("163","Annet"),new Array("161","Innkjøp/Logistikk"),new Array("159","Regnskap/Controlling"),new Array("162","Revisjon"),new Array("160","Økonomi/Finans"));
}
var work_experience = new WorkExperience();
function updateWorkExperience() {
    _populateOptionList(updateWorkExperience.arguments[0],updateWorkExperience.arguments[1],'work_experience.WorkExperienceSub');
}
//-->
</script>
<table border="0" cellspacing="0" cellpadding="0">
  <tbody>
    <tr>
      <td align="left">
        <select size="1" name="field_2_31" onchange="updateWorkExperience('field_2_31','field_2_32');">
          <option value="">- Velg kategori -</option>
          <option value="1">Administrasjon/Kontor/Personal</option>
          <option value="24">Annet</option>
          <option value="2">Bank/Finans/Forsikring</option>
          <option value="35">Call center</option>
          <option value="30">Design</option>
          <option value="42">Energi</option>
          <option value="33">Forsikring</option>
          <option value="3">Forskning/Utvikling</option>
          <option value="6">Håndverk / Bygg og anlegg</option>
          <option value="4">Helse/Sosial</option>
          <option value="5">Hotell/Restaurant/Reiseliv</option>
          <option value="27">HR / Personal</option>
          <option value="37">Industri</option>
          <option value="7">Industri / Produksjon</option>
          <option value="8">Ingeniøryrker</option>
          <option value="9">Interesseorganisasjoner</option>
          <option value="10">IT / Telekommunikasjon / Internett</option>
          <option value="11">Jordbruk/Skogbruk/Jakt/Fiske</option>
          <option value="12">Konsulenter/Frie yrker</option>
          <option value="13">Kunst/Kultur</option>
          <option value="26">Markedsføring</option>
          <option value="14">Media/Informasjon/PR</option>
          <option value="15">Offentlige tjenester/Forvaltning</option>
          <option value="16">Olje/Gass Off-/Onshore/Maritim</option>
          <option value="17">Personlige tjeneste og servicebr.</option>
          <option value="39">Produksjon</option>
          <option value="18">Renhold/Renovasjon</option>
          <option value="19">Salg/Markedsføring</option>
          <option value="28">Sekretær</option>
          <option value="31">Sikkerhetstjenester</option>
          <option value="34">Teknisk Assistanse</option>
          <option value="40">Telekommunikasjon</option>
          <option value="20">Transport/Logistikk/Lager</option>
          <option value="21">Utdanning/Undervisning</option>
          <option value="22">Varehandel</option>
          <option value="38">Vedlikehold</option>
          <option value="23">Økonomi/Regnskap</option>
        </select>
      </td>
    </tr>
  </tbody>
</table>
              </td>
    </tr>
    <tr>
            <td  valign="top" align="left" width="300">
 
Arbeidsgiver:&nbsp;<font color="red">*</font>&nbsp;
      </td>
 
      <td valign="top"  align="left">
<input type="text" name="field_2_34" value="" size="26" maxlength="150" />    </td>
    </tr>
    <tr>
            <td  valign="top" align="left" width="300">
 
Stilling:&nbsp;
      </td>
 
      <td valign="top"  align="left">
<input type="text" name="field_2_35" value="" size="26" maxlength="150" />    </td>
    </tr>
    <tr>
            <td  valign="top" align="left" width="300">
 
Stillingsbeskrivelse:&nbsp;
      </td>
 
      <td valign="top"  align="left">
<textarea name="field_2_36" rows="3" cols="38"></textarea>    </td>
    </tr>
    <tr>
            <td  valign="top" align="left" width="300">
 
Nåværende jobb:&nbsp;
      </td>
 
      <td valign="top"  align="left">
<input type="radio" name="field_2_37" value="y" />&nbsp;Ja<br />
<input type="radio" name="field_2_37" value="n" />&nbsp;Nei<br />
      </td>
    </tr>
    <tr>
      <td colspan="2">
        &nbsp;
      </td>
    </tr>
    <tr>
      <td>
        &nbsp;
      </td>
      <td>
        <input value="Avbryt" name="b_multi_cancel" class="addbutton" type="submit" />
        <input value="Legg til" name="b_multi_add" class="addbutton" type="submit" />
      </td>
    </tr>
  </tbody>
</table>
 
 
        
                                <br /><br />
                          </td>
                          <td width="1%" height="350">
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </td>
                </tr>
                  <tr>
                  <td>
                    <table class="appfoot" cellpadding="0" style="border-collapse: collapse;" width="100%">
                      <tbody>
                        <tr>
                          <td width="1%" height="40">&nbsp;
                          </td>
                            <td align="center" height="40">
                            <span class="asterix">*</span>&nbsp;Alle felt som er merket med rød stjerne må fylles ut&nbsp;<span class="asterix">*</span>
                          </td>
                            <td width="1%" >
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </td>
                </tr>
              </tbody>
            </table>
          </td>
        </tr>
      </tbody>
    </table>
    </form>

Share this post


Link to post
Share on other sites

$oDoc = _IEDocGetObj($oIE)
    $oArray1 = $oDoc.getElementsByTagName ("select")
    For $element In $oArray1
        Select
            Case $element.name == "field_2_30_start_month" 
                _IEFormElementOptionselect($element,"01", 1, "byValue")
            Case $element.name == "field_2_30_start_year" 
                _IEFormElementOptionselect($element,"2010", 1, "byValue")
            Case $element.name == "field_2_30_end_year" 
                _IEFormElementOptionselect($element,"2012", 1, "byValue")
            Case $element.name == "field_2_30_end_month" 
                _IEFormElementOptionselect($element,"02", 1, "byValue")
        EndSelect
    Next

This should work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0