Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Freinds,

window.showModalDialog Not working in google Chrome using Jquery.
If I used window.open(), it is working in all browsers, but split is not working.

Ex; objMandal.val(objwinopen.split("/")[0]);, this is not working in FF & Chrome,

Please some body suggest me.
Posted
Comments
VC.J 6-Oct-14 2:01am    
Baroor window.showModalDialog will not work on Chrome.

you can use jQuery dialogue box may be that can help
Baroor 6-Oct-14 2:11am    
dailogue box will work on all browsers??
Sinisa Hajnal 6-Oct-14 2:27am    
That is the idea behind jQuery (and other frameworks) - they work on all browsers hiding the complexity from the developer.
Baroor 6-Oct-14 2:13am    
shall i use window.open()?
VC.J 6-Oct-14 3:30am    
if you want some value in return from popup than go for jquery dialogue box else window.open() will do for you

1 solution

No it wont work. Check this out http://codecorner.galanter.net/2014/09/02/reenable-showmodaldialog-in-chrome/[^]

window.open() most certainly works in Safari and Chrome.

Regards,
Praneet
 
Share this answer
 
Comments
Baroor 6-Oct-14 2:27am    
This is in Jquery function
objwinopen = window.open('../HRManagement/EmployeeDetails_Search.aspx?Cat=RM&F9=1&Mode=' + ObjMode + '', null, 'status:no;dialogWidth:745px;dialogHeight:624px;dialogHide:true;help:no;scroll:no');

Other window opened but when im trying to get the selected value im getting error.
objMandal.val(objwinopen.split("/")[0]);
is there any syntax error in this.
[no name] 6-Oct-14 3:10am    
Try converting to string before using the split.
For e.g
var b=a.toString().split('/');

For further reference in detail check this out : http://blog.stevenlevithan.com/archives/cross-browser-split

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900