Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 how to use javacall to set window size

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
ukcorniel Posted - 12 Aug 2005 : 13:33:00


hi there

really enjoying using Dynamic HTML Editor ..... can anyone give me some coding so i can use the javacall function in the events section to open a link in a new window of a set size?

that would be great!

cheers,

ukcorniel
8   L A T E S T    R E P L I E S    (Newest First)
Edigital Posted - 28 Aug 2005 : 14:58:27
Hi!,

I just downloaded the file TEST.Dynamic HTML Editor. And i think i found the problem!

1. You have to put this code (note: exactly code)
<SCRIPT LANGUAGE=javascript>
<!--

function myWin(url)
{
window.open (url, "poll", "width=400,height=200,scrollbars=yes,resizable=yes,menubar=yes,status=yes,titlebar=yes,toolbar=yes");
}

//-->
</SCRIPT>
in the header section

DON'T REPLACE the word "url"! You've changed 'http.....' so, the javacall wont work! in that way..

And also for the line window.open (...url ) don't replace url because Java will do it for you..

That's all.

I've tested and work fine!

Regards

Nestor

P.D : In order to see the function working you must export your page. (F12)
jtarin Posted - 28 Aug 2005 : 04:35:45
Se if this helps with your problem....(scroll down)
http://www.yourhtmlsource.com/javascript/popupwindows.html
ukcorniel Posted - 23 Aug 2005 : 21:51:56
CAN ANYONE HELP WITH THE ABOVE??
ukcorniel Posted - 16 Aug 2005 : 09:28:48
thanks for your quick reply.....gave it a try and i'm really sorry but it just doesn't want to play the trick when i do it

i've done everything you said but it didn't work. I have saved what I've done in this file http://www.hottest-host.com/ukcorniel/test.dhe

maybe - if you have a spare minute - you could see what is wrong with it...

thanks a lot once again and sorry to be a pain!!

corniel

s.dav Posted - 16 Aug 2005 : 08:43:18
quote:
Originally posted by s.dav

In the SCRIPT/EVENTS setting of your page properties click the button "Header Code" and paste the code above.

The create an event "OnClick "and in the "JavaCall" field put myWin('http://www.mysite.com')

The code to resize a window based on a picture is very simple but varies from browser to browser...
You should go to HTML site ans search for pre-made script for that.
I remember also that TUCOWS.COM has a such thing when showing the preview of programs. You should see the code of this site by opening a preview and viewing the HTML code of the preview window.

s.dav Posted - 16 Aug 2005 : 08:42:38
In the SCRIPT/EVENTS setting of your page properties click the button "Header Code" and paste the code above.

The create an event "OnClick "and in the "JavaCall" field put myWin('http://www.mysite.com')

The code to resize a window based on a picture is very simple but varies from browser to browser...
You should go to HTML site ans search for pre-made script for that.
I remember also that TUCOWS.COM has a such thing when showing the preview of programs.
ukcorniel Posted - 16 Aug 2005 : 01:49:56
thanks for your response.....and sorry to bother you again....there's something not clear to me

i want to use this to have a link on my page open up in a new window (for example a picture) but to make it look better i want to window to fit the picture and not just have lots of empty window space all around it.....

what do i have to do to get this....... do i put the code you provided in the head html code? if so what do i put in for the JavaCall in the events section of my link....

sorry....i'm just not very good at Java at all..... all i know is that you define a function at the top of the page and then when you want to use it you refer to it with the appropriate link ..... so to make things clear:

can you tell me what to put as the head html code and then what to put as de individual JavaCall's for the different links?

thanks a lot for your help and sorry to bother again!

corniel
s.dav Posted - 13 Aug 2005 : 11:30:04
Simply add a SCRIPT tag to the header of your page like this and call a the javascript function

<SCRIPT LANGUAGE=javascript>
<!--

function myWin(url)
{
window.open (url, "poll", "width=400,height=200,scrollbars=yes,resizable=yes,menubar=yes,status=yes,titlebar=yes,toolbar=yes");
}

//-->
</SCRIPT>

Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000