Alpha Video Training
Results 1 to 2 of 2

Thread: Passing a Javascript variable from one Html to another

  1. #1
    Member
    Real Name
    Billy John Moreno
    Join Date
    Jul 2014
    Posts
    18

    Default Passing a Javascript variable from one Html to another

    hi everyone,

    Can anyone help me with this?
    I have two htmls: html1 and html2. Html1 is run within html2 while html2 is run as an HTML form in my Alpha5 Desktop App.
    I want to pass a javascript variable from html1 to html2.


    I've looked for some info about this in Google and the answers are:
    1. Saving the js variable in html1 as a cookie,then acess the cookie using js in html2.
    2. Saving the js variable using sessionStorage or localStorage.

    It works when running html2 in a browser but not in my case since Im running it as embedded HTML form in Alpha5.
    Is it possible to do this?

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Passing a Javascript variable from one Html to another

    Misread.
    There can be only one.

Similar Threads

  1. passing JSON from Xbasic function to javascript
    By lilmofo812 in forum Mobile & Browser Applications
    Replies: 7
    Last Post: 11-12-2014, 11:12 AM
  2. Passing javascript variables between components
    By mikew2 in forum Application Server Version 10 - Web/Browser Applications
    Replies: 2
    Last Post: 08-23-2011, 02:19 PM
  3. Passing Session Vars in a HTML string
    By andymeer@yahoo.co.uk in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 02-24-2011, 04:56 PM
  4. Passing session variable to JavaScript?
    By Peter.Greulich in forum Application Server Version 10 - Web/Browser Applications
    Replies: 12
    Last Post: 06-19-2010, 12:47 AM
  5. Passing Session Variable to JavaScript
    By mmaisterrena in forum Application Server Version 10 - Web/Browser Applications
    Replies: 1
    Last Post: 02-23-2010, 02:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •