Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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