Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8751585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:04:35+00:00 2026-06-13T13:04:35+00:00

I am passing some variable from my gwt code to the jsp file. It

  • 0

I am passing some variable from my gwt code to the jsp file. It is something like this

  <html>
  <head>
  <script type="text/javascript">
   alert("Inside the jsp file");
   var criticalPath = window.top.criticalPath;

   </script>
   </head>
   <body>
   <script type="text/javascript" src="./js/flow.js"></script>          
   </body>
   </html>

What i want is to pass the criticalPath variable to the flow.js file. I know if, flow.js would be a method I could have pass the variable, but I don’t want to do that way. Is there any way to avoid the method and pass the variable to flow.js or can I call the window.top.criticalPath inside the flow.js?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:04:36+00:00Added an answer on June 13, 2026 at 1:04 pm

    You didn’t place the variable criticalPath in any specific scope, which means it is a global variable, and hence it will be accessible from any js file (as long as they are loaded after criticalPath declaration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am passing the data from content script to background.html in the below code
Looking to pass variables from c# to javascript to use some jquery code. Passing
I'm working on an application which retrieves some HTML code from a record in
I am passing XML type variable from one procedure to another procedure. Set XML
I'm having some trouble passing in a variable from my javascript function to my
For some unknown reason I'm running into a problem when passing a variable to
I seem to have a problem passing some strings on from one form to
I writing a script in python in which I am extracting some information from
I'm having some interesting issues with passing in variables from within an object into
Having some trouble passing values from one class to another. I basically have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.