Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Change SRC DYNAMICALLY https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4402 |
Page 1 of 1 |
Author: | seoweb [ 23. Aug 2017, 08:22 ] |
Post subject: | Change SRC DYNAMICALLY |
Hi. What is the right way to change src dynamically? Change src of iframe but then i get iframe interface not ai-interface. |
Author: | TinyWebGallery [ 23. Aug 2017, 09:39 ] |
Post subject: | Re: Change SRC DYNAMICALLY |
What do you mean with dynamically? who is changing the url how? Best, Michael |
Author: | seoweb [ 23. Aug 2017, 12:34 ] |
Post subject: | Re: Change SRC DYNAMICALLY |
Change url by ajax/js on user input. |
Author: | TinyWebGallery [ 23. Aug 2017, 14:12 ] |
Post subject: | Re: Change SRC DYNAMICALLY |
o.k. but what do you expect then? That the resize is done again? What is ai-interface for you? Because if you change the url the onload event if the iframe should be triggered which does some stuff. But what else? Best, Michael |
Author: | seoweb [ 23. Aug 2017, 17:12 ] |
Post subject: | Re: Change SRC DYNAMICALLY |
iframe-interface.... onmouseover top shows buttons of download and print, bottom right shows zoom. ai-interface... onmouseover top right shows button show-fullpage and bottom show page 1 of x and zoom. My src is pdf-document. On start its ai-interface but when src changes by js i get iframe-interface and it is confusing. I think i should run some command to unload/load or resize after src changed to get ai-interface as the beginning. Hope you understand my explanation. |
Author: | TinyWebGallery [ 23. Aug 2017, 18:56 ] |
Post subject: | Re: Change SRC DYNAMICALLY |
You need to change the url different: //docs.google.com/gview?url=' . $src . '&embedded=true is how i display the pdf If you use NATIVE:<your pdf> you get the native display of your pdf. Best, Michael |
Author: | seoweb [ 23. Aug 2017, 20:04 ] |
Post subject: | Re: Change SRC DYNAMICALLY |
That's correct. Thank you. When open the console i discover another error: Uncaught {result: {…}, body: "{"error":{"code":-1,"message":"A network error occurred, and the request could not be completed."}}", headers: {…}, status: null, statusText: null} Any idea what it is? |
Author: | TinyWebGallery [ 23. Aug 2017, 22:36 ] |
Post subject: | Re: Change SRC DYNAMICALLY |
Seems there is a json data coming from somewhere. Do you see the file that causes this? Because I don't use this kind of structure. Best, Michael |
Author: | seoweb [ 24. Aug 2017, 09:57 ] | ||
Post subject: | Re: Change SRC DYNAMICALLY | ||
Where do i find the file?
|
Author: | TinyWebGallery [ 24. Aug 2017, 12:17 ] |
Post subject: | Re: Change SRC DYNAMICALLY |
client6 ??? on the right side. On the network tab you then wee where this file is loaded from. Best, Michael |
Author: | seoweb [ 24. Aug 2017, 13:59 ] |
Post subject: | Re: Change SRC DYNAMICALLY |
https://clients6.google.com/drive/v2internal/viewerimpressions?key=AIzaSyDVQw45DwoYh632gvsP5vPDqEKvb-Ywnb8&alt=json Is this ai-related files? |
Author: | TinyWebGallery [ 24. Aug 2017, 14:14 ] |
Post subject: | Re: Change SRC DYNAMICALLY |
no google.com is not from me . Best, Michael |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |