Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2006

Tip: Looking for answers? Try searching our database.

IFrame problem.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bluewind44 - 27 Feb 2006 06:18 GMT
I have a webpage "WebForm1.aspx" that have a IFrame page "IFrame.aspx".
I know that I can access the IFrame.asax 's controls by jscript in
"WebForm1.aspx".
(ex) document.frames("IFrame").document.all.txtExample.value = 'ss';

Now I want to access jscript in "WebForm1.aspx" from "IFrame.aspx".
Is there any way to do it?
(Especially, I want to change the textbox in "WebForm1.aspx" when a
button event in
"IFrame.aspx" occurs.)
Please Help me out. T.T
Josh Twist - 27 Feb 2006 07:46 GMT
This should do the trick.

window.parent.document.all.txtExample.value = 'ss';

I should point out that you're following an IE only route at the
moment. Maybe try these cross-browser compatible examples instead.

window.frames("IFrame").document.getElementById('txtExample').value =
'ss';
window.parent.document.getElementById('txtExample').value = 'ss';

Hope that helps

Josh
http://www.thejoyofcode.com/
bluewind44 - 28 Feb 2006 08:07 GMT
Thanks a lot.
It will help me a lot.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.