4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 How should I use showModalDialog() ?
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
jedioutcaster
Junior WebHelper
Junior WebHelper


Joined: 23 Dec 2003
Posts: 4

PostPosted: Mon Jan 05, 2004 9:58 am (20 years, 3 months ago) Reply with QuoteBack to Top

I'm having a big problem with the function showModalDialog(): every time I call it with a returnValue in the Dialog, it returns undefined. What's the problem?

For example, I have this:

<body onload=a()>
<script language=jscript>
function a() {

var vReturnValue=""

vReturnValue=showModalDialog('about:<input type=button onclick=\'returnValue=\"aaaaaaa\";window.close()\'>')

alert(vReturnValue)

}
</script>
</body>

And it alerts "undefined" instead of "aaaaaaa". Well, I guess there's something wrong with my way of calling the function; if not, then what is it? Please help me.

Thanks a lot.
OfflineView User's ProfileFind all posts by jedioutcasterSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.208886 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme