What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » JavaScript code execute within url

Pages: (2): « First [ 1 ] 2 » Last »
JavaScript code execute within url
Author: Message:
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. JavaScript code execute within url
How would I run a JavaScript function from the url. Would it be something like

http://www.mysite.com/page.html?functionname()
[Image: top.gif]
08-31-2005 05:27 AM
Profile PM Web Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: JavaScript code execute within url
um, javascript://run_some_function()?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
08-31-2005 05:33 AM
Profile PM Web Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. RE: JavaScript code execute within url
Ermm maybe I didn't explain my self, how do I run a function in a web page useing the URL of the page.

like: http://www.bla.com/page.html(then the function to run here)
[Image: top.gif]
08-31-2005 05:37 AM
Profile PM Web Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: JavaScript code execute within url
errrrrrrr, ".$_GET[0]."" ?>

I think?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
08-31-2005 05:51 AM
Profile PM Web Find Quote Report
surfichris
Former Admin
*****

Avatar

Posts: 2365
Reputation: 81
Joined: Mar 2002
RE: JavaScript code execute within url
Can't do that with javascript - you cant obtain get and post variables.
08-31-2005 06:00 AM
Profile PM Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
38 / Male / Flag
Joined: Aug 2004
Status: Away
RE: JavaScript code execute within url
Maybe he meant to put that $_GET between <script> and </script> so JS was executed when the page was output as HTML.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

08-31-2005 06:07 AM
Profile PM Find Quote Report
Yousef
Full Member
***

Avatar
(previously known as Juzzi)

Posts: 487
Reputation: 19
35 / Male / Flag
Joined: Jul 2004
RE: JavaScript code execute within url
quote:
Originally posted by Regexp
Can't do that with javascript - you cant obtain get and post variables.
Shouldn't you be able to obtain the GET variables using document.location...?
Developer of BuddyFuse: Google Talk, Twitter and Hyves in Windows Live Messenger
Ex-Microsoft intern and Windows Live Developer MVP in 2007 & 2008
08-31-2005 06:13 AM
Profile E-Mail PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: JavaScript code execute within url
quote:
Originally posted by DJeX
Ermm maybe I didn't explain my self, how do I run a function in a web page useing the URL of the page.

like: http://www.bla.com/page.html(then the function to run here)
thats in possible you cant run javascript with a url like that , only by using the protocol javascript://
nothings stopping you parsing the url eg
http://blah.com/page.html?functiontorun
then just a quick eval to run that function.

quote:
Originally posted by Juzzi
quote:
Originally posted by Regexp
Can't do that with javascript - you cant obtain get and post variables.
Shouldn't you be able to obtain the GET variables using document.location...?
yup just need to write some sort of parser to do it.

This post was edited on 08-31-2005 at 11:57 AM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
08-31-2005 06:44 AM
Profile PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: JavaScript code execute within url
But thats only possible with PHP... ;)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-31-2005 07:07 AM
Profile E-Mail PM Web Find Quote Report
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: JavaScript code execute within url
Unless you can execute javascript with a javascript function..
The previous sentence is false. The following sentence is true.
08-31-2005 11:40 AM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On