473,804 Members | 2,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BBcode in textarea error

2 New Member
I'm stupid in Javascripting, but i making php forum with BBcode. and i need help with this:

[code]
<head>
<script>
function formatSelected( from_obj, formatting, format2) {
from_obj.focus ();
var w = self.document.s election.create Range ();
w.text = "["+formatting+fo rmat2+"]"+w.text+"[/"+formattin g+"]";
}
</script>
</head>
<p>

<STYLE> P { cursor : hand; }</STYLE>

<form action="chat/Post.php" METHOD=POST enctype="multip ort/form-data">

<table>
<tr>
<td width=100></td><td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'b', '');">[b]</a></td>
<td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'i', '');">[i]</a></td>
<td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'u', '');">[u]</a></td>
<td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'url', '=');">[url]</a></td>
<td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'center', '');">[center]</a></td>
<td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'img', '');">[img]</a></td>
<td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'mail', '=');">[mail]</a></td>
<td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'font', '=');">[font]</a></td><TD><select name="fontas" size="1" tabindex="1"><o ption>Lucida Console</option>
<td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'size', '=');">[size]</a></td>
<td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'color', '=');">[color]</a></td>
<td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'codearea', '');">[codearea]</a></td>
<td><a onmouseover=="t his.style.curso r='hand'" onclick = "formatSelected (forSELECT, 'code', '');">
Expand|Select|Wrap|Line Numbers
  1. </a></td></td>
  2.  </tr>
  3. </table>
  4.  
  5. <textarea id=forSELECT name=text cols=80 rows=10></textarea>
  6. <INPUT TYPE="submit" NAME="Submit" VALUE="Send"></form>
  7.  
Somewhere is error. Can someone help with this
Jan 27 '07 #1
3 2120
acoder
16,027 Recognized Expert Moderator MVP
A quick check on your code and I can see that you are using double equals instead of one equal for onmouseover:
Expand|Select|Wrap|Line Numbers
  1. onmouseover='...'
Jan 27 '07 #2
pronerd
392 Recognized Expert Contributor
Somewhere is error. Can someone help with this
And that error would be..... ?
Jan 28 '07 #3
LoliPopas
2 New Member
A quick check on your code and I can see that you are using double equals instead of one equal for onmouseover:
Expand|Select|Wrap|Line Numbers
  1. onmouseover='...'

Thanks... the problem was with double equals.
Jan 29 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
61564
by: Thaqalainnaqvi | last post by:
IPB WARNING mysql_query() : Unable to save result set (Line: 457 of /ips_kernel/class_db_mysql.php) There appears to be an error with the database. You can try to refresh the page by clicking here. Error Returned mySQL query error: SELECT MIN(pid) as pid FROM ib_posts WHERE queued=0 AND topic_id=85734 AND post_date 1160298086 LIMIT 0,1
8
1842
by: raaman rai | last post by:
i am adding dynamic contents in my website. So i also want to have a news or announcements to be dynamically displayed. But for this i need to use BBCode. But in reference to this, i dont know how the BBCode parser should be configured. Is it to be configured by ourselves or will it be done by the hosting ISP. And will the tag be supported by BBCode?
2
3745
by: bgold12 | last post by:
I already posted this message, but it didn't work or something. So if this is a duplicate, ignore it. I just can't figure out how to install this extension. From what I understand, there needs to be a .dll file located in the extensions folder in the php root directory, and there needs to be a line in the php.ini file that is uncommented that loads the .dll extension. But which .dll is it? Is it already in that folder, or do I need to...
2
1141
by: jeddiki | last post by:
Hi, I want to write a js script that will wrap any text that is hıghighted in a textarea with the bbcode bold code or italics etc. The same way that this forum post script must work. (actually if I could find the script I could then modify it to suit my needs which would be easier ) Anyway - I am not sure how to start because how do I detect what characters are highlighted ?. I have looked in the source code of this page for the js...
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9572
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10303
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4282
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.