HELP PLEASE!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DCorker
Forum Newbie
Posts: 2
Joined: Mon Feb 21, 2011 9:02 am

HELP PLEASE!!!

Post by DCorker »

Hi Guys,

I am new to PHP and need some help urgently.

I have the below code and I cant seem to get the Java working.

Print "<td><a href='#' onmouseover='drc('test','test'); return true;' onmouseout='nd(); return true;'>
".$info['venue'] . "</a></td>";

I have it working on another page and I have an overlay.js included in the above page.

Thanks
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: HELP PLEASE!!!

Post by Darhazer »

the problem is in the HTML itself:

Code: Select all

onmouseover='drc('test','test'); return true;'
have to be

Code: Select all

onmouseover='drc(\'test\',\'test\'); return true;'
DCorker
Forum Newbie
Posts: 2
Joined: Mon Feb 21, 2011 9:02 am

Re: HELP PLEASE!!!

Post by DCorker »

Thanks for this, but it still isnt working, I am now getting a Java error on the page, incorrect character.
Please help me:)

Here is my code so far:
Print "<td>
<a href='#' onmouseover='drc(\'test\',\'test\'); return true;' onmouseout='nd(); return true;'>
<font color=white>".$info['venue'] . "</font></a></td>";
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: HELP PLEASE!!!

Post by Darhazer »

could you please post the exact message, as well as the javascript itself
crazycoders
Forum Contributor
Posts: 260
Joined: Tue Oct 28, 2008 7:48 am
Location: Montreal, Qc, Canada

Re: HELP PLEASE!!!

Post by crazycoders »

Make sure also you are not confusing PHP functions and Javascript functions. You can't call a php function from a javascript link, these are two completely different topics!
Post Reply