Can I be reminded of my friend's birthday via e-mail?
firefox question
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > ColdFusion > firefox question 24 September 2008 03:35:05

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

firefox question

Raymond Camden 24 September 2008 03:35:05
 So, a few weeks ago I complained about how Firefox would use a Windows alert
when it couldn't load a page. Someone suggested one small change that worked
perfectly. Now errors simply display in the browser.

However, for some silly reason the URL changes to chrome://etc.

So if I had simply made a typo, I have to type in the entire URL all over
again.

Anyone else seen this?



~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~|
Get the mailserver that powers this list at
http://www.houseoff­usion.com/banners/vi­ew.cfm?bannerid=17

Message: http://www.houseoff­usion.com/lists.cfm/­link=i:5:118633
Archives: http://www.houseoff­usion.com/cf_lists/t­hreads.cfm/5
Subscription: http://www.houseoff­usion.com/lists.cfm/­link=s:5
Unsubscribe: http://www.houseoff­usion.com/cf_lists/u­nsubscribe.cfm?user=­13124.11887.5
Donations & Support: http://www.houseoff­usion.com/tiny.cfm/5­4
Add comment
Jon Paal 27 June 2006 21:16:01 permanent link ]
 looking for insight on how to make this javascript solution firefox compatible.

http://www.codeproj­ect.com/useritems/HT­MLFixedHeaders.asp

any tips / insight would be helpful



Add comment
RobG 28 June 2006 08:54:19 permanent link ]
 Jon Paal wrote:> looking for insight on how to make this javascript solution firefox compatible.>
any tips / insight would be helpful

It falls over in Firefox at this line:

var headerRow = divContent.childNod­es[0].childNodes[0].childN­odes[0];


Navigating down the dom tree using childNode references is doomed to
fail in most cases, as some browsers (e.g. Firefox) include text nodes
for whitespace that others (e.g. IE) don't. The required element may
be childNodes[0] in IE but will likely be childNodes[1] in Firefox (and
other Gecko-based browsers). I'll guess that the expected sequence is:

divContent -> table -> tbody -> row

If such navigation is necessary, it is better to use:

var headerRow = divContent.getEleme­ntsByTagName('someTa­g')[0]...

to skip unwanted nodes. I'll take a punt that in this case:

var headerRow = divContent.getEleme­ntsByTagName('table'­)[0].rows[0];

or even:

var headerRow = divContent.getEleme­ntsByTagName('tr')[0];

will do the job. You may need to fix it elsewhere too.

You may want to write a function that gets a particular instance of a
certain childNode type: getChild(<element>,­ <nodeName>, <index>) so
you might have something like (pure guesswork here):

var headerRow = getChild(
getChild(divContent­, 'table', 0), 'tr', 0);

or

var headerRow = getChild(divContent­, 'table', 0).rows[0];


It is also a good idea in IE too, as someone may introduce a node that
the script isn't expecting. You could also get the childNodes
collection and skip across the siblings looking for a particular
instance of a certain node type.

There is a script that does a similar thing here (don't expect any help
though):

<URL:http://www.lit­otes.demon.co.uk/exa­mple_scripts/tableSc­roll.html>


PS. Removing any whitespace in the source HTML between tags navigated
using childNodes may fix the issue with no change to the script.

--
Rob

Add comment
Jon Paal 29 June 2006 00:42:49 permanent link ]
 thank you!

I've seen the other, and I know folks here can be real assholes about giving any help on it.




"RobG" <rgqld@iinet.net.au­> wrote in message news:1151470459.808­236.281480@m73g2000c­wd.googlegroups.com.­..> Jon Paal wrote:>> looking for insight on how to make this javascript solution firefox compatible.>>
any tips / insight would be helpful>
It falls over in Firefox at this line:>
var headerRow = divContent.childNod­es[0].childNodes[0].childN­odes[0];>
Navigating down the dom tree using childNode references is doomed to> fail in most cases, as some browsers (e.g. Firefox) include text nodes> for whitespace that others (e.g. IE) don't. The required element may> be childNodes[0] in IE but will likely be childNodes[1] in Firefox (and> other Gecko-based browsers). I'll guess that the expected sequence is:>
divContent -> table -> tbody -> row>
If such navigation is necessary, it is better to use:>
var headerRow = divContent.getEleme­ntsByTagName('someTa­g')[0]...>
to skip unwanted nodes. I'll take a punt that in this case:>
var headerRow = divContent.getEleme­ntsByTagName('table'­)[0].rows[0];>
or even:>
var headerRow = divContent.getEleme­ntsByTagName('tr')[0];>­
will do the job. You may need to fix it elsewhere too.>
You may want to write a function that gets a particular instance of a> certain childNode type: getChild(<element>,­ <nodeName>, <index>) so> you might have something like (pure guesswork here):>
var headerRow = getChild(> getChild(divContent­, 'table', 0), 'tr', 0);>
var headerRow = getChild(divContent­, 'table', 0).rows[0];>
It is also a good idea in IE too, as someone may introduce a node that> the script isn't expecting. You could also get the childNodes> collection and skip across the siblings looking for a particular> instance of a certain node type.>
There is a script that does a similar thing here (don't expect any help> though):>
PS. Removing any whitespace in the source HTML between tags navigated> using childNodes may fix the issue with no change to the script.>
-- > Rob>


Add comment
RobG 30 June 2006 13:26:18 permanent link ]
 Jon Paal wrote:> thank you!>
I've seen the other, and I know folks here can be real assholes about giving any help on it.

Please don't top post, reply below trimmed quotes.

You won't get help on Richard's example here because he's said that he
published it as an example and doesn't want to provide help in regard to it.

I won't provide help on it because the effort is far beyond what I am
prepared to offer. It is an interesting example, but I have no
practical use for it.

I think others feel the same, I can't see how that makes us all a bunch
of arseholes.


--
Rob
Add comment
Nickolay 2 August 2006 23:20:49 permanent link ]
 If somebody want to speek about assholes, create your own top about it and speek with people with the same interests/ I come here to found any information about fixing problems in firefox.
Add comment
Guest 17 September 2007 08:53:04 permanent link ]
 http://www.come-in-c­hina.com
http://www.china-la­pelpin-center.com
http://www.metropar­khotelmongkok.com/
http://www.ngayinac­upuncturehk.com/
http://www.queenafl­orist.com/
http://www.raypartn­ers.com.hk/
http://www.regallog­istics-hk.com/
http://www.transoce­an-group.com/
http://www.storecon­cept.com.hk/
http://www.hkyanda.­com/
http://www2
Add comment
Guest 13 December 2007 16:51:25 permanent link ]
 http://www.it529.com­
http://www.china-la­pelpin-center.com/
http://www.come-in-­china.com
http://www.51231.cn­
http://www.pjgou.co­m
http://www.seotips.­com.cn
http://www.gdzk.net­.cn
http://www.seotips.­com.cn
http://www.shoe-who­lesale.net
http://www.solar-ce­ll-panel.com
http://www.wedding-­dress-gowns.com
http://www.boss529.­cn
Add comment
Guest 24 September 2008 03:35:05 permanent link ]
 http://www.comeinchi­na.com
http://www.gmicc.co­m
http://www.c2t.com.­cn
http://www.electron­icsmanufacturer-chin­a.com/
http://www.t4mag.co­m
http://www.interior­design-studio.com/ho­me-design.html
http://www.storecon­cept.com.hk/contactu­s.htm
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > ColdFusion > firefox question 24 September 2008 03:35:05

see also:
Re: Priado Blender WAS: Editable lists…
Versions of PHP-Gtk2 Available
Getting the SimpleTextEditor to work
пройди тесты:
see also:
DeNemee
China toner cartridge exporter…
HP laser toner cartridge exporter…

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .