Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Tuesday, April 8th, 2003

Time Event
8:31a
Hello, fellow coders
Got a problem (of course) and I hope someone can help. I am a regular contributor to a UBB bulletin board. I have multiple user names on this board, and it's a pain to keep track of them all and their passwords and repeatedly type them in. SO, I developed a JavaScript button bar to prefill the UserName and Password fields of the 'reply' form. The function works great [with the UserID and PWD as variables inside the ()], calling it with an onClick works fine. I took a 'reply to' page, copied source and saved it on my box to test. Worked like a champ. BUT, in practice, once the actual BB address is the frame source and I'm pulling from the site rather than my own box, I get a 'permissions' error from the first line referencing the form. Is there something tricky about running script values to a form in a sibling frame from another domain? SOme specifics on my approach-
1) Simple sibling frames--frame 'ctrls' and 'tnt' defined in one frameset in the parent page

2)Here's the code:

function preFill(uid,pwd)
{
var uid;
var pwd;
parent.tnt.REPLIER.UserName.value = uid ;
parent.tnt.REPLIER.Password.value = pwd;
parent.tnt.REPLIER.ReplyMessage.focus();
}



3) The error I get from IE is:
Line: 8
Char: 5
Error: Permission denied
Code: 0
URL: the address of the page in the upper frame (my control button page)

4) I'm running IE 6 on XP Pro


ANY thoughts at all?? They'd be greatly appreciated!

<< Previous Day 2003/04/08
[Calendar]
Next Day >>
About LiveJournal.com
Image