cloud9 preview running application

0

window.location.pathname = newPath; document.location.search = params;

these methods don't run so i can not change url and control my lambda code

  • Could you elaborate what are you trying to achieve? Are you trying to manipulate browser url from lambda?

질문됨 일 년 전718회 조회
3개 답변
0

Hi - Can you please provide more details on what type of application/work you are trying to do on cloud9? Also did you get a chance to review Previewing running applications in the AWS Cloud9 Integrated Development Environment (IDE)

profile pictureAWS
전문가
답변함 일 년 전
0

for example the code below. when i click button it doesn't change url in cloud9 "Previev Running Application" which starts a browers. on the other hand if i deploy it cloud app the url is changed.

<input type="button" value="Load new document" onclick="newDoc()"> <script type="text/javascript"> function newDoc() { alert('hello'); window.location.assign("https://www.hurriyet.com.tr") } </script>
답변함 일 년 전
0

Hi, by design, applications that are loading inside of built-in Preview browser in Cloud9 IDE are rendered in secured sandboxed iframe, which prevents application from modifying parent window location. To preview application without this limitation, you could open application preview in separate pop out browser tab https://docs.aws.amazon.com/cloud9/latest/user-guide/app-preview.html#app-preview-app-open-tab

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠