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 20. Apr 2024, 04:13

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  [ 42 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: 20. Apr 2018, 04:00 
Offline

Joined: 20. Apr 2018, 03:10
Posts: 23
Hello
I am new to Wordpress and Advanced Iframe, need to embed an asp.net page into the wordpress in the same domain.
This is my code
[advanced_iframe src= "http://www.abc.com/parent.aspx" width=“100%” height=“50px” use_shortcode_attributes_only="true" onload_resize="true"]
The parent.aspx has one link, <a href = "link1.aspx">link1</a>. Clicking on the link1 goes to link1.aspx page. It works well. However, refreshing the link1.aspx will automatically reload parent.aspx. This is NOT what I want. I want link1.aspx to be reloaded when clicked. Any idea?
Another question is the parent.aspx has an external link <a href = “http://www.XYZ.com">XYZ</a>. Clicking on the XYZ link goes to XYZ page. However the XYX page is still embedded in the parent.aspx with the header of parent.aspx. How to fix it?
Thank you in advance.


Top
 Profile  
 
PostPosted: 22. Apr 2018, 08:55 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
So you mean that if you click on a link that after a page reload you want to have the last page loaded again?

Like: http://www.tinywebgallery.com/blog/adva ... -to-parent ?

So you like to change the link target:
http://www.tinywebgallery.com/blog/adva ... argets#e10

Best, Michael


Top
 Profile  
 
PostPosted: 23. Apr 2018, 21:16 
Offline

Joined: 20. Apr 2018, 03:10
Posts: 23
Thank you Michael.

The first problem was resolved.
The second is not yet. Here is my code, somewhere is wrong?

The following link in http://www.abc.com/parent.aspx

<a href = “http://www.XYZ.com" id="linkXYZ">XYZ</a>

[advanced_iframe src= "http://www.abc.com/parent.aspx" width=“100%” height=“50px” use_shortcode_attributes_only="true" onload_resize="true"
map_parameter_to_url="page" add_iframe_url_as_param="same" change_parent_links_target="a#linkXYZ" change_iframe_links="#iframe-navigation a,form" change_iframe_links_target="_blank"]

The http://www.XYZ.com page is stilled shown in the iframe with URL http://www.abs.com/?page=undefined

Thank you in advance for replying.

(FYI: We bought the pro version including Extend support to 12 months services)


Top
 Profile  
 
PostPosted: 24. Apr 2018, 08:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The link you want to change is IN the iframe?

change_iframe_links="#iframe-navigation a,form" change_iframe_links_target="_blank"

is the right solution but I think that your selector is different.

change_iframe_links="a" change_iframe_links_target="_blank"

does change ALL links in the iframe to be opened in a new window. If you like that ony spefic links are changed then you have to narrow down the selector. See the jQuery help I have included on the help tab...

Best, Michael


Top
 Profile  
 
PostPosted: 24. Apr 2018, 13:32 
Offline

Joined: 20. Apr 2018, 03:10
Posts: 23
Yes, the the link I want to change is IN the iframe.

change_iframe_links="#iframe-navigation a,form" change_iframe_links_target="_blank"
does not work.

change_iframe_links="a" change_iframe_links_target="_blank"
works, but as you said ALL links in the iframe is opened in a new window. (I want some to be opened in the iframe, some to be opened in a new window)

So if the purpose is to open the link in a new window, that can be done by directly adding target = "_blank" to the link <a href = “http://www.XYZ.com" id="linkXYZ">XYZ</a>, right?
Where is the jQuery help? can you post a link?
Thank you!


Top
 Profile  
 
PostPosted: 26. Apr 2018, 08:59 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The jQuery help in on the help tab in the administration like I have written before. Also actually all settings where jQuery can be used have a link in the description.

In your case

change_iframe_links="a#linkXYZ" change_iframe_links_target="_blank"

should work.

Best, Michael


Top
 Profile  
 
PostPosted: 26. Apr 2018, 13:28 
Offline

Joined: 20. Apr 2018, 03:10
Posts: 23
Thank you very much!

change_iframe_links="a#linkZYX" change_iframe_links_target="_blank"
WORKS!!

So, the following code is for A FORM, not A LINK?
change_iframe_links="#iframe-navigation a,form" change_iframe_links_target="_blank"

Thanks again!


Top
 Profile  
 
PostPosted: 26. Apr 2018, 15:05 
Offline

Joined: 20. Apr 2018, 03:10
Posts: 23
the following code
change_parent_links_target="a#link1,a#link2"
is from
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/change-links-targets

I used it on my website and spent a few days to make it work, but had no luck untill I saw your reply today.
It should be
change_parent_links="a#link1,a#link2"

I am right?


Top
 Profile  
 
PostPosted: 27. Apr 2018, 00:23 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
No.

on the website in the demo I show 2 features.
Modifying links on the parent page AND
modifying links IN the iframe.

change_parent_links_target="a#link1,a#link2"
is for the parent page! It modifies the links with the id="link1" and id="link2" so that if you click this link they are opened in the iframe!

change_iframe_links="#iframe-navigation a,form" change_iframe_links_target="_blank"
does change all links the div with the id="iframe-navigation" AND all forms to the target _blank.

You simply where using the wrong feature at the beginning.

Just saw that the display of the demo was broken for the 2nd example. The config for that is fixed now.

Best, Michael


Top
 Profile  
 
PostPosted: 27. Apr 2018, 04:05 
Offline

Joined: 20. Apr 2018, 03:10
Posts: 23
Thank you for explaining it!
I got it.

Another question is about open PDF files in the iframe.
Firefox works, but Chrome does not work (clicking on the PDF link, nothing happens).
Do you have any idea?
Thanks in advance.


Top
 Profile  
 
PostPosted: 27. Apr 2018, 11:00 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you have to check if you maybe get any errors in the browser console.

Best, Michael


Top
 Profile  
 
PostPosted: 2. May 2018, 14:32 
Offline

Joined: 20. Apr 2018, 03:10
Posts: 23
Thank you!

Another question:
An asp.net page having a form of more than 2000px height is embedded in the iframe.
To get ride of the vertical scrollbar, I used onload_resize="true". This works well.
But the form has to be validated using ASP.NET, if anything is missing or wrong, the form cannot be submitted.
At this time the form may be reloaded, and the vertical scrollbar come out.
Any ideas?
Thank you in advance


Top
 Profile  
 
PostPosted: 2. May 2018, 14:51 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Is there a real reload or is this done by Ajax?

Because for reload the onload_resize="true" is enough.
But if this is an ajax call you should use the "resize on element resize".

See: http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/resize-on-element-resize

Best, Michael


Top
 Profile  
 
PostPosted: 2. May 2018, 15:29 
Offline

Joined: 20. Apr 2018, 03:10
Posts: 23
Thank you Michael!
I figured it out.
You are the best!


Top
 Profile  
 
PostPosted: 2. May 2018, 21:35 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Glad I could help. Feel free to do a small review on codecanyon or Wordpress.

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 23 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