Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 22. Nov 2024, 11:06

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Change SRC DYNAMICALLY
PostPosted: 23. Aug 2017, 08:22 
Offline

Joined: 23. Aug 2017, 08:07
Posts: 6
Hi. What is the right way to change src dynamically? Change src of iframe but then i get iframe interface not ai-interface.


Top
 Profile  
 
PostPosted: 23. Aug 2017, 09:39 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
What do you mean with dynamically? who is changing the url how?

Best, Michael


Top
 Profile  
 
PostPosted: 23. Aug 2017, 12:34 
Offline

Joined: 23. Aug 2017, 08:07
Posts: 6
Change url by ajax/js on user input.


Top
 Profile  
 
PostPosted: 23. Aug 2017, 14:12 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
PostPosted: 23. Aug 2017, 17:12 
Offline

Joined: 23. Aug 2017, 08:07
Posts: 6
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.


Top
 Profile  
 
PostPosted: 23. Aug 2017, 18:56 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
PostPosted: 23. Aug 2017, 20:04 
Offline

Joined: 23. Aug 2017, 08:07
Posts: 6
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?


Top
 Profile  
 
PostPosted: 23. Aug 2017, 22:36 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
PostPosted: 24. Aug 2017, 09:57 
Offline

Joined: 23. Aug 2017, 08:07
Posts: 6
Where do i find the file?


Attachments:
2017-08-24_09-56-12.jpg
2017-08-24_09-56-12.jpg [ 147.36 KiB | Viewed 4872 times ]
Top
 Profile  
 
PostPosted: 24. Aug 2017, 12:17 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
client6 ??? on the right side. On the network tab you then wee where this file is loaded from.

Best, Michael


Top
 Profile  
 
PostPosted: 24. Aug 2017, 13:59 
Offline

Joined: 23. Aug 2017, 08:07
Posts: 6
https://clients6.google.com/drive/v2internal/viewerimpressions?key=AIzaSyDVQw45DwoYh632gvsP5vPDqEKvb-Ywnb8&alt=json
Is this ai-related files?


Top
 Profile  
 
PostPosted: 24. Aug 2017, 14:14 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
no
google.com
is not from me :).

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy