Guest Posted May 11, 2009 Posted May 11, 2009 well, i have been imbedding stuff happily as iframe until this evening, i thought it would be striaght forward to replace the Iframe code with the java script... well it seems not. Upon trying this, it has produced an awful result (all of my right hand column now appears on the left hand side beneath the left column. So, my question is, now do you embed an java script in to an iframe - or in to the centre console without making the right hand column run to the left. i tried the following <iframe script type="text/javascript" src="http://b1.perfb.com/cujs.php?PURL=holidaydestinations.at/ilikecentre&CID=328" width="800" height="950" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe> but thats not the answer but its closer - this produced the frame, but exploded the javascript. so how to you set out a frame to then places a script inside. my website is www.ilike-centre.com thank you for looking.
steve_s Posted May 11, 2009 Posted May 11, 2009 well, i have been imbedding stuff happily as iframe until this evening, i thought it would be striaght forward to replace the Iframe code with the java script... well it seems not. Upon trying this, it has produced an awful result (all of my right hand column now appears on the left hand side beneath the left column. So, my question is, now do you embed an java script in to an iframe - or in to the centre console without making the right hand column run to the left. i tried the following <iframe script type="text/javascript" src="http://b1.perfb.com/cujs.php?PURL=holidaydestinations.at/ilikecentre&CID=328" width="800" height="950" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe> but thats not the answer but its closer - this produced the frame, but exploded the javascript. so how to you set out a frame to then places a script inside. my website is www.ilike-centre.com thank you for looking. make a new file in catalog/includes/modules/ folder say java_box.php enter this code into it <tr> <td> <script type="text/javascript" src="http://b1.perfb.com/cujs.php?PURL=holidaydestinations.at/ilikecentre&CID=328" width="800" height="950" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="auto"></script> </td> </tr> now in files you want add <?php include(DIR_WS_MODULES. 'java_box.php'); ?> if outside any php coding if not knock off the <?php and >?
Guest Posted May 11, 2009 Posted May 11, 2009 make a new file in catalog/includes/modules/ foldersay java_box.php enter this code into it <tr> <td> <script type="text/javascript" src="http://b1.perfb.com/cujs.php?PURL=holidaydestinations.at/ilikecentre&CID=328" width="800" height="950" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="auto"></script> </td> </tr> now in files you want add <?php include(DIR_WS_MODULES. 'java_box.php'); ?> if outside any php coding if not knock off the <?php and >? Good evening Steve, Didnt work :( take a look at my website. hmmmm, i wonder if i have missed somethign like a br tag. what do you think? www.ilike-centre.com
steve_s Posted May 11, 2009 Posted May 11, 2009 Good evening Steve,Didnt work :( take a look at my website. hmmmm, i wonder if i have missed somethign like a br tag. what do you think? www.ilike-centre.com I cant even find it, in view source ok find this in index.php 2nd occurance we want <tr> <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> add under it <tr> <td><?php include(DIR_WS_MODULES . 'java_box.php'); ?></td> </tr> see if that works
Guest Posted May 11, 2009 Posted May 11, 2009 I cant even find it, in view source ok find this in index.php 2nd occurance we want <tr> <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> add under it <tr> <td><?php include(DIR_WS_MODULES . 'java_box.php'); ?></td> </tr> see if that works click on the holidays link - do apologise. its on the holiday page.
steve_s Posted May 11, 2009 Posted May 11, 2009 click on the holidays link - do apologise. its on the holiday page. ok look at layout, at first <td> you see after table if 2 tables nested then <td> after 2nd table in that file add <?php include(DIR_WS_MODULES . 'java_box.php'); ?> making sure it has the end </td> try and keep same layout i cant start firefox to use firebug addon to investigate more
Guest Posted May 11, 2009 Posted May 11, 2009 <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('HOLIDAYS', tep_href_link(FILENAME_EXPEDIA, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <img src="/images/pixel_trans.gif" width="100%" height="2"><br> <table width="100%" cellspacing="0" cellpadding="5" > <tr class="infoBoxHeading"> <td class="infoBoxHeading"><?php echo HEADING_TITLE; ?></td> </tr> </table> </td> </table></form> <?php require(DIR_WS_BOXES . 'java_holiday.php'); ?> </td> <!-- body_text_eof //--> have i placed it in the wrong place?
steve_s Posted May 11, 2009 Posted May 11, 2009 <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('HOLIDAYS', tep_href_link(FILENAME_EXPEDIA, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <img src="/images/pixel_trans.gif" width="100%" height="2"><br> <table width="100%" cellspacing="0" cellpadding="5" > <tr class="infoBoxHeading"> <td class="infoBoxHeading"><?php echo HEADING_TITLE; ?></td> </tr> </table> </td> </table></form> <?php require(DIR_WS_BOXES . 'java_holiday.php'); ?> </td> <!-- body_text_eof //--> have i placed it in the wrong place? change it to this <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('HOLIDAYS', tep_href_link(FILENAME_EXPEDIA, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <img src="/images/pixel_trans.gif" width="100%" height="2"><br> <table width="100%" cellspacing="0" cellpadding="5" > <tr class="infoBoxHeading"> <td class="infoBoxHeading"><?php echo HEADING_TITLE; ?></td> </tr> <?php require(DIR_WS_BOXES . 'java_holiday.php'); ?> </table> </td> </table></form> </td> <!-- body_text_eof //--> the <tr><td> and </td></tr> are still in java_box.php if not add them before and after the java script
Guest Posted May 11, 2009 Posted May 11, 2009 change it to this <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('HOLIDAYS', tep_href_link(FILENAME_EXPEDIA, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <img src="/images/pixel_trans.gif" width="100%" height="2"><br> <table width="100%" cellspacing="0" cellpadding="5" > <tr class="infoBoxHeading"> <td class="infoBoxHeading"><?php echo HEADING_TITLE; ?></td> </tr> <?php require(DIR_WS_BOXES . 'java_holiday.php'); ?> </table> </td> </table></form> </td> <!-- body_text_eof //--> the <tr><td> and </td></tr> are still in java_box.php if not add them before and after the java script yes they are. its got better my friend, as teh Box has now moved to the center console, but the righthand column hasnt moved back... here is a question, is it because the java script is taking the full page width and therefore the left hand co,umn has to move down?? if so is there a way to the to limit this expansion - providing this is the problem.
Guest Posted May 11, 2009 Posted May 11, 2009 yes they are. its got better my friend, as teh Box has now moved to the center console, but the righthand column hasnt moved back... here is a question, is it because the java script is taking the full page width and therefore the left hand co,umn has to move down?? if so is there a way to the to limit this expansion - providing this is the problem. also something else. the java script isnt working properly, i think its getting lost in translation in the PHP.
steve_s Posted May 11, 2009 Posted May 11, 2009 yes they are. its got better my friend, as teh Box has now moved to the center console, but the righthand column hasnt moved back... here is a question, is it because the java script is taking the full page width and therefore the left hand co,umn has to move down?? if so is there a way to the to limit this expansion - providing this is the problem. yes change this in the java_box.php width="800" to width="300" see if that works
Guest Posted May 11, 2009 Posted May 11, 2009 yes change this in the java_box.php width="800" to width="300" see if that works Darn, i thought that was it... :-( is there another way of doing instead of doing it? i have no idea to problem solve it.
steve_s Posted May 11, 2009 Posted May 11, 2009 Darn, i thought that was it... :-( is there another way of doing instead of doing it? i have no idea to problem solve it. change </table> </td> </table></form> </td> to </table> </td> </tr> </table></form> </td>
Guest Posted May 11, 2009 Posted May 11, 2009 Hi Steve, Sorry for the delay, but i didnt get an email for this, anyway i tried but still No Luck :-( <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('HOLIDAYS', tep_href_link(FILENAME_EXPEDIA, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <img src="/images/pixel_trans.gif" width="100%" height="2"><br> <table width="100%" cellspacing="0" cellpadding="5" > <tr class="infoBoxHeading"> <td class="infoBoxHeading"><?php echo HEADING_TITLE; ?></td> </tr> <tr> <td> <?php require(DIR_WS_BOXES . 'java_holiday.php'); ?> </table> </td> </tr> </table></form> </td> <!-- body_text_eof //-->
steve_s Posted May 11, 2009 Posted May 11, 2009 change it to this <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('HOLIDAYS', tep_href_link(FILENAME_EXPEDIA, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <img src="/images/pixel_trans.gif" width="100%" height="2"><br> <table width="100%" cellspacing="0" cellpadding="5" > <tr class="infoBoxHeading"> <td class="infoBoxHeading"><?php echo HEADING_TITLE; ?></td> </tr> <?php require(DIR_WS_BOXES . 'java_holiday.php'); ?> </table> </td> </tr> </table></form> </td> <!-- body_text_eof //-->
Guest Posted May 11, 2009 Posted May 11, 2009 Oh dear, that didnt work and its seems to be making No Change :-(
steve_s Posted May 11, 2009 Posted May 11, 2009 Oh dear, that didnt work and its seems to be making No Change :-( here is view source where is this doctype and extra body coming from? !-- body_text //--> <td width="100%" valign="top"><form name="HOLIDAYS" action="http://www.ilike-centre.com/expedia00.php?action=send" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <img src="/images/pixel_trans.gif" width="100%" height="2"><br> <table width="100%" cellspacing="0" cellpadding="5" > <tr class="infoBoxHeading"> <td class="infoBoxHeading">Holidays Powered by Expedia</td> </tr> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <tr> <td> <script type="text/javascript" src="http://b1.perfb.com/cujs.php?PURL=holidaydestinations.at/ilikecentre&CID=328" width="300" height="600" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="auto"></script> </td> </tr> </body> </html> </table> </td> </tr> </table></form> </td> <!-- body_text_eof //-->
Guest Posted May 11, 2009 Posted May 11, 2009 here is view source where is this doctype and extra body coming from? !-- body_text //--> <td width="100%" valign="top"><form name="HOLIDAYS" action="http://www.ilike-centre.com/expedia00.php?action=send" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <img src="/images/pixel_trans.gif" width="100%" height="2"><br> <table width="100%" cellspacing="0" cellpadding="5" > <tr class="infoBoxHeading"> <td class="infoBoxHeading">Holidays Powered by Expedia</td> </tr> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <tr> <td> <script type="text/javascript" src="http://b1.perfb.com/cujs.php?PURL=holidaydestinations.at/ilikecentre&CID=328" width="300" height="600" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="auto"></script> </td> </tr> </body> </html> </table> </td> </tr> </table></form> </td> <!-- body_text_eof //--> Now this is no joke, i was just looking at that - i use dreamweaver, and i opened a new PHP file to write you script in to and its puts the doctype in. Now i think i ahve since taken the script directly in to the page, but i'll will by pass the php requires link and see if it works - i'll try that in 30second The doctype shouldnt effect it ... should it? :(
Guest Posted May 11, 2009 Posted May 11, 2009 hi, steve, <?php /* $Id: information.php,v 1.5 2002/01/11 22:04:06 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2001 osCommerce Released under the GNU General Public License */ ?> <!-- pink //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'Left', 'text' => '<script type="text/javascript" src="http://b1.perfb.com/cujs.php?PURL=holidaydestinations.at/ilikecentre&CID=328" width="300" height="600" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="auto"></script>'); new infoBox($info_box_contents); ?> </td> </tr> <!--_link_eof //--> what you think now. link is http://www.ilike-centre.com/expedia00.php
steve_s Posted May 11, 2009 Posted May 11, 2009 Now this is no joke, i was just looking at that - i use dreamweaver, and i opened a new PHP file to write you script in to and its puts the doctype in. Now i think i ahve since taken the script directly in to the page, but i'll will by pass the php requires link and see if it works - i'll try that in 30second The doctype shouldnt effect it ... should it? :( no but <body> and </body> </html> would
Guest Posted May 11, 2009 Posted May 11, 2009 no but <body> and </body> </html> would ok, well i have taken that all out as you can see from my second to previous post. i have encased it in a box - but i am not sure why the box spans the entire side of the site. anyways. i am very tired, if it is ok with you, could we come back to this tomorrow evening? i need to be up early for work.
steve_s Posted May 11, 2009 Posted May 11, 2009 ok, well i have taken that all out as you can see from my second to previous post. i have encased it in a box - but i am not sure why the box spans the entire side of the site. anyways. i am very tired, if it is ok with you, could we come back to this tomorrow evening? i need to be up early for work. Same :)
Guest Posted May 11, 2009 Posted May 11, 2009 Same :) ok - brill, i'll tag on you here tomorrow evening.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.