|
-
Oct 24th, 2005, 03:39 AM
#1
Thread Starter
Lively Member
window.open
when i click on a text-field in my html-file, I want to open another HTML-document in a new window, so I use
[JSCRIPT]
window.open('MyForm.htm','', 'width=800, height=700, status=no, toolbar=no, menubar=no, scrollbars=yes');
[/JSCRIPT]
Problem : it doesn't open !!
Is there something in XP(professional ed) that blocks this line ?
'cause i already tried it on XP Embedded, and it worked just fine !
-
Oct 25th, 2005, 01:08 AM
#2
Re: window.open
perhaps its a popup blocker.. happens to me often.
-
Oct 25th, 2005, 01:16 AM
#3
Thread Starter
Lively Member
Re: window.open
I already tried to turn off the firewall ; I've set the security level low ; I turned the popup-blocker off,...
nothing helped ; I still can't get it to open !
and it still is giving me this damn message :
"To help protect your security...blablabla"
I DON4T WANT IT TO HELP !
-
Oct 25th, 2005, 08:57 AM
#4
Re: window.open
Start by detecting whether a popupblocker is enabled (it is in your case)
Javsacript:
PHP Code:
var testwin = window.open('','','width=1,height=1,left=0,top=0,scrollbars=no');
if(testwin)
var hasblocker = false;
else
var hasblocker = true;
testwin.close();
You can then look at the value of hasblocker and if it is true, display a message to the user that he has popup blockers enabled and will need to disable them or allow them for this site in order for your site to 'function properly.'
-
Oct 25th, 2005, 09:05 AM
#5
Thread Starter
Lively Member
-
Oct 25th, 2005, 09:19 AM
#6
-
Oct 25th, 2005, 09:20 AM
#7
Re: window.open
I want to see this snapshot too: "To help protect your security...blablabla"
-
Oct 25th, 2005, 09:34 AM
#8
Thread Starter
Lively Member
Re: window.open
This is what i get when i open my main-screen.
I then right-click on the message, choose "Allow Blocked Content", and the message disappears.
But clicking on one of the textfields (which should normally open the next form) does absolutely nothing, except for a short blink of the main form.
Due to the same "bug", I can't seem to attach anything to my posts neither...
The complete message is :
"To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options..."
-
Oct 25th, 2005, 09:37 AM
#9
Re: window.open
Try this:
After you "Allow BLocked Content", refresh the page. Then try clicking on one of the textfields.
-
Oct 25th, 2005, 09:42 AM
#10
Thread Starter
Lively Member
Re: window.open
Nah...
everything stays the same (except for the message that disappeared)
-
Oct 25th, 2005, 09:50 AM
#11
Re: window.open
1. Does it work in other browsers like FireFox and FireFox (and FireFox too)?
2. Is the page online somewhere where I can take a look?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|