| User | Post |
|
1:04 July 17, 2008
| Jay
Guest
| | | |
|
| |
|
|
Doh! I see where getFirstParam gets called, I was blind yesterday. sorry.
I also notice that the resize works when it’s sizing up, but not when its sizing down.
eg. If theres a small amount of content on page1, and on the next page there is more, and the next there is more, the resizing will work perfectly.
but if there is a large ammount of content on page 1, when you go to page 2 (which has less content), the resizing will not work.
|
|
|
3:14 July 17, 2008
| johny
Member
| | | |
|
| posts 69 |
|
|
jp & jay
- suggestion, try clearing your browser cache.
- also, try using a different kind of browser (firefox, internet explorer, safari, etc). if you find this code does not work only with a particular browser, but does work with other browsers, please let us know.
- make sure javascript is not disabled in your browser.
- make sure your fallback size is large enough (as explained above).
- retrace the instructions here carefully, and make sure you have performed all steps correctly.
- make sure your double-quotes are normal, as explained in a previous reply.
- if you check my sample survey link, you’ll see that it does shrink the iframe properly when the survey goes from a tall page to a short page, as well as short to tall.
- maybe there’s something in your gizmo template which is conflicting?
- my sample survey works in both firefox and internet explorer, but i’ve only tested it in windows. has anyone out there tried it on mac or linux?
i apologize that i don’t have a lot of time at the moment to troubleshoot your problem.
|
|
|
3:45 July 17, 2008
| johny
Member
| | | |
|
| posts 69 |
|
|
incidentally, if you want your iframe survey to be transparent, so you can see the webpage behind it, don’t forget the following fix for ie:
http://www.surveygizmo.com/forum/how-do-i-how-does-this-work-wtf/how-to-make-embed-transparent-in-internet-explorer/page-1/
|
|
|
3:34 July 19, 2008
| Starr
Guest
| | | |
|
| |
|
|
Hi,
I stumbled on to this great script by accident and could use a little help setting it up. I’m not using wordpress or a survey but a regular webpage with links which I need loaded in an iframe.
I got the first step and I’ve uploaded the extra files. But where do I put the:
iframe id=”HiddenIframe” width=”1″ height=”1″ style=” position : absolute; top : 0px; left : 0px; visibility: hidden; “/iframe
script type=”text/javascript” src=”http://PATH/TO/YOUR/WEBSERVER/fx.js
/script
script>loadHiddenIframe(
“http://PATH/TO/YOUR/WEBSERVER/hiddeniframe.html”
)/script
I’ve changed the path to my own, but does this go on the page that is being loaded? I’ve tried it but can’t get it to work. Any help would be appreciated.
Thanks!
|
|
|
7:58 July 20, 2008
| johny
Member
| | | |
|
| posts 69 |
|
|
johny said:
go to the SurveyGizmo.com/Edit Survey/”Look and Feel” page.
scroll down to “This Theme’s HTML Template”.
scroll inside the html template to the bottom, and paste the code below.
|
|
|
2:50 August 21, 2008
| Saran
Guest
| | | |
|
| |
|
|
Hi Johny,
The above solution of yours works great for any normal aspx page as iframe source.
When the source page of iframe is ajax enabled, this solution doesnt work. Since the page will not reload during ajax requests, this solution fails abruptly.. is there any workaround for ajax enabled pages?
Thanks in advance!
Saran
|
|
|
5:51 August 22, 2008
| johny
Guest
| | | |
|
| |
|
|
hi saran
i'm not an ajax expert. you'll need to experiment, or maybe someone else here can help. here are some thoughts.
i'm assuming that you are using ajax to page through the survey, without refreshing the entire webpage. that alone is a neat trick you should share on this forum!
i believe you need to hook the auto-fit triggers into the ajax refresh event somehow. the normal sequence of my code is:
- when the survey loads into the iFrame in your webpage, my script inside the survey calls the LoadHiddenIframe function (which is supposed to be located in your parent web-page)
- that function loads the hidden iFrame inside the survey
- the hidden iFrame in turn calls the resizeIframe function (located in my js file, which you should have uploaded to your server)
so, if your ajax-survey is not resizing, maybe one of the above actions is not happening. maybe you missed one of the steps in my setup instructions.
it might help for you to get the thing working without ajax first, if you haven't.
jp, jay? did you solve your issue?
|
|