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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Iframe source , Are cookies playing a role in this case?

Iframe source , Are cookies playing a role in this case?

Scheduled Pinned Locked Moved ASP.NET
questionjavascriptdebugging
4 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.
  • V Offline
    V Offline
    vjvjvjvj
    wrote on last edited by
    #1

    Hi, On my form, I have a dropdown list, iframe and a button Source of Iframe is given by the button click javascript. My dropdownlist selected item is 0 document.getElementById("MyFrame").src = "http://myapp/processing.aspx?ddl=0" ; works fine My dropdownlist selected item is 1 document.getElementById("MyFrame").src = "http://myapp/processing.aspx?ddl=1" ; works fine My dropdownlist selected item is 0 document.getElementById("MyFrame").src = "http://myapp/processing.aspx?ddl=0" ; Doesn't work fine. It somehow remembers this link. When I debug, it doent visit Processing.aspx .Processing page internally redirects to a different page. I find that other page is loaded directly visited. I always want the processing page to be visited. When I delete the cookies before i again select the drop down list item as 0 then it works fine. What is the remedy of this? Thanks, Vijay

    K D 2 Replies Last reply
    0
    • V vjvjvjvj

      Hi, On my form, I have a dropdown list, iframe and a button Source of Iframe is given by the button click javascript. My dropdownlist selected item is 0 document.getElementById("MyFrame").src = "http://myapp/processing.aspx?ddl=0" ; works fine My dropdownlist selected item is 1 document.getElementById("MyFrame").src = "http://myapp/processing.aspx?ddl=1" ; works fine My dropdownlist selected item is 0 document.getElementById("MyFrame").src = "http://myapp/processing.aspx?ddl=0" ; Doesn't work fine. It somehow remembers this link. When I debug, it doent visit Processing.aspx .Processing page internally redirects to a different page. I find that other page is loaded directly visited. I always want the processing page to be visited. When I delete the cookies before i again select the drop down list item as 0 then it works fine. What is the remedy of this? Thanks, Vijay

      K Offline
      K Offline
      Kannan Ar
      wrote on last edited by
      #2

      It is difficult to diagnosis the problem with this description. Can you please post the entire javascript code?

      1 Reply Last reply
      0
      • V vjvjvjvj

        Hi, On my form, I have a dropdown list, iframe and a button Source of Iframe is given by the button click javascript. My dropdownlist selected item is 0 document.getElementById("MyFrame").src = "http://myapp/processing.aspx?ddl=0" ; works fine My dropdownlist selected item is 1 document.getElementById("MyFrame").src = "http://myapp/processing.aspx?ddl=1" ; works fine My dropdownlist selected item is 0 document.getElementById("MyFrame").src = "http://myapp/processing.aspx?ddl=0" ; Doesn't work fine. It somehow remembers this link. When I debug, it doent visit Processing.aspx .Processing page internally redirects to a different page. I find that other page is loaded directly visited. I always want the processing page to be visited. When I delete the cookies before i again select the drop down list item as 0 then it works fine. What is the remedy of this? Thanks, Vijay

        D Offline
        D Offline
        DoctorMick
        wrote on last edited by
        #3

        It could be something as simple as making sure the processing page is set to not be cached.

        V 1 Reply Last reply
        0
        • D DoctorMick

          It could be something as simple as making sure the processing page is set to not be cached.

          V Offline
          V Offline
          vjvjvjvj
          wrote on last edited by
          #4

          yes i fixed it by not caching the page thanks for the help. vijay

          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