• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

java script and php

i am mixing php with a java script tabbed panels and i am getting problems. can i mix java script with php?

 
err.png
0
helpchrisplz
Asked:
helpchrisplz
  • 6
  • 3
1 Solution
 
Lukasz ChmielewskiCommented:
Yes you can, you have to remember to put php inside <?php and ?> tags.
Is the query outputted intentionally ?
0
 
helpchrisplzAuthor Commented:
i do have it in  <?php and ?> tags.  
i do have a echo message that is outputted with out posting to new page ye
0
 
helpchrisplzAuthor Commented:
here is the page
index.php
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
Lukasz ChmielewskiCommented:
So I assume the tabbed panel does not work ?
Try to move the top php section with text outputs AFTER <body> tag, leaving the functions at the top.

I recommend using jQuery library - easy to use with just a few lines. Also has a built in tabbed pages functionality:
http://jqueryui.com/demos/tabs/
0
 
helpchrisplzAuthor Commented:
oh my server was down to handle the php so thats y the php was showing at the top

tabs not working though. will look at the link
0
 
helpchrisplzAuthor Commented:
ooo ye that look good now check out the style i got as well
gsdgfsd.png
0
 
helpchrisplzAuthor Commented:
very good
0
 
Lukasz ChmielewskiCommented:
Nice, so you got it working with jQuery ?
0
 
helpchrisplzAuthor Commented:
yes
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now