The Best Cyprus Community

Skip to content


Posting from *my* browser… the Bequer Browser!

Anything related to the Internet, computers and technology in general.

Re: Posting from *my* browser… the Bequer Browser!

Postby Get Real! » Sat Apr 02, 2016 6:01 am

A little public challenge for Sotos because he mocked my humble trading name (in another thread): :? :lol:

You have TWO documents... Parent.htm and Child.htm and the second loads into the iframe of the first.

When you click the button in the iframe an alert should appear to display "I see you!".

In other words the child should be able to access the parent's function.

Now make it happen Sotos! (oh, and no jquery allowed... just plain JS :wink: )


-Parent.htm---------------------------------------------------------------------------------

<!DOCTYPE html>
<head>
</head>
<body>

<script type="text/javascript">

function RunMe(Msg){alert(Msg);}

</script>

<iframe id="TheFrame" src="Child.htm"></iframe>

</body>
</html>


-Child.htm---------------------------------------------------------------------------------

<!DOCTYPE html>
<head>
</head>
<body>

<script type="text/javascript">
</script>

<button onclick="parent.RunMe('I see you!');">Test</button>

</body>
</html>

----------------------------------------------------------------------------------
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: Posting from *my* browser… the Bequer Browser!

Postby Sotos » Sat Apr 02, 2016 8:55 am

GR... if you need help just ask... don't put me challenges ;) Anyway ... your code should work as it is (unless there is a typo I can't see). Here it is working:
https://plnkr.co/edit/p9sT8raUYX3giIMDHhZL?p=preview

If it doesn't work for you then probably your parent and child are not on the same origin (different domain, port or protocol) so the code in the iframe can't really run code on the parent page directly for security reasons. So you could use something like postMessage as in this example:
https://plnkr.co/edit/IjRtQemdx74W6CmTV0W7?p=preview

That is just a simplified example based on your code that does just what you asked... search about postMessage for more details on how to use it.
User avatar
Sotos
Leading Contributor
Leading Contributor
 
Posts: 11357
Joined: Wed Aug 17, 2005 2:50 am

Re: Posting from *my* browser… the Bequer Browser!

Postby Get Real! » Sat Apr 02, 2016 9:24 am

It worked for you because I forgot to sandbox it! :lol:

Can't view your links though … :?

somelink.PNG
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: Posting from *my* browser… the Bequer Browser!

Postby Sotos » Sat Apr 02, 2016 9:49 am

The whole point of the sandbox attribute is to isolate the iframe ;) You can "open holes" on the sandbox to allow certain things (e.g. sandbox='allow-scripts') Regarding the links... use a real browser to view them ;) Seems like *your* browser has some issues with SSL. Or just view them over http.
User avatar
Sotos
Leading Contributor
Leading Contributor
 
Posts: 11357
Joined: Wed Aug 17, 2005 2:50 am

Re: Posting from *my* browser… the Bequer Browser!

Postby Get Real! » Mon Apr 11, 2016 11:31 pm

Do we have any volunteers to beta test the browser and provide a little feedback? :)
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: Posting from *my* browser… the Bequer Browser!

Postby supporttheunderdog » Tue Apr 12, 2016 7:40 am

Get Real! wrote:Do we have any volunteers to beta test the browser and provide a little feedback? :)


yes. I will give it a try.
User avatar
supporttheunderdog
Main Contributor
Main Contributor
 
Posts: 8394
Joined: Thu Oct 28, 2010 3:03 pm
Location: limassol

Re: Posting from *my* browser… the Bequer Browser!

Postby Get Real! » Tue Apr 12, 2016 7:37 pm

supporttheunderdog wrote:
Get Real! wrote:Do we have any volunteers to beta test the browser and provide a little feedback? :)


yes. I will give it a try.

Thanks a lot Stud, which Windows are you using?

I’ll send you a link in a pm just as soon as I complete the beta stage which shouldn’t take too long now… almost there.
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: Posting from *my* browser… the Bequer Browser!

Postby supporttheunderdog » Wed Apr 13, 2016 1:31 am

W10 home. 64 bit i think.
User avatar
supporttheunderdog
Main Contributor
Main Contributor
 
Posts: 8394
Joined: Thu Oct 28, 2010 3:03 pm
Location: limassol

Re: Posting from *my* browser… the Bequer Browser!

Postby Get Real! » Tue May 03, 2016 6:00 pm

So what are the biggest obstacles to writing an Internet browser you may ask…

You’d think it would be the technical aspect of the programming project at hand but no… all those issues *can* eventually be resolved with plenty of research and hard work, but here's what *can't* be resolved it seems:

The monopolizing greed of...

1. Google
2. Adobe

The Internet has unfortunately been imprisoned by a couple of giant corporations.

ie: Abobe has the Flash player pre-programmed to stop working about once a month and requiring an "update"! But what is there to update after 10 years of coding? All they're doing is changing their encryption keys to ensure it stops working when they want and never works in other players that may dare to surface!

Google have their own bag of tricks up their sleeves too, but I won't bore you with all that right now.

When Google threatened to close down Adobe 1-2 years ago by blocking support of their flash player (the NAPPI version) Adobe quickly compromised by supplying a "Google" version that doesn't screw around as much (PPAPI version) but what is the poor unknown “Bequer browser” to do when the PAPPI/NAPPI plugins stop working a month later for I don’t have an agreement with Adobe for continuous uninterrupted use! :? :lol:

We can’t have a browser that plays online videos fine and then a month later stops working for no reason! What is the user gonna think? Well of course the user will just call your browser "crap" and dump it for Chrome which always plays them perfect! :wink:

These are the only things delaying me from launching my browser... the monopolizing unethical monsters holding the Internet hostage. :(

But, my Cypriot stubbornness should not be underestimated either... :lol:
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: Posting from *my* browser… the Bequer Browser!

Postby erolz66 » Tue May 03, 2016 6:47 pm

Just forget adobe flash player all together I would say. Yes the move from the proprietary flash player to open HTML5 has been and is agonizingly slow especially with the 'big name' sites but the transition IS happening, flash player IS being replaced by HTML5 equivalents, slowly but steadily and at some point in the future no significant web site will require flash player support to work.
Last edited by erolz66 on Tue May 03, 2016 6:48 pm, edited 1 time in total.
erolz66
Main Contributor
Main Contributor
 
Posts: 4368
Joined: Sat Nov 30, 2013 8:31 pm

PreviousNext

Return to Internet, Computers and Technology

Who is online

Users browsing this forum: No registered users and 0 guests