Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-16-2004, 08:53 PM   #1
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default init parameter to html

hi again

i realy was mising this
to have no idea and ask stupid questions

here one more :

can i give a html page an init parameter
somthing like

www.side.com/start.html?Var=100

and in side the html :
alert(Var)

so i get an alert whit 100 in it

or instantly call a cunction

www.side.com/start.html?MyFunction()

in html

function MyFunction(){alert(100)}

THX in front for any help
Xeef is offline   Reply With Quote
Old 11-16-2004, 11:39 PM   #2
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

why i need this :

i wana have ONE html which you call whit the browser this window MUSS have the menubar (or is there a way to prevent it ?)
so next step this html opens it self whit windows.open (whit out menubar) and close it self sofare anything fine
but this will loop for ever so the html which i opens whit window.open needs to now that it's opened by it self so it hase no menubar
and not need to load it self and close it self
Xeef is offline   Reply With Quote
Old 11-17-2004, 09:27 AM   #3
petefs
Fried Onions
 
petefs's Avatar
 
Join Date: Apr 2004
Location: Chicago, IL
Posts: 1,328
Send a message via AIM to petefs Send a message via MSN to petefs Send a message via Yahoo to petefs
Default

you can parse the URL in JavaScript and use it as a conditional

i.e.

start.html#1

and then in javascript
Code:
if (document.href.split("#")[1] == 1) // your code here
should work...I'm not too snappy with my JavaScript at the moment so it's untested, but I'm sure that will put you in the right place to work ^_^
petefs is offline   Reply With Quote
Old 11-17-2004, 02:48 PM   #4
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

AHa this sound EXACTLY what i need

will test it sone

THX a lot petefs
Xeef is offline   Reply With Quote
Old 11-17-2004, 06:54 PM   #5
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

Hmm

on the way !

--> window.location
Xeef is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.