Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-06-2011, 06:47 PM   PM User | #1
dereko
New to the CF scene

 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dereko is an unknown quantity at this point
iframe json security question

a simple NO YOU CAN'T or a BUY A TEXTBOOK & READ IT will probably answer my query..
what i want to do is to analyse a load of share bulletin boards, from a webpage on my home pc. i'd hoped to do it by putting the bb page in an iframe and parsing the iframe's innerHTML. but this is barred by javascript.
i'm a bit cheesed off having found that out only after doing the hard work of writing the parsing-code.. (i had pasted a sample bulletin board source code into the iframe, so it was all local..)
but i read something about JSON.. which might outflank the security. i'd like to know: can i get an example of how this might be done? how much of a learning curve is JSON. can i fix it up on this machine?
thanks for any help..
dereko is offline   Reply With Quote
Old 02-06-2011, 07:54 PM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,033
Thanks: 197
Thanked 2,410 Times in 2,388 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
http://www.openajax.org/whitepapers/...20Security.php

http://www.zackgrossbart.com/hackito/jsonp-sop/

Read it carefully, and note the security issues involved. And as it says, this is university level code.

Are you sure that there are no copyright issues involved? If there are you may well attract a swarm of expensive lawyers.


It is your responsibility to die() if necessary….. - PHP Manual

Last edited by Philip M; 02-06-2011 at 07:56 PM..
Philip M is offline   Reply With Quote
Old 02-06-2011, 10:22 PM   PM User | #3
dereko
New to the CF scene

 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dereko is an unknown quantity at this point
thanks. i'll give it some thought, though it looks a little too complex. i'm up to my intellectual limit as it is..

i can't see it being illegal: my snooping isn't going to be rebroadcast. i'm trying to rework the idea by pasting the bulletin board source one at a time into a textarea.. i was hoping to fire a load of urls into the processor to analyse bulletin boards relating to different companies..
dereko is offline   Reply With Quote
Reply

Bookmarks

Tags
cheesed-off, iframe, innerhtml, json, security

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:35 AM.


Advertisement
Log in to turn off these ads.