take data from iframe to edit popup of phpgrid

Questionstake data from iframe to edit popup of phpgrid
Sameer asked 9 years ago

Hi,
THere is main grid, on clicking on "+" icon means to insert a record there is an pop up opened up in where there is a link to iframe. when iframe opened up, i want to take some values from iframe to previous edit phpgrid pop up

1 Answers
Abu Ghufran answered 9 years ago

In grid popup, the input field have id, same as $col["name"].
Assuming the field you want to fill is 'field1', then on iframe event (e.g. button click), you can try using:

window.opener.$("#field1").val('my iframe value');

Your Answer

4 + 13 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?