javascript - Iframe Passing variables and capture then in landing page -


I am using an iframe to pass some variables (A and B) and capture them on the landing page the wanted.

Page-1

  & lt; Iframe id = "trackFrame" width = "600" height = "500" src = "map Html? A = 1 & amp; B = 2" frameborder = "0" scrolling = "no" margin-height = "0" marginwidth = " 0 "& gt; & Lt; / Iframe & gt;  

In the landing page

Landing Page

   

Please help me I'm new to presentation development.

Try looking at this post here:

Previously passed to you The parameters will be required to get an array, which can be done by:

  var newArray = window.location. Search.substr (1) .split ('& amp;')  

Try calling a blank function on page log, which then reads it. The array is then created by reading the absolute string window.location.search.substr (1) and then it is separated into one array & amp; Farm.

So if you have mysite.com/page.html?a=3&b=4, then it

  newArray (0) = "a = 3" And newArray (1) = "b = 4"  

then

  var a = newArray (0) .substring (2) var b = NewArray ( 1) .substring (2)  

"a =" and "b =" will be removed from the substrings (2) parameters and pass the passage to your parameter with your final result.

It should help you get started.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -