Auto undock + auto close source

This is the place to submit any Mod/Plugin questions/bugs/requests.

Moderator: Pjirc Support Groupie

Auto undock + auto close source

Postby dotagious » Sun Aug 06, 2006 4:51 am

Is there a way to auto undock everything and then auto close the sources.

I just want one "floating window" for everything and eliminate the full page.
dotagious
 
Posts: 8
Joined: Sun Aug 06, 2006 4:28 am

Postby poohbear » Sun Aug 06, 2006 5:22 am

My suggestion is to just have a seperate page for the chat applet, and make it a pop up when it gets clicked on. That's what I did.
poohbear
 
Posts: 3
Joined: Sun Aug 06, 2006 4:11 am

Postby Jobe1986 » Sun Aug 06, 2006 12:13 pm

Id have to agree. If you want everything to be floating in one window then it's best if you achieve it using a javascript popup.

Code: Select all
<a href="javascript:void();" onclick="pjirc=window.open('URL', 'pjirc', 'width=640,height=400,toolbar=0,status=0,top=0,left=0');">Popup Link Text</a>


Hope that helps.
Image
User avatar
Jobe1986
 
Posts: 562
Joined: Mon Apr 10, 2006 4:56 pm

Postby dotagious » Sun Aug 06, 2006 4:08 pm

Jobe1986 wrote:Id have to agree. If you want everything to be floating in one window then it's best if you achieve it using a javascript popup.

Code: Select all
<a href="javascript:void();" onclick="pjirc=window.open('URL', 'pjirc', 'width=640,height=400,toolbar=0,status=0,top=0,left=0');">Popup Link Text</a>


Hope that helps.


I'm sure this is what I need, but where (file/directory) would I place this code?
dotagious
 
Posts: 8
Joined: Sun Aug 06, 2006 4:28 am

Postby Jobe1986 » Sun Aug 06, 2006 5:16 pm

Youd place it in the html file for whichever page you want the link to your chat to be displayed.
Image
User avatar
Jobe1986
 
Posts: 562
Joined: Mon Apr 10, 2006 4:56 pm

Postby dotagious » Sun Aug 06, 2006 6:07 pm

Jobe1986 wrote:Youd place it in the html file for whichever page you want the link to your chat to be displayed.


ok, so like the NormalApplet.html for example?

does it matter where within the file it is placed?
dotagious
 
Posts: 8
Joined: Sun Aug 06, 2006 4:28 am

Postby Jobe1986 » Sun Aug 06, 2006 6:11 pm

NormalApplet.html is a page that you for example put as the URL that that code opens. So you would for example put that code in your index.html file or whatever you main page is.

For example: You have 2 pages, Your main page and the chat page. Youd put the link in your main page and change the URL that the popup code opens to be the url or your chat page.
Image
User avatar
Jobe1986
 
Posts: 562
Joined: Mon Apr 10, 2006 4:56 pm

Postby dotagious » Sun Aug 06, 2006 8:07 pm

Jobe1986 wrote:NormalApplet.html is a page that you for example put as the URL that that code opens. So you would for example put that code in your index.html file or whatever you main page is.

For example: You have 2 pages, Your main page and the chat page. Youd put the link in your main page and change the URL that the popup code opens to be the url or your chat page.


ok, I understand. Thank you for the quick and helpful replies.
dotagious
 
Posts: 8
Joined: Sun Aug 06, 2006 4:28 am

Postby dotagious » Sun Aug 06, 2006 8:39 pm

....
Last edited by dotagious on Sun Aug 06, 2006 8:55 pm, edited 1 time in total.
dotagious
 
Posts: 8
Joined: Sun Aug 06, 2006 4:28 am

Postby Thema » Sun Aug 06, 2006 8:55 pm

This is a generic link with image.
Obviously if the image & page is on the same server as your calling page you can leave off the http://my.website.tld bits.
<a href=http://my.website.tld/page.html><img src=http://my.website.tld/button.gif></a>

8)
Go on.
Tell me I'm not nice again.
See what it gets you!
*******************************
Lost or confused?
Read the announcement topic in the
Technical Support forum for help tips.
*******************************
Thema
 
Posts: 2874
Joined: Sat Oct 18, 2003 5:34 pm

Postby dotagious » Sun Aug 06, 2006 9:21 pm

Thema wrote:This is a generic link with image.
Obviously if the image & page is on the same server as your calling page you can leave off the http://my.website.tld bits.
<a href=http://my.website.tld/page.html><img src=http://my.website.tld/button.gif></a>

8)


thanks :)

sent you a pm too
dotagious
 
Posts: 8
Joined: Sun Aug 06, 2006 4:28 am

Postby neggard » Mon Aug 07, 2006 1:55 am

How should I do?
I use Phpnuke and use block and module and want the chatt to open i a floating window.
neggard
 
Posts: 5
Joined: Sun Aug 06, 2006 10:29 pm

Postby dotagious » Mon Aug 07, 2006 4:23 am

Jobe1986 wrote:Id have to agree. If you want everything to be floating in one window then it's best if you achieve it using a javascript popup.

Code: Select all
<a href="javascript:void();" onclick="pjirc=window.open('URL', 'pjirc', 'width=640,height=400,toolbar=0,status=0,top=0,left=0');">Popup Link Text</a>


Hope that helps.


Jobe, is there a way to make this code execute automatically simply by visiting the specified URL without having to manually click on the hyperlink? The reason for this is because the website I need to put this code on does not allow java script.
dotagious
 
Posts: 8
Joined: Sun Aug 06, 2006 4:28 am

Postby dotagious » Mon Aug 07, 2006 5:31 am

someone mentioned using body unload, but I don't know where to put it in that lump of code.
dotagious
 
Posts: 8
Joined: Sun Aug 06, 2006 4:28 am

Postby Thema » Mon Aug 07, 2006 8:15 am

dotagious wrote:Jobe, is there a way to make this code execute automatically simply by visiting the specified URL without having to manually click on the hyperlink? The reason for this is because the website I need to put this code on does not allow java script.

There's a number of ways to make the jump to a new page automatic.
The Body tag is one of them:
Code: Select all
<body onload="">
The meta tag in the head block is another.
Code: Select all
<meta http-equiv="refresh" content="0; URL=http://my.website.tld/chat.html">


Forcing a new page can be acheived using the Target option in a hyperlink.
Code: Select all
<a href=http://my.website.tld/page.html target="_new"><img src=http://my.website.tld/button.gif></a>


This is now way off topic for this forum. So I'm moving it to the Mods forum.
I actually don't understand how a website can prevent you from using JavaScript since it's a client-side technology and has nothing to do with the service provider. If it's one of those sites that uses a Java page builder then you're probably on a hiding to nothing with this, and will need to change providers.
In any event it's clear to me that you need to learn far too much about web design for us to be able to help you any further. I suggest that you either go and read some stuff, or take a course. Meanwhile look to having a friend build your chat page for you.

8)
Go on.
Tell me I'm not nice again.
See what it gets you!
*******************************
Lost or confused?
Read the announcement topic in the
Technical Support forum for help tips.
*******************************
Thema
 
Posts: 2874
Joined: Sat Oct 18, 2003 5:34 pm


Return to Miscellaneous

Who is online

Users browsing this forum: No registered users and 1 guest

cron