• info@maidenwaygroup.co.uk
  • Cavaghan Gardens Carlisle CA1 3BF. 07377675242. 01228 536449

how to call one javascript function from another page

You can build this string to include the session value to be one of the parameters.

move the javascript code out of that php file to an external file, then you can include this external js file in any php or html files. We've partnered with two important charities to provide clean water and computer science education to those who need it most.

    } Ok, from what I understand you have a popup and then want to run a function on the parent (the page that opened that popup). Well in this case you might make use of "window.referrer" to your advantage. I can call the function, using your sugestion a few posts above, but how can i pass the argument also? May 17, 2011 01:09 PM|heldersantos.moreira|LINK. Help! Re: Calling Javascript Function from Other Page May 20, 2011 05:21 AM | heldersantos.moreira | LINK These last few posts solved indeed my problem, thanks everyone. Experts Exchange always has the answer, or at the least points me in the correct direction! That is the idea I was proposing. Yes I see now and how nice it would have been if you explained all that from the beginning! *This site is protected by reCAPTCHA and the Google I'm fairly new at this. The problem is that it is not on load, the page2 is already open and loaded (in fact, it was a button click on page2 that originated the popup window of page1). Trying to pull the address input over. Terms of Service apply. Connect with Certified Experts to gain insight and support on specific technology challenges including: Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Any help would be greatly appreciated. Regards and thanks for all the help so far. javascript function not calling on clicking button for the first time. Our community of experts have been thoroughly vetted for their expertise and industry experience. Not directly, no.

, I think you are trying to do something like below-, May 20, 2011 05:21 AM|heldersantos.moreira|LINK.

I’m learning everyday. I prepare my string on the server side, and when i call the javascript function with it, i get an error of unterminated string literal. Thanks, this appears to indeed solve half of my problem. Gain unlimited access to on-demand training courses with an Experts Exchange subscription. (Get your first solution completely free - no credit card required). is there any kind of session variable in the client side of aspx page in .NET? Being involved with EE helped me to grow personally and professionally. We help IT Professionals succeed at work.         do something here; These last few posts solved indeed my problem, thanks everyone. Privacy Policy and If you use that page as your “goto” page, you can use PHP to pass variables into those Javascript functions. This obviously doesn’t work. That javascript (it is an entire webpage) performs all the proximity search operations ‘in place’. Powered by Discourse, best viewed with JavaScript enabled, Passing input value from one page to another. Then i close my page1. Then change this, It’s not working. From what i searched, This concept is different from JavaScript Page Refresh. It is like having another employee that is extremely experienced. Hope this is May 20, 2011 06:23 AM|heldersantos.moreira|LINK, Calling Javascript Function from Other Page. page should have this: