Solved

java script and php

Posted on 2011-03-14
9
309 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

831 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