User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,398 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,505 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2226 | Replies: 0
Reply
Join Date: Nov 2007
Posts: 3
Reputation: rmk108 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rmk108 rmk108 is offline Offline
Newbie Poster

Enter key does not work in window.showModalDialog

  #1  
Nov 7th, 2007
function newCC()
{
var modalUrl;						
var vID;
modalUrl = 'ccNew.aspx';						
modalFeatures = 'dialogWidth:48; dialogHeight:29; status:0; help:0';
var vID = window.showModalDialog(modalUrl, 'UDI', modalFeatures);
if(vID != 'Close')
{
document.getElementById('txtGoID').value = vID;
document.getElementById('txtGoTgt').value = 'ccNew';
__doPostBack('lnkbtnGo','');
}	
}

hi,
In the above code i am usind " window.showModalDialog()" which will redirect me to the next page called ccNew.aspx. In the ccNew i have one text box and one button and tew radio buttons. I want the follwing to happen "If I enter text in the text box and Press Enter key then the button click event should fire"... but now if i press Enter nothing happens..
pls let me know how can i make the buttton click event fired if i press Enter key.

Thanks
Kiran
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 1:11 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC