Solved

java script and php

Posted on 2011-03-14
9
306 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
 
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now