Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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


****Index.html***********

<script>
function fun1()
{
//someCode
}
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 ");
}

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



****test.html***********
<script>
function TestFun()
{
//someCode
//Here I want to call the Index.html function named fun1()
fun1()//How to achieve it window.opener.fun1() is also not working
}


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


Cheers :)

vinod
__________________
Cheers :)

vinod
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 05:03 AM
how can i call hook function to a specified window pradpb999 Access 0 December 30th, 2005 12: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



All times are GMT -4. The time now is 09:07 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.