[PHP] PHP intereferes with my Javascript
I posted just before, i think i'll try again and re-word... I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at the source generated it looks exactly like before it was split. BUT the javascript generates errors. Does anyone have any idea why this might happen? ANY help is much appreciated. -- Adam Wilson __ Webmaster 123Doc Ltd www.123doc.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP intereferes with my Javascript
It's not because of the splitting up... Because the browser does not even know about that. Save both files to disk and do a diff on them. I bet there will be a few lines... Mike *** REPLY SEPARATOR *** On 03/01/2003 at 5:21 PM Adam Wilson wrote: I posted just before, i think i'll try again and re-word... I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at the source generated it looks exactly like before it was split. BUT the javascript generates errors. Does anyone have any idea why this might happen? ANY help is much appreciated. -- Adam Wilson __ Webmaster 123Doc Ltd www.123doc.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP intereferes with my Javascript
-Original Message- From: Adam Wilson To: [EMAIL PROTECTED] I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at the source generated it looks exactly like before it was split. BUT the javascript generates errors. Does anyone have any idea why this might happen? -- If you're absolutely sure the generated source is completely identical, then no I have no idea -- what you are doing is exactly how I generate the majority of my pages, and it works fine. You really need to relate the JavaScript errors back to the source as displayed by your browser, work out why that page as displayed generates that error (not always easy in itself!), and then work out why your script generates the erroneous output. I've been through this process a couple of times, and it can sometimes be quite painful...! If you've got a decent file comparator handy, it might be worth flinging your original static page and a Save As of the generated page at it, to see if it detects anything your human eye failed to!! Cheers! Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP intereferes with my Javascript
two problemes here, off-topic, and i didn't see the code to figure out the error but maybe you forgot to remove the htmlhead... parts from each include except the header? regards, Khalid Al-Kary I posted just before, i think i'll try again and re-word... I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at the source generated it looks exactly like before it was split. BUT the javascript generates errors. Does anyone have any idea why this might happen? ANY help is much appreciated. -- Adam Wilson __ Webmaster 123Doc Ltd www.123doc.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP intereferes with my Javascript
At 1/3/2003 05:21 PM, you wrote: I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at the source generated it looks exactly like before it was split. BUT the javascript generates errors. Does anyone have any idea why this might happen? When you include these headers, are all the files that are accessing them in the same directory? Are your references in your javascripts absolute or relative? If they're relative, and you change directories, the code breaks. But again, I haven't seen the code so I can't say. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Email: [EMAIL PROTECTED] Web: www.healthtvchannel.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php