Page 2 of 5

Re: Form web address

Posted: Mon Feb 14, 2022 7:58 pm
by Duski
Thank you, Kev.
Restarted browser, then PC, then tested once more on Chrome, Vivaldi - no success, on Firefox, Edge - success :-(
That means, that the problem sits not in my app but in browsers. But I really don't know how to make my catalogue work for everyone and without issues on various browsers :-(

But all this was done for using my catalogue via iFrame.
I added this code into my html page http://nechsapaci.info/katalogy/knihy.html - and it doesn't work again !!! :-(

Code: Select all

<iframe
    style="width:1600px;height:900px;border-style:none"
    src="http://katalog.jecool.net/index.php?u=hocikto&p=4321&f=61f99555e7196f6">
</iframe>
Can U help me, pls. ?

Re: Form web address

Posted: Tue Feb 15, 2022 6:55 am
by kev1n
Apart from a blank page, do you see an error in the developer console?

Re: Form web address

Posted: Tue Feb 15, 2022 7:46 am
by kev1n
Unpack the Zip File and copy the files into the /core directory by overwriting the existing ones.
core.zip
I tested it with this iframe.htm file in nubuilder's root directory:

Code: Select all

<html lang="en">
<head>
  <meta charset="utf-8">
</head>

<body>
	<script src="core/libs/jquery/jquery.js""></script>

	<iframe
		style="width:1600px;height:900px;border-style:none"
		src="index.php?u=globeadmin&p=nu">
	</iframe>

</body>
</html>
There could be a few other issues popping up. Let me know if it works for you.

Re: Form web address

Posted: Tue Feb 15, 2022 9:14 am
by Duski
Thank you, Kev.
Yes, this works for me :-)
I created a html file in my nubuilder root with js script and iframe and everyting works fine !

Code: Select all

<html lang="en">
<head>
  <meta charset="utf-8">
</head>

<body>
	<script src="core/libs/jquery/jquery.js""></script>

	<iframe
		style="width:1600px;height:900px;border-style:none"
		src="index.php?u=hocikto&p=4321&f=61f99555e7196f6">
	</iframe>

</body>
</html>
Then I tried to adapt my webpage outside nubuilder http://nechsapaci.info/katalogy/knihy.html.
I copied jquery.js into the same folder and created code:

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>
But this doesn't work :-(

Re: Form web address

Posted: Tue Feb 15, 2022 9:16 am
by kev1n
Can jquery.js be found? Are there any errors in the console?

Re: Form web address

Posted: Tue Feb 15, 2022 9:33 am
by Duski
index.php?u=hocikto&p=4321&f=61f99555e7196f6:90 Uncaught DOMException: Blocked a frame with origin "http://katalog.jecool.net" from accessing a cross-origin frame.
at http://katalog.jecool.net/index.php?u=h ... 96f6:90:18
nuform.js?ts=20220215091200:2646 Uncaught DOMException: Blocked a frame with origin "http://katalog.jecool.net" from accessing a cross-origin frame.
at nuMainForm (http://katalog.jecool.net/core/nuform.j ... 00:2646:32)
at http://katalog.jecool.net/index.php?u=h ... 96f6:197:7
index.php?u=hocikto&p=4321&f=61f99555e7196f6:53 Uncaught ReferenceError: nuLoginF is not defined
at nuLoginRequest (index.php?u=hocikto&p=4321&f=61f99555e7196f6:53:21)
at nuLoad (index.php?u=hocikto&p=4321&f=61f99555e7196f6:111:3)
at onload (index.php?u=hocikto&p=4321&f=61f99555e7196f6:219:59)
knihy.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
knihy.html:1 Unchecked runtime.lastError: The message port closed before a response was received.

Re: Form web address

Posted: Tue Feb 15, 2022 9:35 am
by Duski
Snímka obrazovky 2022-02-15 093456.png

Re: Form web address

Posted: Tue Feb 15, 2022 9:43 am
by kev1n
Please google DOMException message.

Re: Form web address

Posted: Tue Feb 15, 2022 10:02 am
by Duski
Thank you Kev for your help and patience. I googled, but found solutions are beyond my abilities :-(
I'm sorry :-(
Thats the end.

Re: Form web address

Posted: Tue Feb 15, 2022 10:10 am
by kev1n
Did you see this?

https://stackoverflow.com/questions/250 ... igin-frame

Otherwise I recommend asking this question at https://stackoverflow.com. There are a lot of experts.