same code is displaying differently

  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

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?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

To be sure that they are both the same code, either download a free comparison tool or use the comp command in DOS.
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Posts: 575
  • Loc: Phoenix, AZ

Post 3+ Months Ago

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.
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

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
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

LOL, When you're right, you're right.
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2521
  • Loc: /usr/src/MI

Post 3+ Months Ago

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

not a bad thing imho.
^_^

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 51 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.