Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Form web address Topic is solved

Questions related to using nuBuilder Forte.
Duski
Posts: 95
Joined: Thu Mar 04, 2021 2:03 pm

Re: Form web address

Unread post by Duski »

Yes, I saw SO.
A lot of study is needed for me to solve this problem, but I have not enough time. My wife is very seriously ill and I spend most of my time with her:-(:-(:-(
Thank you for all and for very prompt cooperation.
(I made a next donation to nuBuilder.)
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form web address

Unread post by kev1n »

I am sorry to hear that and I wish her a speedy recovery!
And thanks a lot for your donation!
Duski
Posts: 95
Joined: Thu Mar 04, 2021 2:03 pm

Re: Form web address

Unread post by Duski »

Probably she will die this week :-( Cancer ...
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form web address

Unread post by kev1n »

This is very sad to hear and I wish you the best in this difficult time.
Duski
Posts: 95
Joined: Thu Mar 04, 2021 2:03 pm

Re: Form web address

Unread post by Duski »

Hi, Kev, excuse me, once more pls.
This works for you ?
http://katalog.jecool.net?u=hocikto&p=4321
http://nechsapaci.info/katalogy/knihy.html
Thanx in advance.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form web address

Unread post by kev1n »

First link is ok :D
2nd not :( : Uncaught DOMException: Blocked a frame with origin "http://katalog.jecool.net" from accessing a cross-origin frame.
Duski
Posts: 95
Joined: Thu Mar 04, 2021 2:03 pm

Re: Form web address

Unread post by Duski »

Thank you.
The second one includes an iframe ...

Code: Select all

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Knihy</title>
</head>
<body>
    <h1>This is my book catalogue</h1>
    <script src="jquery.js"></script>
<iframe
    style="width:1600px;height:900px;border-style:none"
    src="http://katalog.jecool.net/index.php?u=hocikto&p=4321&f=61f99555e7196f6">
</iframe>
</body>
</html>
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form web address

Unread post by kev1n »

Can you try replacing nuMainForm() in nuform.js with this one?

Code: Select all

function nuMainForm(){

	var result = false;

	if(opener){

		try {
			result = nuDocumentID == opener.nuDocumentID;
		} catch ( error ) {
			result = false;
		}
	}

  try {

  } catch (DOMException) {
		return true;
  }
  
  return nuDocumentID == parent.nuDocumentID;

}
Duski
Posts: 95
Joined: Thu Mar 04, 2021 2:03 pm

Re: Form web address

Unread post by Duski »

Thank you, Kev.
1. My foreground color is gone, background color changed to black :-( (Vivaldi browser)
Snímka obrazovky 2022-02-24 115853.png
2. On the page with iFrame http://nechsapaci.info/katalogy/knihy.html I see improvements - now there is white rectanglevisible , before there was nothing
Snímka obrazovky 2022-02-24 120401.png
3. But no data
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form web address

Unread post by kev1n »

Sorry, the function nuMainForm() is supposed to look like this:

Code: Select all

function nuMainForm(){

	var result = false;

	if(opener){

		try {
			result = nuDocumentID == opener.nuDocumentID;
		} catch ( error ) {
			result = false;
		}
	}

  try {
     return nuDocumentID == parent.nuDocumentID;
  } catch (DOMException) {
		return true;
  }

}
Post Reply