I got you're link. It's easier to show code changes here so I'm putting that info here. I'm not certain this will work. But I noticed that it works in IE sometimes. Always in IE 9. And that in IE 8 sometimes, and that there, the longer it takes before the form loads the better the chance that it loads correctly.
I also see that there are two versions of jQuery on the yaron/form/test.html page. It's only using the second one, which is far in advance of the one it was written for. So we could try running it without the second one. But let's go straight to what I think will work. I also see that there's init code that's not used on the page. Get rid of it and get rid of the first jQuery (remove the highlighted two places):
Code:
<!DOCTYPE HTML>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link rel="stylesheet" href="http://domain_name.ext/path/form/formwizard.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type='text/javascript' src='http://domain_name.ext/path/wp-includes/js/jquery/jquery.js?ver=1.7.2'></script>
<script type="text/javascript" src="http://domain_name.ext/path/form/formwizard.js"></script>
<script type="text/javascript">
var myform=new formtowizard({
formid: 'feedbackform',
persistsection: true,
revealfx: ['slide', 500]
})
</script>
Oh, and if this code isn't being used (doesn't look like it is):
Code:
<script language="javascript" type="text/javascript">
<!--
/****************************************************
Author: Eric King
Url: http://redrival.com/eak/index.shtml
This script is free to use as long as this info is left in
Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
Get rid of it too.
Then, at the bottom where there is an initialization that's used, let's slow that down by making it wait until the iframe is fully loaded (add the highlighted):
Code:
Any additional instructions:<br /> <textarea id="staff_feedback" style="width:350px;height:150px"></textarea><br />
<input type="submit" />
</fieldset>
</form>
<script type="text/javascript">
$(window).load(function(){
var myform3=new formtowizard({
formid: 'staff_feedbackform',
validate: ['staff_username', 'staff_sex', 'staff_addr1'],
revealfx: ['slide', 500] //<--no comma after last setting
})
});
</script>
</body>
</html>
If that's not sufficient, we can try adding a timeout. I'm thinking it might be good enough just like that.
The browser cache may need to be cleared and/or the page refreshed to see changes.
Bookmarks