Solved

java script and php

Posted on 2011-03-14
9
310 Views
Last Modified: 2012-05-11
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
Comment
Question by:helpchrisplz
  • 6
  • 3
9 Comments
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 35125812
Yes you can, you have to remember to put php inside <?php and ?> tags.
Is the query outputted intentionally ?
0
 
LVL 1

Author Comment

by:helpchrisplz
ID: 35125932
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
 
LVL 1

Author Comment

by:helpchrisplz
ID: 35125940
here is the page
index.php
0
Industry Leaders: 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!

 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 500 total points
ID: 35125977
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
 
LVL 1

Author Comment

by:helpchrisplz
ID: 35127060
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
 
LVL 1

Author Comment

by:helpchrisplz
ID: 35127164
ooo ye that look good now check out the style i got as well
gsdgfsd.png
0
 
LVL 1

Author Closing Comment

by:helpchrisplz
ID: 35127167
very good
0
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 35127172
Nice, so you got it working with jQuery ?
0
 
LVL 1

Author Comment

by:helpchrisplz
ID: 35127319
yes
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question