Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > how to make original control work from iframe's control

Reply
Thread Tools

how to make original control work from iframe's control

 
 
haiwen
Guest
Posts: n/a
 
      07-24-2003
Hello, everyone,
I have a web page that has a IFRAME(because I need the
scroolbar for this area), and other server side controls
(such as Button(butNext), Image(img1)...)
the IFRAME's source page has a submit button, is there
some way to make butNext click when click the submit
button in IFRAME.

I use:
Response.Write(@"<script language=javascript>
document.Form1.butNext.click();

</script>");

but it doesn't work though it work if there isn't IFRAME.

Could anyone help me? I do appreciate your help.

thank a lot,

haiwen

 
Reply With Quote
 
 
 
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      07-28-2003
Hello Haiwen,

I am looking for somebody who could help you on it. Thanks for participating the community.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "haiwen" <>
!Sender: "haiwen" <>
!Subject: how to make original control work from iframe's control
!Date: Thu, 24 Jul 2003 12:07:09 -0700
!Lines: 22
!Message-ID: <02fe01c35216$c7eafc50$>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNSFsfqcysemrmARsywn8KNDiwyhg==
!Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontro ls
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet.webcontro ls:13413
!NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontro ls
!
!Hello, everyone,
!I have a web page that has a IFRAME(because I need the
!scroolbar for this area), and other server side controls
!(such as Button(butNext), Image(img1)...)
!the IFRAME's source page has a submit button, is there
!some way to make butNext click when click the submit
!button in IFRAME.
!
!I use:
!Response.Write(@"<script language=javascript>
!document.Form1.butNext.click();
!
!</script>");
!
!but it doesn't work though it work if there isn't IFRAME.
!
!Could anyone help me? I do appreciate your help.
!
!thank a lot,
!
!haiwen
!
!


 
Reply With Quote
 
 
 
 
haiwen
Guest
Posts: n/a
 
      07-31-2003
hello,Ariel Molina:

Thanks so much for your help, I try your example but I
always get error message:stack overflow at line:12

Sincerely,

haiwen

>-----Original Message-----
>haiwen,
>
>You can setup an onsubmit event handler from the client

side which
>exectutes the click method of your button. Here is an

example:
>
><script>
>function onsubmit()
>{
>butNext.click();
>}
></script>
><body>
><form onsubmit="onsubmit()">
></form>
></body>
>
>
>Give this a shot and let us know.
>
>Ariel Molina
>Microsoft Online Support
>
>.
>

 
Reply With Quote
 
Ariel Molina
Guest
Posts: n/a
 
      07-31-2003
Haiwen,

Could a sample page where I may see the error occur in an IFRAME?

Microsoft Online Support
Ariel Molina

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to make copies of array that do not impact on the original? Jen Ruby 3 03-04-2011 09:35 AM
[tutorial] download trial visual studio & make him original moshe12007 C++ 0 04-25-2008 07:28 AM
original Dune- trying to get to work on XP Jennifer Computer Support 5 08-01-2006 07:51 PM
Is there a Check to see if Serial will work on Original XP CD? Max Computer Support 5 10-28-2003 09:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57