Notifications
Clear all

Same origin issue? seeking for help

8 Posts
2 Users
0 Reactions
240 Views
Posts: 3
Topic starter
(@davidwang1027)
Active Member
Joined: 2 months ago

Hello there, 

I bought the pro version, and seeking for help

I am trying to embed the following page 

https://funkidviolin.com/aplayalong/aplayertab.php?&m=1&ukulele-Twinkle_Twinkle_Little_Star  

into the a page under the same domain which is this one https://funkidviolin.com/how-to-play-twinkle-little-star-on-lego-ukulele-free-interactive-music-sheet/

 

using this piece this code 

[advanced_iframe width="100%" src="https://funkidviolin.com/aplayalong/aplayertab.php?&m=1&ukulele-Twinkle_Twinkle_Little_Star" fullscreen_button="top_left"]

 

Based the error throwed, it seems it is the same origin issue. but I used your FREE IFRAME CHECKER 3.0, it works perfectly. 

I also tried [iframe] short code, it does work too. 

 

Could you please advise me the issues, thank you very much

 

 

 

7 Replies
TinyWebGallery
Posts: 927
Admin
(@admin)
Prominent Member
Joined: 16 years ago

In https://funkidviolin.com/how-to-play-twinkle-little-star-on-lego-ukulele-free-interactive-music-sheet/ I do not see advanced iframe running. Only a normal simple iframe. 

Which error is thrown? 

Best regards, Michael

Reply
1 Reply
(@davidwang1027)
Joined: 2 months ago

Active Member
Posts: 3

@admin thank you for your reply. 

because, i changed to your free version, it works, i will change it to advance version so you can see what happened 

i used your checker it works

i used your free version it works

but same link 

when i use advanced pro, the source which is this one(  https://funkidviolin.com/aplayalong/aplayertab.php?&m=1&ukulele-Twinkle_Twinkle_Little_Star    ) the js throw same origin issue, I did not write the code so I do not know how to fix it on the source end. and since it works on free version and checker, i do not see any reason why i should check the source part. 

This is the parent page, I change it to advanced version now, it does not work

https://funkidviolin.com/how-to-play-twinkle-little-star-on-lego-ukulele-free-interactive-music-sheet/

 

on the source part, this is where the error is triggered.

if (xmlfnm) { // force loading xml as plain text
$.get (xmlfnm, '', null, 'text').done (function (data, status) {
$('#err').append ('preload: ' + status + '\n');
abc_arr = data.split ('\n');
msc_check_preload ();
}).fail (function (jqxhr, settings, exception) { // same origin policy
$('#wait').append ('\npreload failed1: ' + settings);
});

 

 

Can you please help? thanks! 

Reply
TinyWebGallery
Posts: 927
Admin
(@admin)
Prominent Member
Joined: 16 years ago

In the iframe where I see the error
https://funkidviolin.com/aplayalong/aplayertab.php?m=1

iframe id="advanced_iframe" name="advanced_iframe" src=" https://funkidviolin.com/aplayalong/aplayertab.php?m=1 "

is loaded - and this gives error. But it also gives the same error if I open it in a new browser.

The code above is not from my plugin.

Maybe the solution is very simple:

change
https://funkidviolin.com/aplayalong/aplayertab.php?&m=1&ukulele-Twinkle_Twinkle_Little_Star
to
https://funkidviolin.com/aplayalong/aplayertab.php?m=1&ukulele-Twinkle_Twinkle_Little_Star

?& is maybe killing the code above.

Best regards, Michael

Reply
TinyWebGallery
Posts: 927
Admin
(@admin)
Prominent Member
Joined: 16 years ago

Ah - maybe even simpler:

&ukulele-Twinkle_Twinkle_Little_Star is not a valid parameter

the pro version does check this. Try

https://funkidviolin.com/aplayalong/aplayertab.php?m=1&ukulele-Twinkle_Twinkle_Little_Star=true

Reply
1 Reply
(@davidwang1027)
Joined: 2 months ago

Active Member
Posts: 3

@admin Thank you very much Michael

one last question 

https://funkidviolin.com/aplayalong/aplayertab.php?m=1&ukulele-Twinkle_Twinkle_Little_Star=true

adding "=true" at the end of url will break my code(and i tried removing & does not work either), is there other way to do it? e.g. a checkbox somewhere in the backend dashboard i can tick it off for checking validate parameters? 

 

Reply
TinyWebGallery
Posts: 927
Admin
(@admin)
Prominent Member
Joined: 16 years ago

There is no flag for this. I can point you to the code where you have to change this behavior if you like. 

Normally parameters always have a key and a value. This is why it is removed in the pro version. 

Best regards, Michael

 

 

 

 

Reply
Page 1 / 2