RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 8639 | Replies: 21
Reply
Join Date: Jun 2004
Posts: 3
Reputation: Johnrandazzo is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Johnrandazzo Johnrandazzo is offline Offline
Newbie Poster

Help with .js JAVASCRIPT file!!!!!?!!?!?

  #1  
Jun 13th, 2004
Hi all,

My page utilizes a few javascript files for my navigation bar and also a few other palces... My problems is this - I want to call to a page within the site as in the script below, but I wish it to be a separate WINDOW al-together. If I do what I have written now and the person hit;s the close button on the page I call to it closes the whole window - thus leaving my web page....

HELP!!!!

here's the script I need altered to have it open up a window on it's own.

document.write('</td></tr><tr></form><form><td>');
document.write('<input value="View Titles Slideshow" onClick="parent.location=\'slideshow.htm\'" onmouseover="this.className=\'buttonon\'" onmouseout="this.className=\'button\'" class="button" type="button"><br>');

THANKS SO MUCH!! :lol:
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2002
Location: Long Island, NY
Posts: 1,134
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Rep Power: 12
Solved Threads: 4
Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: Help with .js JAVASCRIPT file!!!!!?!!?!?

  #2  
Jun 13th, 2004
Are you just trying to open up a new window when something is pressed? Why not try the TARGET="_BLANK" method (insert this in your "A HREF" tag)?

Or the following method:

 
<script language="javascript">
<!--
 
function popupNewWindow(page) { 
window.open(page, "AddTask", "width=570,height=560,location=no,scrollbars=yes,menubars=yes");
}
 
-->
</script>
 
<a href="javascript:popupNewWindow('somepage.htm')">Click insert new</a>

Not sure if this is what you want.
Last edited by samaru : Jun 13th, 2004 at 11:26 pm.
_.:: my websites ::._
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,032
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 117
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: Help with .js JAVASCRIPT file!!!!!?!!?!?

  #3  
Jun 13th, 2004
I think Dan means target="_blank" and not alt=
Dani the Computer Science Gal
Reply With Quote  
Join Date: Feb 2002
Location: Long Island, NY
Posts: 1,134
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Rep Power: 12
Solved Threads: 4
Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: Help with .js JAVASCRIPT file!!!!!?!!?!?

  #4  
Jun 13th, 2004
Yes! Sorry for the f-up. Also, Dani, is there something you can do about the horrible parsing job the code tags do? It's putting unnecessary spacing between code. Look at the code I posted before, where it says "NewWindow" - there's a spacing there.
_.:: my websites ::._
blog @ www.samaru.net * engi No Jutsu @ www.narutorp.net * portfolio @ shinylight.com
deviantART: inscissor
Reply With Quote  
Join Date: Jan 2005
Location: Slovenia
Posts: 32
Reputation: pajac is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
pajac's Avatar
pajac pajac is offline Offline
Light Poster

Re: Help with .js JAVASCRIPT file!!!!!?!!?!?

  #5  
Jan 23rd, 2005
Ok, I dont wont to open another thread I'll ask here.
I have some stupid problem with reference to window.location!!! :-|

If 2 files bla.htm & bla.js(linked to first one ofcourse).

I wont to write a function witch loads another site when u press the onsubmit button. Im using window.location="mail.htm" in bla.js file but no results!!
So I have to make some kind of reference, but I dont know how, please help!
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 108
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: Help with .js JAVASCRIPT file!!!!!?!!?!?

  #6  
Jan 23rd, 2005
top.window.location="mail.html";

no?
Reply With Quote  
Join Date: Jan 2005
Location: Slovenia
Posts: 32
Reputation: pajac is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
pajac's Avatar
pajac pajac is offline Offline
Light Poster

Re: Help with .js JAVASCRIPT file!!!!!?!!?!?

  #7  
Jan 23rd, 2005
Originally Posted by Comatose
top.window.location="mail.html";

no?

Not working.
In bla.htm I have this submit button in form with user name & password I if they have the write one they are redirected to other site.If u know what I meen?
But I cant make a redirection in bla.js file. If I put the script in bla.htm file it works, but I dont wont to to this.
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 108
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: Help with .js JAVASCRIPT file!!!!!?!!?!?

  #8  
Jan 23rd, 2005
Does other javascript code work in the external file, within the page. (for example, have you tried making a function in the .js file, with nothing more than say, an alert with a message of test, and tried calling it with the page, just to see if the page is importing the external file?)
Reply With Quote  
Join Date: Jan 2005
Location: Slovenia
Posts: 32
Reputation: pajac is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
pajac's Avatar
pajac pajac is offline Offline
Light Poster

Re: Help with .js JAVASCRIPT file!!!!!?!!?!?

  #9  
Jan 23rd, 2005
Jes it's working just fine. :rolleyes:
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 108
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: Help with .js JAVASCRIPT file!!!!!?!!?!?

  #10  
Jan 23rd, 2005
Sometimes God's Power is all it takes
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:27 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC