Page 1 of 1 1
Topic Options
#138999 - 2005-05-02 05:59 PM Links in webpages
supermanzdead Offline
Getting the hang of it

Registered: 2005-03-09
Posts: 50
Is there a way to make links in a webpage open with this code onclick?

Code:

$IE = CreateObject("InternetExplorer.Application")
$IE.AddressBar = 0
$IE.MenuBar = 0
$IE.ToolBar = 0
$IE.FullScreen = 0
$IE.StatusBar = 0

$ = $IE.Navigate("www.google.com")
$IE.Visible = 1

_________________________
~Mwah

Top
#139000 - 2005-05-02 06:10 PM Re: Links in webpages
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What are you saying? That you want code in a page to use client-side scripting with KiX?

You can do VBS or JScript to do that.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#139001 - 2005-05-02 07:45 PM Re: Links in webpages
supermanzdead Offline
Getting the hang of it

Registered: 2005-03-09
Posts: 50
I know I could use JScript, was just curious if there was a way to do it with KiXtart, would be interesting and easier imo
_________________________
~Mwah

Top
#139002 - 2005-05-02 10:25 PM Re: Links in webpages
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Easier??? NOT!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#139003 - 2005-05-02 10:47 PM Re: Links in webpages
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
I would love to be able to use Kix as a CGI engine on a web server...
Top
#139004 - 2005-05-03 12:47 AM Re: Links in webpages
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Has already been discussed before. Just search the BBS.
_________________________
There are two types of vessels, submarines and targets.

Top
#139005 - 2005-05-03 01:58 AM Re: Links in webpages
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
oh i know it has, but using a wrapper bat file for your output... is not something that i would like to do.
Top
#139006 - 2005-05-03 09:27 AM Re: Links in webpages
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Code:
Is there a way to make links in a webpage open with this code onclick?


Yes, you can.

Search the site for references on automatically filling in a web form. The same technique used can also be used to manipulate most HTML elements.

Top
#139007 - 2005-05-04 04:20 PM Re: Links in webpages
supermanzdead Offline
Getting the hang of it

Registered: 2005-03-09
Posts: 50
I am using javascript to open the links right now, below is the code i am using in the header of each page..and yea having KiX as a CGI engine would rock...I am going to leave the reading about manipulating HTML elements with KiX for later in the month, as it sounds interesting

Code:

function openlink(strLink){
strWidth = 800;
strHeight = 600;
leftStr = (screen.width-strWidth)/2;
topStr = (screen.height-strHeight)/2;
window.open(strLink,'','width=800,height=600,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes,left="+leftStr+",top="+topStr+"');
}

_________________________
~Mwah

Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.059 seconds in which 0.026 seconds were spent on a total of 11 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org