Solved

Running javascript function from child page to parent page

Posted on 2013-02-05
1
349 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now