Ethic Solutions Free Webmaster Tools
     
Webmaster Discussion Forum -  Revenue Sharing Forum  webmaster talk related topic
Revenue Sharing Blog - Create your own
Create your own blog FREE and get 80% Revenue directly from google
Earn more revenue on our site, it's free!

» Free SEO Tools
» Check Page Rank
» Check Page Rank multi datacenter
» Check Fake Page Rank
» Alexa Traffic Rank
» Bulk Page rank Check
» Link Popularity
» Check domain Instantly
» Short url
» MD5 Encrypt
» Meta Tags Extractor
» Surf using Proxy
» Keyword Density Analyzer
» Keyword Analyzer
» Welcome to WMH
Registration at WebmastersHome is completely FREE and takes only a few seconds. By registering you'll gain:
  • Full Posting Privileges.
  • Access to Private Messaging.
Register now
Partner

Text Link Ads
Web Hosting
Flash Tutorials
PHP Scripts
Web Hosting providers
Offshore Software Outsourcing
Web Directory
Software Directory
Your Text Link
Earn More
Simply Add a Post and view ad network advertisement on this post.


Go Back   Webmaster Discussion Forum - Revenue Sharing Forum webmaster talk related topic > Design and Programming Talk > Client & Server Side Scripting > JavaScript


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

JavaScript


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-2007, 11:13 PM
dr_pompeii dr_pompeii is offline
Junior Member
 
Join Date: Feb 2007
Posts: 2
dr_pompeii is on a distinguished road
iTrader: (0)
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Revenue Sharing Ads ( Read More ):

  #2 (permalink)  
Old 02-25-2008, 04:52 PM
Cybergod Cybergod is offline
Junior Member
 
Join Date: Feb 2008
Posts: 1
Cybergod is on a distinguished road
iTrader: (0)
Default

nice sharing , thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 05:18 PM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0