Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Running javascript function from child page to parent page

Posted on 2013-02-05
1
355 Views
Last Modified: 2013-02-05
Hi all,

I have a link on an iframed page and I would like to call a javascript function on the parent page. Is this possible?  Here is the command that I will run on the iframed page and it applies to the parent page:

<a href="javascript:;" onClick=" jqcc.chat.joinChatroom('2','','T25saW5lIER5YWRlcnM='); ">

Open in new window


Thanks for your help,

D
0
Comment
Question by:TLN_CANADA
1 Comment
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 38857714
That mean jqcc.chat.joinChatroom function is declared in the parent...

<a href="javascript:;" onClick="window.parent.jqcc.chat.joinChatroom('2','','T25saW5lIER5YWRlcnM='); ">

Open in new window

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question