{"id":841,"date":"2009-01-07T17:10:43","date_gmt":"2009-01-07T21:10:43","guid":{"rendered":"http:\/\/www.ezrasf.com\/wplog\/?p=841"},"modified":"2011-11-22T21:28:23","modified_gmt":"2011-11-23T02:28:23","slug":"how-not-to-break-a-frame","status":"publish","type":"post","link":"https:\/\/www.ezrasf.com\/wplog\/2009\/01\/07\/how-not-to-break-a-frame\/","title":{"rendered":"How Not To Break a Frame"},"content":{"rendered":"<p><strong>Correct:<\/strong><\/p>\n<blockquote><p>&lt;script language=&#8221;Javascript&#8221; type=&#8221;text\/javascript&#8221;&gt;<br \/>\nif (top != self)<br \/>\n{<br \/>\ntop.location = window.location;<br \/>\n}<br \/>\n&lt;\/script&gt;<\/p><\/blockquote>\n<p><strong>Incorrect:<\/strong><\/p>\n<blockquote><p>&lt;script language=&#8221;Javascript&#8221; type=&#8221;text\/javascript&#8221;&gt;<br \/>\nif (top != self)<br \/>\n{<br \/>\ntop.location = &#8220;\/webct\/urw\/lc18361011.tp0\/logonDisplay.dowebct&#8221;;<br \/>\n}<br \/>\n&lt;\/script&gt;<\/p><\/blockquote>\n<p>The problem with incorrect is the address used here is not the address in the location bar.\u00c2\u00a0 The one in the location bar has the values required to login. Instead I get something which causes users to be unable to login. Example: So we send someone to <a href=\"http:\/\/westga.view.usg.edu\">http:\/\/westga.view.usg.edu<\/a>. They get redirected to <a href=\"https:\/\/westga.view.usg.edu\/webct\/logonDisplay.dowebct?insId=18361011&amp;glcid=URN:X-WEBCT-VISTA-V1:02f06184-a818-5d85-016b-ced8db73d0e6&amp;insName=University%20of%20West%20Georgia\">another address<\/a> in which we provide the glicid, insId, and insName. Correct breaks the frame and gives the browser back the same address. Incorrect breaks the frame and gives the browser back a different, non-functional address. Bad. Bad. Bad.<\/p>\n<p>WebCT Vista 3 used the Correct JavaScript which just passes back the address used. Blackbord Vista 8 for some reason changes what worked to Incorrect.<\/p>\n<p>Yay for first day of classes.<br \/>\n\ud83d\ude41<\/p>\n<p><strong>UPDATE 1:<\/strong><\/p>\n<p>It gets better&#8230; Bb Vista&#8217;s Custom Login and Institution List pages are unaffected (aka use the Vista 3 style JS). Only going to the generated logon page, loginDisplay.dowebct, has the issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Correct: &lt;script language=&#8221;Javascript&#8221; type=&#8221;text\/javascript&#8221;&gt; if (top != self) { top.location = window.location; } &lt;\/script&gt; Incorrect: &lt;script language=&#8221;Javascript&#8221; type=&#8221;text\/javascript&#8221;&gt; if (top != self) { top.location = &#8220;\/webct\/urw\/lc18361011.tp0\/logonDisplay.dowebct&#8221;; } &lt;\/script&gt; The problem with incorrect is the address used here is not the address in the location bar.\u00c2\u00a0 The one in the location bar has the values required [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[22],"tags":[990,376,130,336,387,661,323,114,98,277,3036,283,112,164,221],"class_list":["post-841","post","type-post","status-publish","format-standard","hentry","category-bbvista","tag-blackboard-cevista","tag-browser","tag-georgia","tag-glcid","tag-https","tag-isp","tag-java","tag-javascript","tag-language","tag-name","tag-university","tag-user-interface","tag-users","tag-usg","tag-webct"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1rUBW-dz","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/comments?post=841"}],"version-history":[{"count":0,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/841\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/media?parent=841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/categories?post=841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/tags?post=841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}