Solved

java script and php

Posted on 2011-03-14
9
311 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

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!

Question has a verified solution.

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

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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 count occurrences of each item in an array.

759 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