Notes on Java, Solaris, PHP, LDAP…

November 17, 2007

Firefox, Javascript, Tiny MCE tips

Filed under: Uncategorized — negev @ 9:55 pm
Tags:

Details configuration of Firefox:
about:config
— any changed values get highlighted

Escape HTTP Parameters in URL
– to find out the escape sequence, run e.g. javascript:alert( escape(‘=’) )

Customizing Tiny MCE wysiwyg

Tiny MCE now works in Safari. Upee!

Customizing it and debugging in Firefox? When using default ‘advanced’ theme, edit tiny_mce/themes/advanced/css/editor_content.css and then re-load it in Firefox. Otherwise Firefox caches old version of editor_content.css

See http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=20422#p20422

Javascript errors within/between iFrames in MS IE is a very bad situation. Standard MS IE reports these errors very vaguely. It says line number but it doesn’t tell which actual file it is – either outer/inner HTML or one of possibly many JS files.

An excellent way to debug JS errors in MS IE 6 is described here. Follow the installation/activation instructions literally. In order to get ‘Script Debugger’ entry in ‘View’ menu of MS IE you need to install Microsoft Script Editor (called ‘HTML Source Editing’ in MS Office XP Pro) *and* enable script debugging in MS IE settings.

When using ‘HTML Source Editing’ which comes with Microsoft Office XP Pro you need – in Microsoft Office XP Pro Setup do custom install, specify features of each app to be installed: Microsoft Office > Office Tools > HTML Source Editing – set it to be ‘Run from my computer’.

Aptana -a free Ajax IDE

MS IE7
– window.open
( url, title….) requires title not to have a space in it; otherwise it complains of a bad argument
Source: http://forums.invisionpower.com/lofiversion/index.php/t228859.html
myIframeObject.contentDocument doesn’t work anymore (e.g. myIframeObject.contentDocument.location.href).
— therefore test whether myIframeObject.contentDocument is set; otherwise use myIframeObject.contentWindow.document

Javascript boolean type
– ‘0’, ‘false’ is same as boolean true

Javascript escaping and ASCII codes
quotation mark = ASCII 39 (decimal) = ASCII 27 (hex) = %27 in query string
equal operator ‘=’ is %3D in query string

Javascript weird on MS IE 6
– element id=”..” and JS variable names must be different

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: