Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. little problem!!

little problem!!

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zeeShan anSari
    wrote on last edited by
    #1

    hi all, on firefox this code work well ....but this not working on IE.....why?

    for(var i =0 ;i< result.length;i++)
    {
    var obj = result[i];

    var sel = document.getElementById("Select"+obj.LoginId);

    sel.value =obj.Skin;
    }

    A C 2 Replies Last reply
    0
    • Z zeeShan anSari

      hi all, on firefox this code work well ....but this not working on IE.....why?

      for(var i =0 ;i< result.length;i++)
      {
      var obj = result[i];

      var sel = document.getElementById("Select"+obj.LoginId);

      sel.value =obj.Skin;
      }

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      zeeShan anSari wrote:

      but this not working on IE.....

      What do you mean by not working ? Are you getting any particular error ?

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

      Z 1 Reply Last reply
      0
      • A Abhijit Jana

        zeeShan anSari wrote:

        but this not working on IE.....

        What do you mean by not working ? Are you getting any particular error ?

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

        Z Offline
        Z Offline
        zeeShan anSari
        wrote on last edited by
        #3

        sel.value =obj.Skin;

        --> here obj.Skin is not assign in sel.Value here sel is select ok.... let's suppose

        and now

        var sel = document.getElementById('LoginId1');

        sel.options.value ="SeaGreen";

        but sel is still not selected in IE

        thanks

        modified on Wednesday, July 29, 2009 11:41 AM

        Z 1 Reply Last reply
        0
        • Z zeeShan anSari

          sel.value =obj.Skin;

          --> here obj.Skin is not assign in sel.Value here sel is select ok.... let's suppose

          and now

          var sel = document.getElementById('LoginId1');

          sel.options.value ="SeaGreen";

          but sel is still not selected in IE

          thanks

          modified on Wednesday, July 29, 2009 11:41 AM

          Z Offline
          Z Offline
          zeeShan anSari
          wrote on last edited by
          #4

          for(var i =0 ;i< result.length;i++)
          {
          var obj = result[i];

          this is solution :)

          var sel = document.getElementById("Select"+obj.LoginId);

          switch(obj.Skin)
          {
          case 'LightBlue':
          {
          sel.options[0].selected=true;
          break;
          }
          case 'SeaGreen':
          {
          sel.options[1].selected=true;
          break;
          }
          case 'Orange':
          {
          sel.options[2].selected=true;
          break;
          }

          is it good logic?

          1 Reply Last reply
          0
          • Z zeeShan anSari

            hi all, on firefox this code work well ....but this not working on IE.....why?

            for(var i =0 ;i< result.length;i++)
            {
            var obj = result[i];

            var sel = document.getElementById("Select"+obj.LoginId);

            sel.value =obj.Skin;
            }

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            You need to write some debugging code to work out what is not working in IE. It's not uncommon to have to write script that works out what browser you are in, because of differences in the js language implimentations.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups