473,785 Members | 2,910 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cross-browser DOM issues - trouble with Macs, mostly

Go to this page:

http://www.publicpen.com/designer/mc...eblogsForm.php

You'll need to login, use these:

username: designer
password: designer123

This is a demo site where we are debugging our software, please feel
free to play around, that is what the site is for.

My question is with the formatting buttons on this page (I mean the
bold, italic, 'make a link' buttons, etc). This works in FireFox,
Netscape, and IE on a PC. It does not work in IE or Safari on a Mac.

Two questions: do these buttons work in FireFox on a Mac, and why don't
they work in IE?

Also: this is an open source project and we would very much like to
have someone volunteer who knows something about Javascript. I'm tied
up with all the PHP code, and my graphic-design friends Misty and Peter
have only been able to put in a few hours each month working on the
interface. If we could find a someone who wanted to volunteer some time
to cleaning up the Javascript (or the HTML) associated with this
project, it would be a great help to us. So please think about it.

Jul 23 '05 #1
5 1723
BMR
Why not use what has been done by fckeditor
(http://www.fckeditor.net/default.html) ? I've read htat it works on Mac
browsers too, but you should test it.

BMR

lk******@geocit ies.com a écrit :
Go to this page:

http://www.publicpen.com/designer/mc...eblogsForm.php

You'll need to login, use these:

username: designer
password: designer123

This is a demo site where we are debugging our software, please feel
free to play around, that is what the site is for.

My question is with the formatting buttons on this page (I mean the
bold, italic, 'make a link' buttons, etc). This works in FireFox,
Netscape, and IE on a PC. It does not work in IE or Safari on a Mac.

Two questions: do these buttons work in FireFox on a Mac, and why don't
they work in IE?

Also: this is an open source project and we would very much like to
have someone volunteer who knows something about Javascript. I'm tied
up with all the PHP code, and my graphic-design friends Misty and Peter
have only been able to put in a few hours each month working on the
interface. If we could find a someone who wanted to volunteer some time
to cleaning up the Javascript (or the HTML) associated with this
project, it would be a great help to us. So please think about it.

Jul 23 '05 #2
lk******@geocit ies.com wrote:
<...>
My question is with the formatting buttons on this page (I mean the
bold, italic, 'make a link' buttons, etc). This works in FireFox,
Netscape, and IE on a PC. It does not work in IE or Safari on a Mac.

Two questions: do these buttons work in FireFox on a Mac, and why don't
they work in IE?


Yes, they work in Firefox on Mac, but only at the most basic "append
some tags to the field value" level - none of the selection stuff works
at all on Mac Firefox, IE, Safari.

They buttons do not work at all in Safari or IE because of:

function insertAtCursor( myField, tag) {
...

} else if ('number' == typeof myField.selecti onStart) {
...

selectionStart is not supported by either browser, so they barf. Try
modifying it to:

} else if (document.selec tionStart
&& 'number' == typeof myField.selecti onStart) {

or some similar test of selectionStart before you try to use it.
Firefox doesn't support it either, but it tolerates the error.

All you can do - as per the last condition in insertAtCursor( ) - is to
append some tags to the text area value.

Incidentally, the "save" alert is very annoying.

Whilst I applaud your attempts at an open-source project, I don't think
there is much place for a browser-based HTML editor. The issues
involved are just too great to bother with, particularly when the only
real way to code HTML is to do it with raw code - I don't know of any
serious HTML programmers that use anything more than a text editor with
syntax/language highlighting.

Even the most new of newbies can pick up basic HTML in a few minutes -
heck, the original word processors used markup and they were used by
ordinary typists and clerical staff when computers were very "gee
whiz".

Perhaps just some help explaining some basic tags would be simpler and
better?

--
Fred
Jul 23 '05 #3
"<i> Even the most new of newbies can pick up basic HTML in a few
minutes -<i>"

Thanks much for your feedback, it's super valueable to me. Your remarks
about text editors might be true in a general sense, but they are not
true for weblogs. If you look at what Google is trying to do (with
Blogger), they are developing a full text editor online. If you need to
see what I mean, set up a weblog at Blogger, it is free and only takes
a few minutes.

Moveabletype and Typepad have gone down the same road, so I think one
can generally say that all the weblog software packages are offering
online text editors.

So if we want our software to be in that category, we should offer some
basic text editing abilities.

In general, when I talk to people and tell them they should learn some
HTML tags, they explain to me that they can not do it. Never. No way.
Even software like Microsoft Word or FrontPage or Dreamweaver leaves
them overwhelmed and confused, but the idea of leaving the GUI behind
and editing raw HTML is not a possibility.

Jul 23 '05 #4
lk******@geocit ies.com wrote:
[...]
So if we want our software to be in that category, we should offer some
basic text editing abilities.
Fair enough, it just ain't my bag!
In general, when I talk to people and tell them they should learn some
HTML tags, they explain to me that they can not do it. Never. No way.
Even software like Microsoft Word or FrontPage or Dreamweaver leaves
them overwhelmed and confused, but the idea of leaving the GUI behind
and editing raw HTML is not a possibility.


The FCK editor link provided by BMR worked with Firefox/Mac, but not
Safari - but I don't have the latest version. Apple are working pretty
hard to get Safari up to speed, I expect the version to come out with
Tiger will be pretty much up with the best.

Unfortunately, Apple only provide Safari feature upgrades with OS
upgrades.

<URL:http://www.fckeditor.n et/default.html>

Good luck!
Jul 23 '05 #5
I've seen it and it looks great. I'll try to study up on what they've
done. I'd love it if I could simply import their code, however, I fear
the time and effort it would take to integrate it into the rest of our
code. I think this is one of those places where it would be great to
have more volunteers to come into our project. If someone else wanted
to integrate fckeditor into our code, that would be awesome. As it is,
I feel that I don't have the time, and that for a few simple
select/replace commands, its quicker for me to write the code myself.
After all, the basic text editing features that we now have I'll
probably be done debugging by Friday, whereas if I tried to import
fckeditor, I'd probably be lucky if I could get done reading the
documentation by Friday.

I have tried importing other open source packages before, and it has
rarely worked out for me. Every package makes assumptions about how the
data should be formatted in the end, what names should be given to form
inputs, how variables should be input to the server and is the backend
language PHP or ASP or JSP? Every package takes time to think through
and integrate. The only code that I've managed to import so far is code
that stands alone or has very simple and clear input expectations:

Matt Bean's function for pinging www.weblogs.com (PHP)

Paul Schrieber's email class (PHP)

Costin Breveneaua's class for MySql (PHP)

Zurab Davitiani's XML class (PHP)

All of these are pretty much single purpose, stand-alone packages.
Importing fckeditor is automatically more complicated than that, since
I'd have to control the form inputs to make sure they have the names
the PHP code expects before inputting the results to the database. And
I'd have questions like, am I responsible for validating the form
input, or does fckeditor do that?

So I'd say it is not easy to import a big package like that. However, I
only say this because I am so stretched for time. Again, if another
volunteer joined up who wanted to integrate it into our software, I'd
say that was awesome.

In the meantime, I need to figure out how to make my text editing
functions work on a Mac. So I'll take a look to see what they did to
make it work.

Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2055
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools Chemistry, mathematics, physical sciences,...
3
3114
by: rollasoc | last post by:
Hi, Doing a bit of system testing on a Windows 98 laptop. (.Net 1.1 app). Did a bit of testing. Loaded a previously saved file. A gray box appeared with the text and buttons all white rectangles with a big red cross in it. Pressed a button (the one I thought might be ok). My file appeared to load. Then when I clicked on any button on my form, the button was replaced with a white rectangle with a big red cross in it.
0
1894
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools Chemistry, mathematics, physical sciences,...
4
5584
by: David Peach | last post by:
Hello, hope somebody here can help me... I have a query that lists defects recorded in a user defined date range. That query is then used as the source for a Cross Tab query that cross-tabs count of defect type by calendar month. Defect types are stored in one table, defect transactions in another along with date etc. When I cross-tab the results, defect types that have no defects recorded against them appear as a blank (null) value. That...
23
6548
by: Jeff Rodriguez | last post by:
Here's what I want do: Have a main daemon which starts up several threads in a Boss-Queue structure. From those threads, I want them all to sit and watch a queue. Once an entry goes into the queue, grab it and run a system command. Now I want to make sure that system command doesn't hang forever, so I need some way to kill the command and have the worker thread go back to work waiting for another queue entry.
0
2059
by: Web Science | last post by:
Site and Features: http://www.eigensearch.com Search engine, eigenMethod, eigenvector, mathematical, manifolds, science, technical, search tools, eigenmath, Jacobian, quantum, mechanics, manifolds, science, physics, chemistry, law, legal, government, home, office, business, domain lookup, medical, travel, food, university students, searching, searchers, surfing, advanced search, search tools Chemistry, mathematics, physical sciences,...
7
3914
by: Scott M. | last post by:
How can I disable the cross-site scripting check for one particular page of a site?
8
4855
by: Pieter | last post by:
Hi, I'm having some weird problem using the BackGroundWorker in an Outlook (2003) Add-In, with VB.NET 2005: I'm using the BackGroundWorker to get the info of some mailitems, and after each item I want to raise the ProgressChanged-event to update the DataGridView. It works fine when only one Progresschanged is fired, but at the second, third, fopurth etc it raises everytile a 'Cross-thread operation not valid"-exception on lmy...
1
2766
by: Rob Woodworth | last post by:
Hi, I'm having serious problems getting my report to work. I need to generate a timesheet report which will contain info for one employee between certain dates (one week's worth of dates). I have a table containing records for each job done, the records contain date, employee name, job done (a code representing the type of job), cost code (another code), regular hours, and overtime hours. The tricky part is that more than one job can...
6
3992
by: ampo | last post by:
Hello. Can anyone help with cross-domain problem? I have HTML page from server1 that send xmlHTTPRequest to server2. How can I do it? Thanks.
0
9645
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
10327
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10092
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,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
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
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2879
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.