473,503 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access hidden field

T.
Hi group, I'm trying to write to a hidden field on a form from a page that
is loaded as the "src" in an iframe. I keep getting "Access denied" in the
javascript of childform.asp...I have tried many variation in trying to
reference the hidden field on the parent form with no success...can anyone
suggest the syntax?

Thanks much
here's sample code:
parentform.asp:

<html>
..
<form name=frm id =frm>

<type=hidden id=hiddenfield name=hiddenfield>

<iframe name="child" id="child" src="childform.asp" width="100%"
height="88%" scrolling="auto" align="left"></iframe>

</form>
..
</html>

childform.asp

<html>
..
<script language="javascript">
top.document.hiddenfield.value = someValue;
</script>
..
</html>

Jul 19 '05 #1
3 5602
Hi T.

http://www.aspfaq.com/5001

Ray at work

"T." <tm***********@firstegg.com> wrote in message
news:Oh**************@TK2MSFTNGP09.phx.gbl...
I keep getting "Access denied" <script language="javascript">
top.document.hiddenfield.value = someValue;
</script>

Jul 19 '05 #2
T.
Ray will I get the same level of love and support I've recd in this
newsgroup?

Thanks

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:Oc**************@TK2MSFTNGP11.phx.gbl...
Hi T.

http://www.aspfaq.com/5001

Ray at work

"T." <tm***********@firstegg.com> wrote in message
news:Oh**************@TK2MSFTNGP09.phx.gbl...
I keep getting "Access denied"

<script language="javascript">
top.document.hiddenfield.value = someValue;
</script>


Jul 19 '05 #3
The world is nothing but love. Many of the same people watch that group as
well.

Ray at work

"T." <tm***********@firstegg.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Ray will I get the same level of love and support I've recd in this
newsgroup?

Thanks

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:Oc**************@TK2MSFTNGP11.phx.gbl...
Hi T.

http://www.aspfaq.com/5001

Ray at work

"T." <tm***********@firstegg.com> wrote in message
news:Oh**************@TK2MSFTNGP09.phx.gbl...
I keep getting "Access denied"

<script language="javascript">
top.document.hiddenfield.value = someValue;
</script>



Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3679
by: Randell D. | last post by:
Folks, Perhaps someone can figure this out - this is 'the process of my script' I have a form whereby I can add multiple contacts to a single address. There is only one...
1
9553
by: mark.reichman | last post by:
First off.. Thanks to Grant Wagner for help in a previous thread related to this one. I am at a total loss... I have multiple fields in a form with the same name. Lets call the fields with the...
3
2184
by: Roy Adams | last post by:
Hi I'm reposting this question because for some reason can't post follow up question to this thread. What I'm trying to do is put the value and text from a a select in to a text field and to a...
4
3882
by: GavMc | last post by:
Hello I am new to internet programming and wonder if anyone can help me with this.... I am trying to pass a hidden field value on a form into another field on the form so that it can then be...
2
4226
by: Rodusa | last post by:
I have a hidden field inside one datagrid which I can't get to make it keep its state after a postback event. Look field: <input type="hidden" id="TxtHiddenItem_id" name="TxtHiddenItem_id"...
4
1727
by: Joe | last post by:
Hello All: I have two webforms (WebForm1.aspx and WebForm2.aspx) that inherit from a base class called BasePage.aspx. BasePage.aspx has no user interface but inherits System.Web.UI.Page...
13
2650
by: Owen Jenkins | last post by:
Following on from an earlier post... I can reliably corrupt a record by doing the following ... Open two separate but identical front ends on one PC each linking to the same back end. Edit a...
1
7038
by: mark | last post by:
Forgive me if this seems like a stupid question but I need help... I'm trying to do a simple online form that emails me the results from a few fields. Here is the code: <form...
7
2939
by: tshad | last post by:
How do you hide an asp.net object and still be able to access it? I had my email in a session variable, but you can't access the session variable from Javascript (I don't think - since Javascript...
0
7204
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
391
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.