• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Any JavaScript Experts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any JavaScript Experts?


  • Subject: Re: Any JavaScript Experts?
  • From: Arturo PĂ©rez <email@hidden>
  • Date: Fri, 2 Sep 2005 18:26:24 -0400

Firefox's developer tools are also very handle for debugging JavaScript. Just make sure you don't get too wrapped up in how FF and IE display pages so radically differently.

-arturo

On Sep 2, 2005, at 10:03 AM, Seejo Pylappan wrote:

One of the things I learnt when I try to debug somejava script with forms and elements is to have alert panels display the element/form so that going down the code, I know that I have a valid form to begin with, The Javascript console also flags some error messages...


On Sep 2, 2005, at 9:55 AM, James Cicenia wrote:


DARN -

I had the form name as Form1 and not form1... that little typo cost me about 12 hours!!!!

Thanks for answering... made me look closer.

- James Cicenia

On Sep 2, 2005, at 8:25 AM, Seejo Pylappan wrote:



You should be able to get the opener reference using the window.opener in the pop up window. Since certain browsers are pretty strict about popup window parent communications.. you probably have to have a function in the parent window which submits the form... say In the popup window, you have a button with a onClick() binding which calls the function onClickFunction()


parentWindow script code segment . . function submitFormWithValues(value 1, value 2) { . // your implementation etc and then submit the form . }

popup window script code segment
.
.
function onClickFunction()  {
// get hold of values you want
window.opener.submitFormWithValues(val1, val2);
}

In this case you can get hold of the values you need in the onClickFunction before you submit the values to the parent window.

Hope it helps.

-Seejo




On Sep 2, 2005, at 9:11 AM, James Cicenia wrote:




Hello -

I am trying to get from my popup window, the "opener" reference so I can submit the opener window to basically get any edits submitted.

Seems like no matter what I do.... opener is undefined.

Anyone have a good way to open a popup window and submit the opener/parent window?

I have spent way too many hours on this little problem

Thanks,
James Cicenia

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden













_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Any JavaScript Experts? (From: James Cicenia <email@hidden>)
 >Re: Any JavaScript Experts? (From: Seejo Pylappan <email@hidden>)
 >Re: Any JavaScript Experts? (From: James Cicenia <email@hidden>)
 >Re: Any JavaScript Experts? (From: Seejo Pylappan <email@hidden>)

  • Prev by Date: Re: attn: Practical WO Authors/XML Ch.11 Question
  • Next by Date: Re: PostgreSQL performance through Plugin/JDBC
  • Previous by thread: Re: Any JavaScript Experts?
  • Next by thread: [TIP] Application launch script wrapper
  • Index(es):
    • Date
    • Thread