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. Get Source through javascript?

Get Source through javascript?

Scheduled Pinned Locked Moved Web Development
javascripthtmlhelptutorialquestion
2 Posts 2 Posters 1 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.
  • J Offline
    J Offline
    Jens Meyer
    wrote on last edited by
    #1

    Hi there, i have a frameset in which i have two frames. The right one loads a predefined webpage (which one is unknown to me, it depends on the user). The left one reloads the right frame from time to time using javascript. What i want to achieve is to get the whole source string of the page in the right frame into a variable for example. How can it be done? leftframe-source (loader.html): Frameset mit Sitemap var aktiv = window.setInterval("loaded()", 5000); function loaded() { top.frames['rightframe'].location = 'http://www.heise.de'; return true; } frameset: Frameset mit Sitemap Any help is appreciated and thanks in advance Trollpower

    G 1 Reply Last reply
    0
    • J Jens Meyer

      Hi there, i have a frameset in which i have two frames. The right one loads a predefined webpage (which one is unknown to me, it depends on the user). The left one reloads the right frame from time to time using javascript. What i want to achieve is to get the whole source string of the page in the right frame into a variable for example. How can it be done? leftframe-source (loader.html): Frameset mit Sitemap var aktiv = window.setInterval("loaded()", 5000); function loaded() { top.frames['rightframe'].location = 'http://www.heise.de'; return true; } frameset: Frameset mit Sitemap Any help is appreciated and thanks in advance Trollpower

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      If the page comes from a different domain, you can't. For security reasons you can't do anything at all with a page from a different domain. --- b { font-weight: normal; }

      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