Hi
This query is related to js and php.
However thought to post here, i may post in php forum later if necessary.
I have worked with this for day's and not having much luck.
The code performs a float and position task and it is complex. I don't fully understand it and if anyone can help that would be greatly appreciated.
I am using an iframe. The iframe floats over the index page and contains a form.
However its not the float and position that is the problem. When i enter new detail to make the form within these codes, then suddenly the iframe doesn't act as i need. In fact it doesn't even load the background image or form within the iframe. If you visit www.fotosuccess.com/test.php you will see that the form there has two fields, one for 'Your Name' and one for 'Your E-mail'. I thought i could code it to have radio buttons instead of text fields, but i didn't have much luck. Then i tested a change of text, i changed the 'N' in 'Your Name' to another letter, and even a simple change like that stopped it from loading the image and form.
I don't quite know why the code is this way but mostly it works so that is good so far.
Part of the code is here, with the form:
This file runs lots of strings with v810###### etc etc. Does anyone know if this is relative to a pixel positioning on the screen?Code:v3c08db6774.style.position='absolute'; v3c08db6774.style.width='100%'; v3c08db6774.style.height='100%'; v3d08db6774=v3108db6774(v3c08db6774); v3d08db6774.write('<BODY scroll="auto" style="margin:0px;scrollbar-base-color:#000000;background-color:transparent;background-image:url(\'http://www.fotosuccess.com/images/popup2.jpg\');background-attachment:fixed"><P style="MARGIN: 6px"><FONT face="Arial, Helvetica, sans-serif"><FONT size=2>\n<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">\n<TBODY>\n<TR height=250>\n<TD width=242></TD>\n<TD></TD></TR>\n<TR>\n<TD></TD>\n<TD><!-- GetResponse subscription form | start -->\n<FORM id=GRSubscribeForm accept-charset=UTF-8 method=post action=http://www.fotosuccess.com/cgi-bin/add.cgi>\n<FIELDSET>\n<TABLE>\n<TBODY>\n<TR>\n<TD><STRONG><LABEL for=GRCategory2>Your name</LABEL>:</STRONG> </TD>\n<TD><INPUT id=GRCategory2 size=17 name=category2></TD></TR>\n<TR>\n<TD><STRONG><LABEL for=GRCategory3>Your E-Mail</LABEL>:</STRONG></TD>\n<TD><INPUT id=GRCategory3 size=17 name=category3></TD></TR></TBODY></TABLE>\n<CENTER><INPUT value="Continue" type=submit> </CENTER></FIELDSET> <INPUT value=onlinegame type=hidden name=category1> <INPUT value=http://www.fotosuccess.com/form_1b.php type=hidden name=confirmation> <INPUT value=069 type=hidden name=ref> <INPUT value=get type=hidden name=getpostdata> \n<STYLE>\n<!--\n/* form box */\n#GRSubscribeForm fieldset {\nwidth: 260px; \nborder: 0;\n}\n \n/* comment about GetResponse */\n#GRSubscribeForm p {\nfont-size: x-small;\n}\n \n/* table used to position form elements */\n#GRSubscribeForm table {\nborder: 0;\n}\n \n-->\n</STYLE>\n</FORM>\n<DIV></DIV></TD></TR></TBODY></TABLE></FONT></FONT></P></BO'+'DY>'); v3d08db6774.close();setTimeout("v3808db6774();",0);}function v4008db6774(){if(window.PTKAtFront&&window.PTKAtFront !=v4108db6774)PTKAtFront(); window["PTKAtFront"]=v4108db6774;v2808db6774.style.zIndex=1; if(v2708db6774)v2708db6774.style.zIndex=1; }
If anyone could think of why this stops working when a simple entry is changed in the form code, please let me know. Or if you have any ideas on how to edit the form code to allow for radio buttons, please please post.
Thanks in advance
Steve



Reply With Quote


Bookmarks