473,725 Members | 2,193 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=hiddenfiel d>

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

</form>
..
</html>

childform.asp

<html>
..
<script language="javas cript">
top.document.hi ddenfield.value = someValue;
</script>
..
</html>

Jul 19 '05 #1
3 5610
Hi T.

http://www.aspfaq.com/5001

Ray at work

"T." <tm***********@ firstegg.com> wrote in message
news:Oh******** ******@TK2MSFTN GP09.phx.gbl...
I keep getting "Access denied" <script language="javas cript">
top.document.hi ddenfield.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******** ******@TK2MSFTN GP11.phx.gbl...
Hi T.

http://www.aspfaq.com/5001

Ray at work

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

<script language="javas cript">
top.document.hi ddenfield.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******** *******@TK2MSFT NGP10.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******** ******@TK2MSFTN GP11.phx.gbl...
Hi T.

http://www.aspfaq.com/5001

Ray at work

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

<script language="javas cript">
top.document.hi ddenfield.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
3706
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 firstname/lastname/telephone box - when the user clicks the add button, I read the values from the form fields and record them into a hidden text input field. This part works because during debugging, I have converted the <input type=hidden> into a <input type=text>...
1
9591
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 same name "junk_array". My first field of junk_array is a input type=hidden. All the others fields in junk_array that follow are type=text. I can reference this first hidden field in IE with document.form.field.value. In, fact my form works...
3
2212
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 hidden field respectfully and the value from dynamically created hidden fiields in to a text fieldin to a text field all at the same time Here's the code as viewed through the browser <body bgcolor="#FFFFFF" text="#000000" > <SCRIPT...
4
3904
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 inserted in the database, to enable me then to reference that number at a later date. (The hidden value (1 for example) would then automatically get passed to the other input field.)
2
4245
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" runat="server" value='<%# DataBinder.Eval(Container, "DataItem.item_id").ToString() %>'> I can get around that using an asp.net textbox control, but it doesn't
4
1745
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 (BasePage performs security checks in the Page_Load ... Handles MyBase.Load event). BasePage also has a hidden field (hdnSessionId) that I want to use to cache a sessionId (client requirement). I can not use Session, ViewState or QueryString to cache...
13
2675
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 records in one front end and leave it unsaved. Edit the same record in the other front end and save the change. Save the change in the first front end - this pops up the Write Conflict message to which I click Save.
1
7084
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 action="http://cm1web1/WebSurveyComponents/script/ processform.asp" method="post">
7
2946
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 is Client and Session is Server). I tried using the email that was on the page, but it was surrounded by a Panel that had its visible property set to false - so anything inside of the Panel was not on the page.
0
8888
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9176
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8097
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.