IE7 window.open and resizeby problem
I have a JavaScript function that I use to open up an image in a popup
window when someone clicks on an image. It works fine in IE6 but in IE7 when
I try to do a resizeBy to resize the window due to the scrollbar height the
image does not come up sometimes. Does anyone know how to fix this?
I've included my function. below.
Thanks,
Mike
function DisplayImage(image, width, height, title, date)
{
var newWin;
var winName;
var title2 = unescape(title);
var newTitle = title2;
var newDate;
var ieVersion = GetInternetExplorerVersion();
html = "";
title2 = "some code remove here";
html += "<html>" + endl;
html += "<head>" + endl;
html += "<title>" + newTitle + ": " + newDate + "</title>" + endl;
html += "</head>" + endl;
html += "<script>" + endl;
html += "function PlaySound(url) {html += document.all.sound.src =
url;}";
html += "</script>" + endl;
html += "<body bgcolor='#FFFFFF' topmargin='0' leftmargin='0' " +
"marginheight='0' marginwidth='0'>" + endl;
html += "<p align='center'>" + endl;
html += "<a href='javascript:window.close()'>" +
"<img src='" + imageDir + "/" + image + "' width='" + width +
"' height='" + height + "' alt='' " +
"title='Click to Close Window' border='0'></a>" + endl;
html += "</p>" + endl;
html += "<font face='Arial'>" + endl;
html += "<p align='center'><b>" + title2 + "</b><br>" + endl;
html += date + "</p><p></p>" + endl;
html += "</font>" + endl;
html += "</body>" + endl;
html += "</html>";
newWin = window.open("", "photoWindow", //winName,
"width=" + width +
",height=" + height +
",menubar=yes" +
",resizable=yes" +
",scrollbars=yes",
true);
// resize window only for Microsoft Internet Explorer
if(navigator.appName == "Microsoft Internet Explorer")
{
// ???? PROBLEMS HERE IN IE7 ?????
if((ieVersion >= 4) && (ieVersion <= 6))
{
// I don't know why this needs to be done
newWin.document.writeln("<html><body></body></html>");
// do the resize
newWin.resizeBy(width - newWin.document.body.clientWidth,
height - newWin.document.body.clientHeight);
}
}
newWin.document.writeln(html);
newWin.document.close();
newWin.focus();
} Tag: Forms with FP 2003 Tag: 73098
FP Site Help
I have a web site that i use FP with and on the navation bar i have 2 top
level pages. I would k=like to create 2 sites under the same domain name. is
there a was to stop having to type the .htm with the second page as the main
will do it because it is defalt. i would like to be able to give the web site
as www.whatevery.com/fire. or if some one would tell me how to get it to do
www.wahtevery.fire.com would be great Tag: Forms with FP 2003 Tag: 73094
Problems with photogallery - FP extension 2003
Hello,
I have a web site that uses frontpage extensions 2003. When I add a
photogallery it seems to work fine from within frontpage. However when I
publish my site (to a web site on my local system or to a remote web site)
all I get when I go to the photogallery page is a single line of text giving
the url to real.htm.
[/photogallery/photo00021505/real.htm]
Anyone have any ideas on what the problem could be?
Thanks,
Bill Tag: Forms with FP 2003 Tag: 73093
Active Directory and Front Page Connection?
My basic question is regarding how to create a connection between Active
Directory and FrontPage.
I'm trying to create a phone list/team roster/employee directory for our
company's intranet site. I want this list to be automatically updated from
Active Directory, so that any changes in Active Directory (department change,
phone number change, termination, etc) will be reflected in this 'team
roster'. Thus far I've been completely unsuccessful in accomplishing this.
One way I think it might be possible to create an automatically-updating
team roster is to create a webpart that pulls the appropriate data from
Active Directory and then displays it in a list. I'm running Sharepoint
Portal Server 2003 and Frontpage 2003 -- I'm thinking that if I add a
database connection to Active Directory in the Data Source Catalog in
Frontpage, I might be able to create such a webpart.
The way I've been trying to do this is by opening Frontpage, clicking
"Data>Insert Data View", then in the Data Source Catalog/Select A Data
Source, under Database Connections, selecting "Add to Catalog". I run into
trouble when I try to "Configure Database Connection", as I can't get an
custom OLEDB connection string to work at all -- I only receive errors such
as "Server Error: An error occurred..." etc. Do you know how to create a
connection between Active Directory and Frontpage? Or, is this even possible?
Here are a couple of the connection strings Iâ??ve tried to no avail:
Provider=ADSDSOObject;User
ID=myID;Password=myPassword;<LDAP://DC="private,DC=myCompany,DC=com">;(&(objectCategory=Person)(objectClass=User)(sn=*)))); subtree;
and also
Provider=ADSDSOObject;User ID=myID;Password=myPassword;<LDAP://servername/>;
THANKS so much for your help. Tag: Forms with FP 2003 Tag: 73091
protecting images on the web
I run windows XP Pro and Office 02 XP. On my web site for hobby photography
I'm trying to protect my images. I have figured out the code to stop right
clicking. The problem I have is this- The right click protection only works
on my thumbnails. If you click the thumbnail to enlarge the image you're
then able to right click and save the enlarged image. What is the code to
protect the image after it's been clicked on, and does it go in the header
too?
Here's a link to one of my page if you want to see what I mean.
http://www.just4funphotos.com/Craig%20Morgan.htm
Thanks,
Dennis Tag: Forms with FP 2003 Tag: 73084
Another Registration qustion
Can I use FP to have a password sent to the responders email
address. I would like to
verify the email address. I see some sites are set up to do
that. Do I have to do
coding? or are the templates already there?
Izod Tag: Forms with FP 2003 Tag: 73077
How to capture page title
Here is my problem. I would like to add a button on a web page that will do
two things. First capture the page title Second open a form and paste (or
fill in the captured data to one of the fields. New to front page please
provide as much detail as possible.. Thank you in advance for your help or
suggestions
FrontPage 2003
--
Terry Tag: Forms with FP 2003 Tag: 73072
Hide text and entry fields under certain conditions
I wish to use the same page for several tasks. When I go to the page, how
can I hide text and fields under certain conditions (i.e., hide if
session("switch") = 1 and show if session("switch") <> 1? There are times
that some instructions and entry fields are not needed. This is determined
by the page preceeding this one (i.e. under conditions I know about before i
get to that page).
For security sake, we will provide you with a folder to hold any files you
create from our data and programs you wish to write.
Enter Folder Name in text box ï?µ (Less than 11 characters) Tag: Forms with FP 2003 Tag: 73070
Saving results from a Form to a database
We created a page with a number of the standard fields on it - User Name,
Password, Full Name, etc...
In the form properties we picked Send to Database. The database was created
with a results table. All the fields seem to be mapped correctly but when we
try the page out nothing ever gets written to the table.
Is there another option or permission that needs to be set? We don't seem to
be getting any errors.
Thanks for any help,
Joe Tag: Forms with FP 2003 Tag: 73059
Database Result table.
I am using FP2003. I am generating a Database result with the categories in
a 3x4 table and in a single column list. How can I make that list generate
in a 2 column list?
IE.
1 2
3 4
5 6.
Thanks in advance. Tag: Forms with FP 2003 Tag: 73058
Registration Form
If I'm requiring a person to register before allowing them
into the Secured SubSite, how do I get them to register. Is
that a step in of itself? For example. If I link directly
to a secured page, and they have not previously registered,
will it then automatically open the "Form" ? Or is that a
separate step. Have them Register "Link to the Form and
register" before they link to the secured page?
I am a little confused here.
Izod Tag: Forms with FP 2003 Tag: 73050
Drop-down boxes
I would like to have my form retain not only the value of the selection but
also the selection is self.
Using "Loc_Code =
document.all.Loc.options[document.all.Loc.selectedIndex].value" I get the
selection. How do I get the selected?
Example:
<select DataValueField size="1" name="Loc">
<option value="ALB_HPD">Albany, Georgia USA</option>
<option value="TEX_ADM">Texarkana, Arkansas USA</option>
<option value="TUP_HPD">Tupelo, Mississippi USA</option>
</Select>
<input Type="text" name="Loc_Code">
I would like form field "Loc" to display "Albany, Georgia USA" and form
field "Loc_Code" to display "ALB_HPD. Tag: Forms with FP 2003 Tag: 73049
Multiple Users
I have a DRW application where I would like to allow multiple authorized
users to edit their info, but I only want them to have access to their own
info.
Can I have multiple logins using DRW?
Thanks
John P. Tag: Forms with FP 2003 Tag: 73045
Swaping link and text
Hi
I have a floating div script but need a link to show and hide it on
our site. At present i can use the two links below
<p><a href="javascript:showMe();">Show mini basket</a>
<p><a href="javascript:hideMe();">Hide mini basket</a>
But it would be nice to have them combined in to one link that changes
properties and text on click. My Java/CSS is not great but any help
would be very much appreciated.
Simon B Tag: Forms with FP 2003 Tag: 73044
Editing gallery?
Hello.
I'm hoping for help from this Forum, as this problem really puzzles
me.
I have had problems with editing the galleries I have on my website.
The error came after my Frontpagefiles got messed up. (Probably my
error) So I decided to download the entire site from the server and
save it locally instead of the messed up files. Since then, the
galleries in Frontpage, turned into a lot of frames with text and
pictures. But not the usual guide for galleries in Frontpage.
I can create new galleries, but it is a good deal of work to make my
galleries again.
Thanks very much up front for any help from here.
Regards
Lars Christensen Lars
www.larchris.dk Tag: Forms with FP 2003 Tag: 73041
CALLING OR RUNNING A DOS PROGRAM FROM A WEBSITE
I need to run a mission critical dos program from a website for others to
use. I can run the program no problem on the server, but the client gets the
following error:
"Invalid startup directory, please check your PIF file"
thanks for your help! Tag: Forms with FP 2003 Tag: 73036
Dumb Question #2
I am a beginner and I am developing a webpage but the site does not display
correctly on all monitors. On wide monitors (the site was developed on wide
LCD monitors and the site looks fine if the visitor is using a wide screen.
If the user is not using a wide screen, then the right portion of the screen
is truncated. I suppose there is some method of ascertaining if the visitor
is using a wide screen or not and make resolution changes accordingly.
Can anyone help me?
Thanks in advance,
Jim Tag: Forms with FP 2003 Tag: 73034
Dumb Question
I am using Front Page 2003. The default behavior when some one click on a
link is to change the color of the link from Blue to Purple which is OK most
of the time. However, I wish to leave the color of the links as Blue even
AFTER the user has clicked on the link. How can I have the color stay blue?
Thanks in advance,
Jim Tag: Forms with FP 2003 Tag: 73033
Permission on Sub_Web
I am trying to use the registration template. So I set up a
SubWeb requiring registration with permissions.
Now, I would like to link direct to a page inside the subweb
from the root web and require the viewer to register if they
haven't already done so. When I link direct it by passes
the registration requirement. Do I have to work around
that or am I doing something wrong???
Izod
-- Tag: Forms with FP 2003 Tag: 73026
Navigate back to root index?
From the root index I link to a sub_site folder to allow the
view to view the video.
I want to allow them to cancel and go back to the root
index.
When I link to it, it simple opens up another index page.
Now I have to open. I simply
want to give them a chance to cancel or return to the root
index.
How do I do that? I don't want them to use the "X". I want
to guide them.
--
Izod Tag: Forms with FP 2003 Tag: 73014
Can I use Button-form to move to an another page on my pages?
Hi,
I'm trying to create a simple form to index-page mostly to seem as you have
to know the password in order to get to my pages, including text box as
password field and Log In-button to move to next page.
I have validated the text box field that it has to be equal to "password",
and Log in button like it was a hyperlink to next page. I cannot manage to
get the hyperlink work even if there was only this button (without text box)
and by clicking it you'd get to next page. Now I'm wondering if it's even
possible to use buttons like this, like hyperlinks? And would it be possible
to make this kind of "password field" work?
Regars,
Satu U. Tag: Forms with FP 2003 Tag: 73010
Making calculations in web page
Is there any way to perform calculations on a web page using forms and text
boxes for the viewer to enter information. Then having the answer appear
within the same form. Not knowing VB or javascript, I was looking for a way
to do this right on FP.
Any help or suggestions would be greatly appreciated! Tag: Forms with FP 2003 Tag: 73005
My pages are too slow
Hi,
I have managed to create my first website with FrontPage 2003. It contains
pictures and inl ine frames. All my images are less than ....... I noticed
that my pages were very slow. In the reports section I noticed that quite a
few pages were listed as slow. How can I improve this? is there a function in
FP2003 that I should be using?
You can check ik out: http://www.bestofyourself.com/zkIntro.htm
Really appreciate your help!
--
Thanks from a newbe,
Dutchie Tag: Forms with FP 2003 Tag: 73004
session variable in url
hello.
what is the sintaxe for writing a session variable in the list of link
parameters.
I use :
<a
href="results_mes.asp?cod_casa=<%session("codcasa")%>&nm_mes=<%session("nmmes")%>">seleccionar
outro periodo</a>
and doesnt work
why?
thanks Tag: Forms with FP 2003 Tag: 73001
Active X for wmv is missing
I have a vista operating system and just got Frontpage 2003
on it. When I try to stream
wmv files there is no active x for windows media. How do I
get that on this vista machine?
Izod Tag: Forms with FP 2003 Tag: 72996
session variable in dbr
hi.
I need to use session variables in database results, how can i do that?
DBRW seems to filter based in form fields only.
thanks. Tag: Forms with FP 2003 Tag: 72995
using vbscript
looking for assist in using vbscript within the html code. Simply trying to
make a pic visible or not based on a date.
If, then, else.
David Tag: Forms with FP 2003 Tag: 72990
Front Page Animation Timing
I can't find a way to adjust the timing of animation on Front Page the way I
can on Power Point. The DHTML Effects do not have a speed choice. Does
anyone know of another way to control the speed?
Many thanks
--
Xan Tag: Forms with FP 2003 Tag: 72988
Which Application?
Hi groups. First time I've cross posted so please forgive me if I don't get
it right.
We are in the "thinking about it" stage of developing a web based training
program.
The program will include testing, ability to email instructor, print
certificate of completion, record keeping and probably other stuff we
haven't considered yet.
At this point I am just asking for opinions and thoughts as to which program
might better serve our needs. Microsoft PowerPoint of Microsoft Frontpage.
Or perhaps some other program.
As always any thoughts, suggestions or comments are welcome.
Best regards
Mike Tag: Forms with FP 2003 Tag: 72983
Really stupid question
I hope this doesn't come off as too stupid, because I've been working with
tables for a while..BUT..Why is it that when I view some websites ( I've got
an extremely slow dial-up connection ) the site slowly comes in one cell at
a time, to reveal one large picture. Has the site actually been designed
using a large picture that's been cut into these perfectly sized images? I
don't do HTML programming, just bastardize the code that I need changed, so
I can't look at the source code to figure this stuff out. I feel like I've
completely missed a step in the self-education process here..Please, forgive
my stupidity...I think you guys are brilliant :-) Tag: Forms with FP 2003 Tag: 72976
photo gallery slide show scrolls in preview, not in browser
I created two photo galleries with 12 and about 30 images. In slide show
layout they show scrolling properties in preview. In a browser they do not
show scrolling properties but the thumbnails extend across the whole length
of the page. Help. Instructions tell me that they should scroll.
--
Donald R. Strombeck Tag: Forms with FP 2003 Tag: 72970
Plugin for Shopping Cart
Is there are plugin available for FrontPage to create Shopping Carts
(complete with Payment Gateway) through FrontPage? If not, can it be created?
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/office/community/en-us/default.mspx?mid=347a3ccb-b94d-4b88-9093-60e8132d654d&dg=microsoft.public.frontpage.programming Tag: Forms with FP 2003 Tag: 72968
ASP Pages not working
I have written a website in frontpage that has been working for me for some
time. It uses a SQL database and allows me to update the fields and what
have you thru the website. I have recently released this website to others
in our office and they are able to browse the website but when they click
submit the records are not added to the database.
I have checked all of the permission things I can think of, the directory is
set for integrated window authentication, and the anonymous access is turned
off. I made sure the user has permissions in the frontpage extentions.
What am I missing? Can anyone help? Tag: Forms with FP 2003 Tag: 72960
Browser spacing with IE is different that FP build preview
PLEASE, I will send CASH, okay, check maybe, to anyone who can solve my
problem. I have spent months building a site in FP 2003 using the layout
tables, but when I upload it to my server, the carefully done layouts are all
vastly different. If you look at a page on my site, for example,
http://www.helloboquete.com/index-5.html, you will see large areas of blank
space, none of which are in my design. I have looked at every single line of
code and cannot figure out why it is all different on my server. HELP!!! We
want to launch the site next week if at all possible.
I will put you in my will! Okay, that might not be a good thing for you. Too
many bills. Tag: Forms with FP 2003 Tag: 72959
Trial product key code for office on line
You ask for the product code for the trial periord several times.
Where is it> Why is it not clearly in veiw? Tag: Forms with FP 2003 Tag: 72954
Trouble With SQL Code
Trying to add a record to a database. FP will not accept the follow as the
query.
INSERT INTO Disbursements ( GranteeNum )
VALUES ( '::GranteeNum::' )
It will accept the query with percent signs (see below), but the page will
not work. FP re-write the query with :: replacing %% and reports errors in
the query the next time I try and edit in the DRW. Any suggestions would be
appreciated. Thanks.
INSERT INTO Disbursements ( GranteeNum )
VALUES ( '%%GranteeNum%%' ) Tag: Forms with FP 2003 Tag: 72953
Web pages attached to logins and passwords?
How do I attach certain web-pages to logins? I have searched and searched
and noone seems to know. Can anybody help me on this? Tag: Forms with FP 2003 Tag: 72949
Can I reduce the number of thumbnails above photo gallery slidesho
Can I reduce the number of thumbnails above photo gallery slideshow?
Or is there a way to change the width of the entire gallery...?
I've changed the image sizes to fit my page but the 7 thumbnails that show
up at the top run out over the edge. Tag: Forms with FP 2003 Tag: 72946
Update image at regular intervals
Hi --
I'm sure this is a FAQ, but I'm not seeming to hit the write google words. What's
"the simple way" to update an image, without refreshing the entire page, at regular
intervals? Just a little javascript, I would presume?
Thanks... Karl
--
.NET: It's About Trust!
http://vfred.mvps.org Tag: Forms with FP 2003 Tag: 72940
Checking if element is visible
I have some elements inside a scrolling div (overflow: scroll). How do I
check w/javascript whether an element is visible in the viewport, or hidden
by the parent's scroll position?
Thanks! Tag: Forms with FP 2003 Tag: 72938
Seeking Code Help
Trying to write code in database results wizard as follows:
Update Grantees
Set Email = '::Email::'
Where ID = '::ID::'
This query verifies. When trying to give the option of choosing other data
to update on same page can't get code correct:
Update Grantees
Set Email = '::Email::' ,Phone = '::Phone::'
Where ID = '::ID::'
How do I write multple "SET"s? Tag: Forms with FP 2003 Tag: 72937