KasparsK Posted October 31, 2013 Report Share Posted October 31, 2013 Sveiki, kā ar javascript var iegūt atvērta popop loga linku un lai viņš pēc tam, ja popop logā pāriet uz citu lapu no citas lapas, tas arī tiek automatiski parādīts lapā, ka izmainijies links ? Pašreizējais kods: function authorize() { if( $('.authorize').hasClass('disabled') ) { return false; } $('.authorize').addClass('disabled'); var left = ( screen.width / 2 ) - ( '800' / 2 ); var top = ( screen.height / 2 ) - ( ('500' / 2) + 80 ); authwidnow = window.open( 'http://google.lv/', 'authorization', 'status=0, location=0, scrollbars=0, menubar=0, resizable=1, width=800, height=500, top=' + top + ', left=' + left ); authwidnow.focus(); } Paldies. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted October 31, 2013 Report Share Posted October 31, 2013 http://en.wikipedia.org/wiki/Same-origin_policy Quote Link to comment Share on other sites More sharing options...
KasparsK Posted November 1, 2013 Author Report Share Posted November 1, 2013 Es īsti nesapratu, to ko tu ar šo gribēji man pateikt, bet minēšu - tas nav atļauts vai iespējams? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted November 1, 2013 Report Share Posted November 1, 2013 Tieši tā. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.