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 5. Dec 2024, 04:38

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
PostPosted: 17. May 2010, 21:17 
Offline

Joined: 17. May 2010, 19:10
Posts: 7
Hello:

I can upload pdf files.
I can see them on the left site on the server side.

I need to click on a pdf file and make the browser open a new window where the pdf is open by the browser full screen. So it will allow me to zoom it, next page... basic features tha the browsers have to open pdf files.

When I click on the file it will open in the same way that when we open pdf link in the browser.

Does anybody know if it can be done?
Maybe by making a JavaScript call?
I tried to preview the pdf but it opens in a xml format.

Let me know if it is possible or I would need a different web tool (component) for Joomla to achieve this task.

Now I have the Standard Edition License - 15 EUR
Maybe if I upgrade to Professional... any suggestion is welcome.

Thank you for your time.


Top
 Profile  
 
 Post subject:
PostPosted: 18. May 2010, 00:53 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you can create a direct link to the file with javascript below the flash. Check the registered demo how to do this.

- Michael


Top
 Profile  
 
 Post subject: I do not see it
PostPosted: 18. May 2010, 14:46 
Offline

Joined: 17. May 2010, 19:10
Posts: 7
I looked the registered demo in this page:

http://www.tinywebgallery.com/en/tfu/web_demo2.php

but I do not see any instructions.


Could you be more specific?

I am using Joomla Flash Uploader. I have it already installed and working under the domain. I am using Professional version.

Everything is working.

I still do not find what I need to open a PDF file from the server side.

Is there a javescript that maybe I need so the Status bar below the flash can trigger to open the pdf full screen or in a new window or tab in the browser?

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: 18. May 2010, 15:01 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
just above the flash is a download link. There I trigger with javascript that different links are shown. This you can extend the way you like.

In JFU you can put the extra javascript code in the text filed of the configuration which is shown below the flash.

- Michael


Top
 Profile  
 
 Post subject: I see what you mean
PostPosted: 18. May 2010, 18:04 
Offline

Joined: 17. May 2010, 19:10
Posts: 7
I just do not know how to do it.

Now this part may help out:

Preview images and pdf's from the remote folder + Fullscreen view. Flash player > 9.0.28 is needed for full screen mode.

This is from "Registered Flash Uploader settings":

Entering a parameter enables that the Javascript function previewSelect(param,id) is called by the flash after selecting an item on the left listing. param is the parameter you specify in the text field. id the number of the element you have selected in the list (starting with 0). If you e.g. enter 'preview.php' you get this parameter in the previewSelect function and you can e.g. call the preview.php on the server that returns a download link to this element and you display this link then with Javascript in an iframe below the flash. Check the help for an example!.

Where is the example? Can you show me more information about this?


Top
 Profile  
 
 Post subject:
PostPosted: 18. May 2010, 19:23 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
the preview of images and pdf's is NOT downloading it. for the pdf a image is created which is returned.

The help is the help button in the right upper corner of JFU. The i have a small example how to use javascript callbacks.

And the TFU download shows a full working standalone example. Just try to understand how this works - then you know how to transfer this to JFU.

- Michael


Top
 Profile  
 
 Post subject: java script examples
PostPosted: 19. May 2010, 15:34 
Offline

Joined: 17. May 2010, 19:10
Posts: 7
This is what I see from the upper right help inside the JFU:

Forum

The forum of the TinyWebGallery has a special section for the Joomla Flash Uploader. Please click here to get some help there if your problem is not covered in the help. Direct Access to this location is not allowed.
The link goes here:
http://www.tinywebgallery.com/en/faq.php

I did not see information about java script here.

Could you copy and paste the examples you have?, so I can see them.

Thank you :)


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2010, 15:39 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I already told you where to get the working example.
http://www.tinywebgallery.com/en/tfu/web_demo2.php

The direct link on this page is
http://www.tinywebgallery.com/dl.php?file=tfu_demo_reg

Here you find the howto use Javascript events:
http://www.tinywebgallery.com/en/tfu/web_jfu.php#he

And If I talk about JFU I mean the help button inside the component which links to the page above.

- Michael


Top
 Profile  
 
 Post subject: This is the HTML code
PostPosted: 19. May 2010, 16:06 
Offline

Joined: 17. May 2010, 19:10
Posts: 7
Here you can see what I am trying to do.

#removed_broken_link

This is an example in HTML with java script that opens a new window.
where 'http://www.google.com' would be the full url of the pdf file that I have clicked on the server side and is passed to the HTML code, wich is executed by the java script.

This can be copied and pasted to test it.

Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Testing Flash HTML</title>

<script type="text/javascript">
function newWindow(url) {
window.open(url,"Window JavaScript", '', 'resizable,scrollbars');

return false;
}
</script>
</head>
<body>

<br/>
<a href="#" onclick="return newWindow('http://www.google.com')">See PDF File I select from the left side - server</a>

</body>
</html>



I am missing information to implement it.

I guess this can be implemented in many ways.

1) Getting the Staus full url to be a hyperlink where I click and open a new window in the browser (if this can be easily done it would be great)

2) Send the Status var to the HTML code and use it instead http://www.google.com

I am using JFU component.

Could you help me to implement it?

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: 19. May 2010, 17:21 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you can display the full url of a file in the flash if you like. It's just not a clickable link.

- Michael


Top
 Profile  
 
 Post subject: suggestions
PostPosted: 19. May 2010, 19:37 
Offline

Joined: 17. May 2010, 19:10
Posts: 7
Yes, we can see the full address. is it possible to make it clickable?how?

What is the name of the variable status?

Can I use that variable and call it like you did with the example in the videotutorial?

I maybe use a javascript with on click event that take status as argument and open a new window.

You are using probably xml to translate the flash to different languages.
I can remove the begining from the xml translation so it only reads http://www.

Do you have any suggestion?


Top
 Profile  
 
 Post subject:
PostPosted: 20. May 2010, 07:38 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you would have to modify the flash sources to make it clickable.

about status.php. Have you not tried my working standalone example? there a javascript event is fired which loads status.php into an iframe whic displays the link.

- 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 45 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