iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old February 17th, 2007, 08:09 PM   #1
New Member
 

Join Date: Jan 2007
Location: Peru
Age: 28
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 drpompeii is on a distinguished road
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:
window.opener.document["nameForm"].getElementById("someid").value;
well this doesnt work
now if the element is a textinput how
Code:
<input type="text" name="somename" value=""  id="someid"/>
i can use this to avoid the problem
Code:
window.opener.document["nameForm"].somename.value;
now the problem is this
Code:
<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:
    window.opener.document["nameForm"].othersomename.style.display="";
i recive the error message
window.opener.document.nameForm.othersomename has no properties
or
Code:
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

Bookmarks

Tags
doesntwork , getelementbyid


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a "tag" system to find relevant "related" pages MrQuestions PHP 3 March 20th, 2008 09:06 PM
[SOLVED] Show "Image" Depends On User "Status"? Monie Classic ASP 6 October 15th, 2007 10:22 PM
document.getElementById("tabs") has no properties afmanuk JavaScript 3 September 7th, 2007 04:11 PM
? IS "meta name="robots" content="?" necessary in pages ? Love2Java Your Design and Layout 6 August 8th, 2007 10:48 AM
document.getElementById("userProfileCheck") is not working in Mozilla Firefox dhineraj JavaScript 1 July 20th, 2007 02:32 AM


Search Engine Optimization by vBSEO 3.2.0 RC8