 |
Javascript How-To Ask your "How do I do this with Javascript?" questions here. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

August 18th, 2004, 05:36 AM
|
Registered User
|
|
Join Date: Aug 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
loading pages with custom size, toolbars etc
I am a Photographer so the look of my site is the most importaint thing to me. I want my work to be viewed without all the browser rubish like toolbars etc and control the users navigation with my own links.
The problem I have is loading up the first page from outside links in the right size, no toolbars, scrolling etc. The pop up window method gets denied by most browser with anti pop up turned on. At the moment I have a page with a link on to load up the pop up which avoids that problem, but I want to lose the redirect page when it has done its job.
The other problem of course is when a search engine stores any other page and links into that, the presentation is buggered up cos I have no control.
Is there any way of using the presentation page to set its own size, tools etc when loaded up?
|

August 18th, 2004, 06:24 AM
|
Friend of Wrox
|
|
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You can use this function
function ak_forecolor()
{
var mycolor = showModalDialog(subdirectory + "insertcolors.html", "", "dialogHeight:230px; dialogWidth: 250px; scroll: no; status: no; help: no;");
myEditor.focus();
myEditor.document.execCommand('ForeColor', true, mycolor);
}
Numan
--------------------------------------------------
Love is the most precious thing of this world. So find and grab it!
|

August 18th, 2004, 10:32 AM
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
That is an IE only solution, and since "dunc" seems to be concerned about popup blockers, and IE doesn't have one, I assume he's also concerned about other browsers such as Firefox.
Snib
<><
|

August 18th, 2004, 01:56 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
|
|
IE 6 XP SP 2 has a popup blocker.
Most popup blockers only block popups called automatically, that is without the user having initiated it, hence why you can link to it. No way around it that I can think of, thanks to all the marketing scum that have abused popup windows and I say good riddens!
Regards,
Rich
--
[ http://www.smilingsouls.net]
[ http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
|

August 18th, 2004, 03:36 PM
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Yes, I didn't think of that. Opening a popup when you click on something is usually permitted AFAIK.
SP2 isn't out yet, and I didn't know when it would be.
Snib
<><
|

August 18th, 2004, 03:38 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
SP2 is out for people on "Microsoft lists", like MSDN subscribers.
I believe SP2 is about to become available for XP Home users through Windows Update any day now.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|

August 18th, 2004, 04:37 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
|
|
I've had SP 2 RC 2 installed for about a month. I updated to SP2 stable about a week or so ago.
http://www.microsoft.com/technet/pro.../winxpsp2.mspx
I'm using XP Home, but I got SP2 because I opted to participate in testing the beta, which I did mostly because I wanted to know if they had done anything to IE in terms of standards support. Of course, they didn't :-(. Still the same crappy browser, though albeit supposedly more secure. You can get SP2 through the above link, click the "Download and Deploy Service Pack 2 to Multiple Computers" link, whereas you can download the standalone SP2 installer. (if you're interested et all)
Regards,
Rich
--
[ http://www.smilingsouls.net]
[ http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
|
|
 |