Solved

Running javascript function from child page to parent page

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
add a 3rd selection to sum 7 29
how can i Return this word's max repeat count? 2 18
Checking data with javascript 3 19
jquery datepciker end date add 6 days 6 36
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

777 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