same code is displaying differently

  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post March 19th, 2008, 8:19 am

hello..

i'm having a display issue, where as far as i can tell i have the same code on two pages: example.php and images.php. but they're displaying the page differently. example.php is how i want the page to be displayed, with the tabbed areas. any ideas on why my dumb images page is rendering it differently?
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 19th, 2008, 8:19 am

  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post March 19th, 2008, 8:55 am

To be sure that they are both the same code, either download a free comparison tool or use the comp command in DOS.
How do you know when a politician is lying? His mouth is moving.
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Joined: Oct 02, 2007
  • Posts: 575
  • Loc: Phoenix, AZ
  • Status: Offline

Post March 19th, 2008, 9:32 am

I'm getting a JavaScript error in the images.php page, saying "initTabs is not defined".

My guess is that it might have to do with the location of an external js file relative to the directory the pages are in.

I could be wrong, though, I'm a total JavaScript n00b.
phoenix web design
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post March 19th, 2008, 10:02 am

well the example uses the same javascript, however, the method in which the page is created is different.
in the example, its just one file. no tricky php business >.<
in the image.php file, i define some variables, one of which is the javascript line, along with the content, and then i include my template.php file. so i'm wondering if using the php includes is doing something screwy with the javascripts..?

don2007 wrote:
..or use the comp command in DOS.

you haven't been able to boot to DOS since ME :P
the command prompt exists in windows ;]
<= uses linux :] lol (sorry for poking fun, couldn't resist -_-)



// rofl..oops. <scrypt is not a tag >.<
// thanks for the tip
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post March 19th, 2008, 4:39 pm

LOL, When you're right, you're right.
How do you know when a politician is lying? His mouth is moving.
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post March 20th, 2008, 2:21 am

Don2007 wrote:
LOL, When you're right, you're right.

not a bad thing imho.
^_^
Image
"In a world without walls and fences, who needs Windows and Gates?"

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 106 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.