![]() |
|
#1
|
|||
|
|||
|
Hi all,
Im adding a page to vbadvanced CMPS which contains an applet to enter IRC (chat). It has a form, and a <script LANGUAGE="Javascript"> code. When i load the page, it doesnt show anything, only the header an left column... when it starts loading the custom content of the page... it dont load anything more... Is there any thing to do for loading <script LANGUAGE="Javascript"> in cmps pages??? |
|
#2
|
||||
|
||||
|
Do you have this working outside of the CMPS? If so, can you post the code from the working version?
|
|
#3
|
|||
|
|||
|
The cmps page points to a html file. If i load this htmls file directly, it runs perfect. But when load it as cmps?id=page no :S
The code is: Quote:
|
|
#4
|
||||
|
||||
|
Hrmm... Not seeing anything obvious there. Can you link me to the CMPS page you've created for your chat page?
|
|
#5
|
|||
|
|||
|
Yep, the site is not running yet, cause i havent finished all the sections, but chat is here:
http://www.madridnoche.com/cmps_index.php?pagina=chat An direct html is at: http://www.madridnoche.com/foros/paginas/chat/chat.html Last edited by Josechu; 12-22-2007 at 04:28 PM. |
|
#6
|
||||
|
||||
|
Try looking in your chat/chat.html file for this line:
Code:
</body></html> Code:
</ body></ html> The CMPS looks for tags like </body> and </html> when including pages like that in order to cut them off in the proper place and avoid any problems with XHTML validation. If you add the spaces like that though, it should prevent the CMPS from cutting the code off at that point and allow the rest of the code to be printed properly. |
|
#7
|
|||
|
|||
|
Same result
... it doesnt load de content frame.
|
|
#8
|
||||
|
||||
|
Did you perhaps forget to upload the chat/chat.html file after making that change? It still seems to be cutting off in the same place, which shouldn't happen if it can't find those exact tags (</body> </html).
|
|
#9
|
|||
|
|||
|
No, the file is uploaded in right place.
I f in edit the chat.html page, and delete the "<script LANGUAGE="Javascript">.................</script>" part, then the page loadscorrectly, so the error is in javascript code... but i dont know where :S |
|
#10
|
||||
|
||||
|
Sorry if I wasn't specific enough the first time. This is the line that you need to be modifying though:
PHP Code:
PHP Code:
|
|
#11
|
|||
|
|||
|
Wow, now it works perfect. Many thanks Brian
|
|
#12
|
|||
|
|||
|
damn, I'm having the same problem with a vbjirc chat script
the direct URL to the html file works perfectly, but when I embed it in a CMPS page, It starts loading, then shows a red cross, .... Any help much appreciated !! I tried the tps mentioned above, but they don't help here's the url to the page with cmps http://www.abforum.be/index.php?page=chat here's the direct html dir http://www.abforum.be/vbjirc/HeavylApplet.html and the code Code:
<html> <head> <title>ABForum IRC chat</title> </head> <body> <h1>Test page for IRCApplet Class</h1><hr> <applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=640 height=400> <param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab"> <param name="nick" value="Fn9mm"> <param name="alternatenick" value="ABF Gast??"> <param name="fullname" value="Fn9mm - ABF Admin"> <param name="host" value="irc.rizon.net"> <param name="port" value="6667"> <param name="command1" value="/join #"abf> <param name="gui" value="pixx"> <param name="quitmessage" value="has left us"> <param name="asl" value="true"> <param name="useinfo" value="true"> <param name="style:bitmapsmileys" value="true"> <param name="style:smiley1" value=":) img/sourire.gif"> <param name="style:smiley2" value=":-) img/sourire.gif"> <param name="style:smiley3" value=":-D img/content.gif"> <param name="style:smiley4" value=":d img/content.gif"> <param name="style:smiley5" value=":-O img/OH-2.gif"> <param name="style:smiley6" value=":o img/OH-1.gif"> <param name="style:smiley7" value=":-P img/langue.gif"> <param name="style:smiley8" value=":p img/langue.gif"> <param name="style:smiley9" value=";-) img/clin-oeuil.gif"> <param name="style:smiley10" value=";) img/clin-oeuil.gif"> <param name="style:smiley11" value=":-( img/triste.gif"> <param name="style:smiley12" value=":( img/triste.gif"> <param name="style:smiley13" value=":-| img/OH-3.gif"> <param name="style:smiley14" value=":| img/OH-3.gif"> <param name="style:smiley15" value=":'( img/pleure.gif"> <param name="style:smiley16" value=":$ img/rouge.gif"> <param name="style:smiley17" value=":-$ img/rouge.gif"> <param name="style:smiley18" value="(H) img/cool.gif"> <param name="style:smiley19" value="(h) img/cool.gif"> <param name="style:smiley20" value=":-@ img/enerve1.gif"> <param name="style:smiley21" value=":@ img/enerve2.gif"> <param name="style:smiley22" value=":-S img/roll-eyes.gif"> <param name="style:smiley23" value=":s img/roll-eyes.gif"> <param name="style:backgroundimage" value="true"> <param name="style:backgroundimage1" value="all all 0 background.gif"> <param name="style:sourcefontrule1" value="all all Serif 12"> <param name="style:floatingasl" value="true"> <param name="pixx:timestamp" value="true"> <param name="pixx:highlight" value="true"> <param name="pixx:highlightnick" value="true"> <param name="pixx:nickfield" value="true"> <param name="pixx:styleselector" value="true"> <param name="pixx:setfontonstyle" value="true"> </ applet> <hr></ body> </ html> |
|
#13
|
|||
|
|||
|
OK, I solved it by putting these files (IRCApplet.class, irc.jar,pixx.jar, irc.cab, securedirc.cab, pixx.cab) mentioned in the code in my root directory. (edit : works only in IE, not in FF)
Could there be anyway to point to the files in this code in their original dirs ? being ./vbjirc/ ??? Last edited by fn9mm; 01-20-2008 at 08:48 PM. |
|
#14
|
|||
|
|||
|
FYI and others who could use it
changed this line Code:
<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=640 height=400> Code:
<applet CODEBASE="http://www.abforum.be/vbjirc/" code=IRCApplet.class archive="irc.jar,pixx.jar" width=640 height=400> Hope this helps anyone .. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript on vb page breaks | Renada | Troubleshooting & Problems | 10 | 08-22-2007 06:31 AM |
| Javascript Installation | Nuguru | "How Do I..." Questions | 1 | 08-10-2006 09:13 AM |
| JavaScript Help!!! | azntfl | Troubleshooting & Problems | 5 | 06-16-2006 09:12 AM |
| javascript not working on front page for vba | apokalupsis | "How Do I..." Questions | 5 | 11-17-2005 10:31 PM |
| adding javascript | lykenu | Troubleshooting / "How do I..." Questions | 3 | 04-14-2005 04:04 PM |