Web Design and Development Forums

window.opener.document["nameForm"].getElementById("someid").value; doesnt work

This is a discussion on "window.opener.document["nameForm"].getElementById("someid").value; doesnt work" within the JavaScript Forum section. This forum, and the thread "window.opener.document["nameForm"].getElementById("someid").value; doesnt work are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > JavaScript Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Feb 17th, 2007, 23:09   #1 (permalink)
New Member
 
Join Date: Feb 2007
Location: Peru
Age: 27
Posts: 3
window.opener.document["nameForm"].getElementById("someid").value; doesnt work

Hello guys

i really need your help

i have a popup window, then when i finished (pressing submit button) call onSubmit
method of the form and then call some method in javascript (the js file is an external file) and use some sentence how this

Code: Select all
window.opener.document["nameForm"].getElementById("someid").value;
well this doesnt work
now if the element is a textinput how
Code: Select all
<input type="text" name="somename" value=""  id="someid"/>
i can use this to avoid the problem
Code: Select all
window.opener.document["nameForm"].somename.value;
now the problem is this
Code: Select all
<span name="othersomename" id="othersomenid" style="display:none;">
    <h1>some data</h1>
                ...
</span>
with span the name property is ignored
so if i use this
Code: Select all
    window.opener.document["nameForm"].othersomename.style.display="";
i recive the error message
window.opener.document.nameForm.othersomename has no properties
or
Code: Select all
window.opener.document["nameForm"].getElementById("othersomenid").style.display="";
i recive this error message:
window.opener.document.nameForm.getElementById is not a function


pls, how i can resolve this???

thanks so much for advanced

BTW : i am using firefox 1.5.0.9 in linux
drpompeii is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
doesntwork, getelementbyid

Thread Tools
Rate This Thread
Rate This Thread:

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Show "Image" Depends On User "Status"? Monie ASP Forum 6 Oct 16th, 2007 01:22
document.getElementById("tabs") has no properties afmanuk JavaScript Forum 3 Sep 7th, 2007 19:11
? IS "meta name="robots" content="?" necessary in pages ? Love2Java New to Web Design 6 Aug 8th, 2007 13:48
document.getElementById("userProfileCheck") is not working in Mozilla Firefox dhineraj JavaScript Forum 1 Jul 20th, 2007 05:32
<option value="yes" class="x"> problem in Firefox mameha1977 CSS Forum 1 Jun 21st, 2006 11:20



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 09:07.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 58 59