Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running a script to change iframe after page has loaded 1

Status
Not open for further replies.

davejam

Technical User
Jan 6, 2004
313
GB
hi all,

i am having to create tools on the web using aspects of Business Objects (javascript in .net question only, not Business Objects)

I have managed to acheive basically what i set out to do except one little problem.

on the first page my pages run a login script as the default.aspx page is displayed.

this then get objects from BO using tokens, this all works.

I am then getting a page from BO that lists certain folders from id's, only problem when i pull the page through there is not a full session so goes to a logon page.

I know that if i run the iframe linking to the list frame after the page has loaded i do have a session so works fine.

is there a way to run a script after the page is complete?
or can i wait for a session variable (not sure what it will be though) to be populated before changing the source of my iFrame.

sorry if this is pretty vague, simplified question

can i run a script after a page is fully loaded without user intervention?

Cheers in advance, if this doesn't make sence please ask me questions on what i'm going on about!!

dave j

daveJam

*two wrongs don't make a right..... but three lefts do!!!!*
 
have you tried placing this in the <body> tag?
Code:
<body onload="myscript();">

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Such a simple way.... i should have remembered, been a while and i think .net has scared me!!!

cheers for that, may actually keep some hair!!!

dave j

daveJam

*two wrongs don't make a right..... but three lefts do!!!!*
 
no probs, glad to help.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top