Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

java script and php

Posted on 2011-03-14
9
Medium Priority
?
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

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.

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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

704 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