Click to See Complete Forum and Search --> : calling function from another frame
jux82
12-19-2002, 10:51 PM
Hi,
I did try parent.frameName.functionName()
I also tried top.frameName.functionName()
I even tried parent.parent.frameName.functionName()
but the status bar shows error on page
why is this?
Help! how can I solve this?
Thanks!
eileen
12-19-2002, 11:49 PM
what software do you use to do your project?
jux82
12-20-2002, 02:33 AM
I am using JCreator as well as frontpage
does it affect the result?
eileen
12-20-2002, 02:44 AM
oh, i see.
But sorry, i am not familar with the jcreator.
Xeenslayer
12-20-2002, 03:28 AM
I have no idea about JCreator too (never heard of it before), so I can't comment on it. But FrontPage... :( Personally, I don't like it one bit. I use the simplest tool: Notepad. It's small and easy to use.
Um, Jux82, have you tried carrying a variable over to another page? I think you can find a tutorial on this in HTMLGoodies. Perhaps you could replace some parts of the other page with variables, then bring that variable to the main frame. After that, create the function in that main frame using these variables?... Just a thought, I haven't tried that before.
And HI Eileen! :) Glad to see another person from the same place! :)
jux82
12-20-2002, 08:37 AM
Both of you, thanks for replying the thread...
You guys from singapore huh?
Glad to see ppl from the same place ;)
hahaha...
Anyway, the things work as how they were done
I mean using parent.frameName.functionName()
I have no idea why it doesn't work at first
It took me so long to debug that :(
Anyway thanks!
jux82
12-20-2002, 08:39 AM
err, i didn't debug it.. actually :D
it works just as it was before...
eileen
12-20-2002, 07:20 PM
Hi, you guys
nice to you see you here!:)
Xeenslayer
12-22-2002, 09:41 PM
Oh, coincidence. ;) I didn't know you're from the same region too, Jux82.
So, when you said you didn't debug it, you mean the code still doesn't work?
jux82
12-23-2002, 01:50 AM
I meant I didn't change anything
I tried on other computer and it just works alrite
So the code actually works :D