Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Problem integrating PhP, js, html
Old 08-25-2004, 06:52 AM Problem integrating PhP, js, html
Novice Talker

Posts: 11
Trades: 0
I am writing php program in which at a certain point i need to mix three languages, php, javascript and html in the same line. the output of what im doing is correct but i still get an error on page message in internet explorer.
here is the line of code:

document.write("&nbsp;<a href=http://www.linkedpage.htm target=gf onClick=fgf = window.open('','gf');fgf.focus()>

(followed by - but less important)
<font size=<? echo "$fontsize" ; ?> color=#<? echo "$titlefontcolor" ; ?> face=<? echo "$fonttype" ; ?>>Recent Studies:</font></a>");

the function fgf just opens the linked page in a new window. I know there isnt much code there to play with but i know the problem is just something like missing " or something. the mixture of 3 languages in causing the problems, cause php has " as a special character. anyone have any suggestions on how to make this line of code work ??
"onlick=fgf = window.open('','gf');" - this part is where im guessing the problem arises cause of the two equals signs... any ideas anyone ?
hodgy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-26-2004, 06:30 AM
Ultra Talker

Posts: 377
Trades: 0
Uhhh... First of all: do you really need to mix all langauges???
second: i use php's "print" function" if i were you
three: why don't you write like this
onClick=window.open(...
for what do you need such a construction : onClick=fgf=window.open(... ???
__________________
andrews_john

Please login or register to view this content. Registration is FREE
andrews_john is offline
Reply With Quote
View Public Profile Visit andrews_john's homepage!
 
Reply     « Reply to Problem integrating PhP, js, html
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10095 seconds with 12 queries