PDA

Click to See Complete Forum and Search --> : ::dreamweaver help::


uncle carbunkle
06-18-2004, 05:12 PM
hey there cats & kittens,

building a site in dreamweaver. i've got a pop-up window (calm down, ryanhttp://www.graphicdesignforum.com/emoticons/smilewinkgrin.gif) but want to be able to specify no address bar and no buttons. i've neverdone this in dw before, so any advice would be greatly appreciated!

thanks!





greetings, earthlings. take me to your dealer.

06-18-2004, 05:41 PM
I don't know how use pop ups, but for you... I'm willing to learn. ;)

uncle carbunkle
06-18-2004, 05:50 PM
you see?!? aw, whatever. thanks benjo :)

so, hurry up, then! i'm waiting! haha.

greetings, earthlings. take me to your dealer.

Ryan8720
06-18-2004, 06:32 PM
Well, since you told me to calm down, I'll skip the rant.

<script type='text/javascript'>
function popUp(URL) {
id = myPopup;
eval('page' + id + ' = window.open(URL, '' + id + '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=100,height=100');');
}
</script>

<a href='javascript: popUp('myPage.html')'>open popup</a>

Notice that I've bolded one line. That line controls the attributes of the window. Right now everything is turned off. Just change the 0 to a 1 if you want it to have something.

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

Quick! There is time to waste, hurry up and wait!

06-18-2004, 06:34 PM
www.accessify.com/tutorials/the-perfect-pop-up.asp (http://www.accessify.com/tutorials/the-perfect-pop-up.asp)

Try this tutorial out. ;)

Ryan8720
06-18-2004, 06:43 PM
Or this one: www.alistapart.com/articles/popuplinks/ (http://www.alistapart.com/articles/popuplinks/)

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

Quick! There is time to waste, hurry up and wait!

uncle carbunkle
06-18-2004, 06:52 PM
thanks guys!

benjo: well done. that'll almost negate that whole 'married' lie...
ryan: thanks. i copied that code from an earlier post. it all makes sense to me, but i must be putting it in the wrong spot or somthing - doesn't work. let me try it again... i'll let you know.

and yes, i will be taking BOTH of those tutorials...(my last partner was a programmer - i didn't have to worry about this stuff!) damn...

greetings, earthlings. take me to your dealer.

uncle carbunkle
06-18-2004, 07:03 PM
nope. i'm doing something dumb. i know it's just a little thing...but i don't know what.

i've got a .gif that i want to click on, opening up an .htm page. scrollbars=yes. address, links, standard buttons=no. not necessarily a fixed size. i guess i'm muddling up because i started out using the 'hotspot' tool, but didn't know where to put the perameters for the popup window.

apart from a swift kick or a slap upside the head, what do i need to sort this simple, NAGGING problem?

greetings, earthlings. take me to your dealer.

06-18-2004, 07:10 PM
I want to be your partner! You think we can work somthing out?

<?php

$benjo = 'greatsex';
$uncle = 'lover';

$benjo ++ $uncle = 'TRUE';

echo '<p>Best possible experince you can have so think about it uncle<p>'

?>

uncle carbunkle
06-18-2004, 07:30 PM
oh man... code flirting? geez....

you're too funny!

greetings, earthlings. take me to your dealer.

Ryan8720
06-18-2004, 07:44 PM
The script part goes in the head of the HTML page. The link goes whereever you want the button to be. And it would be scrollbars=1 not scrollbars=yes.

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

Quick! There is time to waste, hurry up and wait!

axoi
06-18-2004, 07:46 PM
Guys,

The javascript page states that anything NOT explicitly included in the parameters is turned off. So you don't need to stated toolbar=0, scrollbars=0, etc. Only use the items that you want.

<script type='text/javascript'>
function popUp(URL) {
id = myPopup;
eval('page' + id + ' = window.open(URL, '' + id + '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=100,height=100');');
}
</script>

Uncle,

In order to use this code you need to have an anchor that activates it like so:

<a href='javacsript: popUp('url goes here');' >

- Bill

uncle carbunkle
06-18-2004, 07:55 PM
'kay. so, i'm an idiot.

here's a link to the page i'm talking about: http://www.hinkie.com/versatilt/www/contact.html

now, i want the user to be able to click EITHER the little map or the text below it and get the popup.

i hope you don't think it's too cheeky of me to ask for your help with this... i guess i just don't have a head for code. i understand the principles of everything...mostly...but i keep putting things in the wrong places i guess. i'm consistantly getting 'error on page'...i'm so darned close.

i'm still working on it now...but if you can see anything i'm doing blatantly wrong, i'd really love the advice. thanks so much.

greetings, earthlings. take me to your dealer.

Ryan8720
06-18-2004, 08:31 PM
Well, you didn't put in the code yet.

<!-- This goes in the <head> -->
<script type='text/javascript'>
function popUp(URL) {
id = myPopup;
eval('page' + id + ' = window.open(URL, '' + id + '', 'scrollbars=1,width=100,height=100');');
}
</script>

<a href='javascript: popUp('myPage.html')'><img src='graphics/mapthumb.gif' width='192' height='240' border='0'></a>

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

Quick! There is time to waste, hurry up and wait!

Ryan8720
06-18-2004, 08:32 PM
And get rid of the image maps.

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

Quick! There is time to waste, hurry up and wait!

uncle carbunkle
06-18-2004, 08:54 PM
thanks ryan. i know i didn't put the code in - i wanted you to see what i was working with.

i've put the code in now...i'm still doing something wrong though. i don't think the code's in the wrong spot, i just don't think i'm naming everything properly. hell, i don't think i'm naming ANYthing properly...


http://www.hinkie.com/versatilt/www/contact.html

greetings, earthlings. take me to your dealer.

Ryan8720
06-18-2004, 10:23 PM
You have the script in the wrong place.

<script type='text/javascript'>
function popUp(map.htm) {
id = myPopup;
eval('page' + id + ' = window.open(URL, '' + id + '', 'scrollbars=1,width=100,height=100');');
}
</script>

The above should go after </script> of the other JavaScript. Right now you have it inside.

Then take out the space between javascript: and popUp in the link.

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

Quick! There is time to waste, hurry up and wait!

uncle carbunkle
06-18-2004, 10:42 PM
d'oh! made the changes, uploaded the new file. same link, no result. i'm naming something wrong, or forgetting to name something. i just don't know what.

greetings, earthlings. take me to your dealer.

Ryan8720
06-18-2004, 11:21 PM
Weird. I don't know why it isn't working. So just delete the popup script from the head and replace the link in the body with

<a href='map.htm' onclick='window.open('map.htm','myPopup','scrollba rs=1,width=600,height=300');return false;'><img src='graphics/mapthumb.gif' width='192' height='240' border='0'></a>

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

Quick! There is time to waste, hurry up and wait!

Ryan8720
06-18-2004, 11:21 PM
That should really work, I tried it myself.

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

Quick! There is time to waste, hurry up and wait!

uncle carbunkle
06-18-2004, 11:35 PM
well, i'm back to having a new window again, but the width settings don't seem to matter. it's coming up full screen still. whaddya think?

greetings, earthlings. take me to your dealer.

Ryan8720
06-18-2004, 11:42 PM
I think you somehow managed to delete the quotes. lol

You have:

onclick='window.open('map.htm,myPopup,scrollbars=1 ,width=600,height=300');return false;

It should be:

onclick='window.open('map.htm','myPopup','scrollba rs=1,width=600,height=300');return false;'

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

Quick! There is time to waste, hurry up and wait!

uncle carbunkle
06-18-2004, 11:47 PM
*shakes head*

this is what i have on that whole line:
<td><a href='map.htm' onclick='window.open('map.htm','myPopup','scrollba rs=1,width=600,height=300');return false;'><img src='graphics/mapthumb.gif' width='192' height='240' border='0'></a></td>

i copied it straight from this thread, (cause i don't trust myself, either). and ^that^ was copied straight from dreamweaver.

*sobs*

greetings, earthlings. take me to your dealer.

Ryan8720
06-18-2004, 11:53 PM
It's a conspiracy.

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

Quick! There is time to waste, hurry up and wait!

uncle carbunkle
06-19-2004, 04:08 AM
so, that doesn't work then. thanks for your help anyways, ryan.

as yet, i still haven't solved it but will keep trying. if anyone has any brainstorms, please feel free to call me an idiot, then let me know!

razzafrazza, frickinfrackin, dumb ole code...why i oughta....!

greetings, earthlings. take me to your dealer.

Ryan8720
06-19-2004, 07:01 AM
That is so weird. When I view your source the quotes don't show up. I'm pretty sure that is what is screwing it up. Maybe it's DW.

You could try copying the page from DW and then pasting it in Notepad. Then save with a .htm extension and upload that. It's worth a shot I suppose.

http://edgewebdesign.org/ryan2.gif (http://www.edgewebdesign.org)

Quick! There is time to waste, hurry up and wait!

uncle carbunkle
06-19-2004, 05:11 PM
thanks ryan. believe it or not, i thought of that yesterday before i posted. i checked the source and there were quotes. i'll try again tomorrow....maybe magnus' imp will put them back in by then....DO YOU HEAR ME IN THERE, IMP?!? *taps monitor with pencil*

i think that's it. i'm also using a version of dw mx. maybe i'll try it again on my dw/utra dev that i have somewhere....maybe there's something buggy in my program....at this point, i can't rule anything out.

poop.

greetings, earthlings. take me to your dealer.

uncle carbunkle
06-21-2004, 08:51 PM
!!fyi!!

i did it in one step in dreamweaver/ultradev. don't know what the hell is up with mx.

thanks again for all your help, donuts.

greetings, earthlings. take me to your dealer.