Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
| Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 6th, 2008, 09:27 AM
Friend of Wrox
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default How to Call function from window.showModalDialog

Hii All!!
AnyPointer would be a great help
I want to call a function fun1() from the code written in test.html,which opens in modaldialog


function fun1()
function fun2()
//this Open Modal Dialog window with file name say "test.html"
//window.showModalDialog('test.html', '', "dialogWidth: 600px; dialogHeight: 230px; status: no;scroll: no ");

<input type=button value="openDialog" onclick="fun2()">

function TestFun()
//Here I want to call the Index.html function named fun1()
fun1()//How to achieve it window.opener.fun1() is also not working

<input type=button value="callIndexFun1" onclick="TestFun()">

Cheers :)

Cheers :)


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call javascript function from VB function vinod_yadav1919 VB How-To 0 February 13th, 2006 06:03 AM
how can i call hook function to a specified window pradpb999 Access 0 December 30th, 2005 01:34 AM
function showModalDialog cirudinezidane Javascript How-To 0 April 13th, 2004 05:24 AM
close window.showModalDialog chopswil Javascript How-To 1 September 30th, 2003 09:09 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.