• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

window.opener.document

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have two forms
1. Parent Form
2. Child Form
I have used window.opener.document.Parent_forname.fieldname.value = childform_value

function sendInfo(TxtVal)
{
window.opener.document.Parent_forname.fieldname.value = TxtVal
window.close(); //Closes the child window
}

Button in the child form - onclicking = "sendInfo('Passing a Value')"

Now the passing of value from the child form to the parent WORKS FINE on my PC when running through tomcat 8080, but when i upload the application to the tomcat server which is running on my companies intranet, it says that
Parent_forname.fieldname is null or not an Object.

Can any body plz suggest any reason why when the application runs from my PC it works fine, but when the same in run from tomact server which is live it gives a null object error..!!!???

Thanxs in advance.
 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I didn't change my code, but the error that it is giving me right now is Access denied/..???

Can any one suggest as to why this error is coming..and not allowing my child form to interact with the parent form..!!!

Thanxs
 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Yeh my problem is solved. I had searched this forum for access denied error and i cam across this post Java ranch forum - Access denied.

And the url was http://textport:8080/texturl.jsp and the child form url was 1111.22:8080/upload.jsp

When i changed the 1111.22:8080 to textport:8080, its working fine now..!

Any ways thanxs to all.
Bye
 
Creativity is allowing yourself to make mistakes; art is knowing which ones to keep. Keep this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic