Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 javascript popup creator
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

jrbp
New Member

USA
63 Posts

Posted - 12 September 2003 :  22:30:12  Show Profile  Visit jrbp's Homepage  Send jrbp an AOL message
I am trying to make a popup creator using javascript but i can't seem to get it to work. I have asked a couple of people but they arn't good with javascript. i was wondering if anyone can tell me what is wrong with it. thank you.

Forgot to post the url:
Jr.marlintinicharters.com/popupmaker.html

Josh Roy


Midtown Madness 2 Department of Motor Vehicals
My Forum

Edited by - jrbp on 13 September 2003 08:38:58

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 12 September 2003 :  23:37:01  Show Profile
unless you give us the code you are using, no one will be able to tell you what is wrong.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 12 September 2003 :  23:38:31  Show Profile  Visit dayve's Homepage
you might want to post the source code of the one you are having problems with. I also strongly recommend using a popup window that auto-centers. you can download one here and it is super easy to configure:

http://www.dynamicdrive.com/dynamicindex8/autocenter.htm

Go to Top of Page

Jeepaholic
Average Member

USA
697 Posts

Posted - 13 September 2003 :  01:59:13  Show Profile  Visit Jeepaholic's Homepage
Plenty of info here:
http://developer.irt.org/script/window.htm

Al Bsharah
Aholics.com

Jeepaholics Anonymous
Broncoholics Anonymous
Network Insight
Go to Top of Page

jrbp
New Member

USA
63 Posts

Posted - 13 September 2003 :  08:34:53  Show Profile  Visit jrbp's Homepage  Send jrbp an AOL message
oh im sorry i thought i posted the url, its
jr.marlintinicharters.com/popupmaker.html

Its a simple page that allows users to put in the dimensions, the url and some other things that they want and it will make the code for the popup.

Thanks

Josh Roy


Midtown Madness 2 Department of Motor Vehicals
My Forum

Edited by - jrbp on 13 September 2003 08:37:52
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 13 September 2003 :  08:40:53  Show Profile
well, the first problem is that you have this line of javascript:

document.write("<pre>Place this where you want the link to be on your web page:

you haven't ended the line. You need a " and a ;

and then the next line is html inside a script tag. you'll get an error on that too. i assume you meant to make it:

document.write("your line goes here");

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~

Edited by - Nikkol on 13 September 2003 08:42:42
Go to Top of Page

jrbp
New Member

USA
63 Posts

Posted - 13 September 2003 :  09:03:38  Show Profile  Visit jrbp's Homepage  Send jrbp an AOL message
i don't understand the last part there could you clarify please?

Thanks for the info, ill try the suggestions.

Josh Roy


Midtown Madness 2 Department of Motor Vehicals
My Forum
Go to Top of Page

jrbp
New Member

USA
63 Posts

Posted - 13 September 2003 :  09:48:03  Show Profile  Visit jrbp's Homepage  Send jrbp an AOL message
i tryed the suggestions but they didn't work.

Any more information would be greatly appreciated.

Thanks, Josh

Josh Roy


Midtown Madness 2 Department of Motor Vehicals
My Forum
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 13 September 2003 :  10:17:52  Show Profile
This is your code. The parts in red are parts that will generate errors due to incorrect syntax. In addition, in the lines that you are trying to write, you have several places where you aren't delimiting double quotes correctly and some missing double quotes as well. Also, I don't think you can write to the page like that after the pages has already been generated. Instead, you could consider writing the value inside a textarea.
<script language="javascript">
Function popup() ;
// Created By Josh Roy JR Business Publications http://jr.marlintinicharters.com
// (c) 2003 JR Business Publications

popname = document.popup.popname.value ;
length = document.popup.length.value ;
width = document.popup.width.value ;
url = document.popup.url.value ;
linkname = document.popup.linkname.value ;
{
document.write("<pre>Place this where you want the link to be on your web page:
<a href=" + url + " onclick="NewWin=window.open('" + url + "','" + popname + "','toolbar=no','status=no','width=" + width + "','height=" + height + "')"> + linkname + </a></pre>")
}
</script>

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

jrbp
New Member

USA
63 Posts

Posted - 13 September 2003 :  10:23:14  Show Profile  Visit jrbp's Homepage  Send jrbp an AOL message
how do i write inside a <textarea> ? I tried but i couldn't figure it out.

Thanks, Josh

Josh Roy


Midtown Madness 2 Department of Motor Vehicals
My Forum
Go to Top of Page

jrbp
New Member

USA
63 Posts

Posted - 13 September 2003 :  10:25:27  Show Profile  Visit jrbp's Homepage  Send jrbp an AOL message
I think i may have figured it out, do i put the whole script inside <textarea></textarea> ?

Josh Roy


Midtown Madness 2 Department of Motor Vehicals
My Forum
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 13 September 2003 :  10:28:38  Show Profile
YOUR script (the one that writes the code for a popup) can go anywhere on the page.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

jrbp
New Member

USA
63 Posts

Posted - 13 September 2003 :  10:40:44  Show Profile  Visit jrbp's Homepage  Send jrbp an AOL message
ok, but how do i write inside <textarea></textarea> ?

Josh Roy


Midtown Madness 2 Department of Motor Vehicals
My Forum
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 13 September 2003 :  13:23:04  Show Profile  Visit dayve's Homepage
quote:
Originally posted by Nikkol

YOUR script (the one that writes the code for a popup) can go anywhere on the page.



well, not anywhere... he's trying to put it between the <textarea> tags and have it execute, which it will not do this way.

I'm a tad bit confused as to the purpose of this project. What are you trying to accomplish Josh?

Go to Top of Page

jrbp
New Member

USA
63 Posts

Posted - 13 September 2003 :  13:53:42  Show Profile  Visit jrbp's Homepage  Send jrbp an AOL message
I am trying to make a popup creator for my users but i can't get it to work, all i know is java script. I have the popup creator made but it wont work i am asking you guys if you can tell me why, Nikkol is the biggest help so far, i have gotten alot of info from him/her.

The url again is jr.marlintinicharters.com/popupmaker.html

I was just wondering if someone could give the answer to my problem.

Does this clarify the task i have?

Thank you, Josh

Josh Roy


Midtown Madness 2 Department of Motor Vehicals
My Forum
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 13 September 2003 :  15:36:38  Show Profile  Visit dayve's Homepage
so you're trying to do something like this:

http://www.frigginawesome.com/promotion/tools/popupgenerator.htm

or this:

http://tools.kosteffective.com/popupwindow.html

or this:

http://www.thepcmanwebsite.com/popup_window.shtml

or this:

http://www.bestfx.com/webmaster_tools/interface_design/popup_Coder.php

just view the source of these pages and "borrow" the concept.


Edited by - dayve on 13 September 2003 15:37:58
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07