Brendan Eich | 4 Mar 02:21 2005
Picon

Content team forming

Join us in fixing a bunch of DOM-ish bugs and designing a better Gecko 
content frontside

We started small, just to get together and compare notes.  But we're 
open to help from all proven hackers, testers, and bug trackers.  See 
http://wiki.mozilla.org/wiki?title=Gecko:Content_Team_Minutes, linked 
from http://wiki.mozilla.org/wiki/Gecko:Home_Page#Developer_Resources.

We have a weekly phone conference at 1pm Pacific on Thursdays, ping me 
if you want to be included.

I put a placeholder reference to the minutes in 
http://wiki.mozilla.org/wiki/Gecko:Task_List too.

/be
hanganum | 4 Mar 08:10 2005
Picon

table relative and fixed dimensions

Hi,

I am trying to build one HTML page with a table occupying the entire
page and having two rows. The upper row contains data, while the lower
row contains two buttons.

My problem is: I want the lower row to always stay 60 pixels height,
while the upper row taking the rest of the page. And at the same time,
when the upper row contains a large text, a scroll bar in the right
part to show up.

What I succeeded in doing so far was to have a relative dimension for
the lower row (20%), but not a fixed one.

Here's the code:

<html>
<body style="height:100%; margin: 0px; padding: 0px; overflow:hidden;">

<table cellspacing="0" cellpadding="0" width="100%" height="100%">
	<tr height="80%">
		<td>
			<div style="position:absolute; top: 0px; bottom: 68px; width: 100%;
height:80%; overflow: auto;">

a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>
			</div>
\	    </td>
	</tr>
	<tr height="1px">
(Continue reading)

Martin Honnen | 4 Mar 13:18 2005
Picon

Re: table relative and fixed dimensions


hanganum <at> gmail.com wrote:

> I am trying to build one HTML page with a table occupying the entire
> page and having two rows. The upper row contains data, while the lower
> row contains two buttons.
> 
> My problem is: I want the lower row to always stay 60 pixels height,
> while the upper row taking the rest of the page. And at the same time,
> when the upper row contains a large text, a scroll bar in the right
> part to show up.

You might want to ask in a general HTML and/or CSS group as you don't 
have a DOM problem.

--

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/

chip tuning - chip conversão - tuningchip - álcool

    Quer economizar ganhando Potência? Temos chip de conversão gasolina
     para álcool
trazendo uma boa economia mensal.

 Para conversão a álcool veja exemplo de

Economia:

Veiculo: Fiat palio 1.0 8v ano 98 com 78.000 km

Media feita com 1.500 km rodados entre cidade e estrada

Gasolina:1500km consumo (10km/l)=150lts x r$1.85 = r$ 277,50

Álcool: 1500km consumo (7,5km/l) = 200lts x r$ 0,70 = r$ 140,00

Diferença (economia no bolso!)        =       r$ 137,50

Preço especial apenas para as 100 primeiras vendas.

 Quer economizar ganhando Potência? Temos chip de conversão gasolina
     para álcool
trazendo uma boa economia mensal.

http://www.tuningchip.rg3.net/

conversão gnv gasolina alcool gás natural potencia turbo aspirados carros
automoveis "chip tuning" chip tuning
audi gol turbo marea fiat chevrolet corsa palio conversão alcool potência
carros carro automovel venda chiptuning tuningchip chip tuning arrancada
(Continue reading)

chip tuning - tuning chip - turbo - chip potência - álcool

             Chip personalizado para carros originais, turbo e aspirados.

  Conversão de veiculos de gasolina para alcool com ganho de
  potencia e torque!!!

  Chip de potencia para a gasolina , ganhe 20% a mais de potencia
  e torque no seu carro!!!

  Alguns exemplos:
  Original                          chipado
  gol 1.0 turbo 112 cv               155 cv
  marea turbo  182 cv                243 cv
  audi a3 t 150 cv                   210 cv
  audi a3 t 180 cv                   220 cv

http://www.tuningchip.rg3.net/

audi gol turbo marea fiat chevrolet corsa palio conversão alcool potência
carros carro automovel venda chiptuning tuningchip chip tuning arrancada
pegas rachas ferrari bmw peugeot gm volkswagem gti nitro need for speed fotos
gratis dinherio chip de conversão
Martin Honnen | 5 Mar 13:41 2005
Picon

Re: javascript:reply('37004') does not work

Crosspost and followup-to DOM group.

Leon wrote:

> Why javascript:reply('37004') does not work nor in Mozilla 1.7.5, nor 
> in  Firefox 1.0.1?
> 
> I have MS Windows XP Pro SP2 on my PC. Internet Explorer works just 
> fine  when I click javascript:reply('37004'), Opera 8.00 build 7401 too. 
> But  Mozilla and Firefox does not respond to this click at all.
> 
> URL is http://www.skisport.ru/forum/view.php?subj=36417

Look at the JavaScript console, it gives an error while trying to load 
the page already

Error: missing ( before formal parameters
Source File: http://www.skisport.ru/forum/view.php?subj=36417
Line: 204, Column: 9
Source Code:
function goto(where) {

So that script block tries to define a function named 'goto' which is a 
reserved word in ECMAScript and that causes an error so that the 
function definition for 'reply' that follows is not processed.

You need to to change the code in that page so that the word 'goto' is 
not used.

--

-- 
(Continue reading)

Leon | 5 Mar 15:25 2005
Picon

Re: javascript:reply('37004') does not work

On Sat, 05 Mar 2005 13:41:05 +0100, Martin Honnen <mahotrash <at> yahoo.de>  
wrote:

> Crosspost and followup-to DOM group.
>
> Leon wrote:
>
>> Why javascript:reply('37004') does not work nor in Mozilla 1.7.5, nor  
>> in  Firefox 1.0.1?
>>  I have MS Windows XP Pro SP2 on my PC. Internet Explorer works just  
>> fine  when I click javascript:reply('37004'), Opera 8.00 build 7401  
>> too. But  Mozilla and Firefox does not respond to this click at all.
>>  URL is http://www.skisport.ru/forum/view.php?subj=36417
>
> Look at the JavaScript console, it gives an error while trying to load  
> the page already
>
> Error: missing ( before formal parameters
> Source File: http://www.skisport.ru/forum/view.php?subj=36417
> Line: 204, Column: 9
> Source Code:
> function goto(where) {
>
> So that script block tries to define a function named 'goto' which is a  
> reserved word in ECMAScript and that causes an error so that the  
> function definition for 'reply' that follows is not processed.
>
> You need to to change the code in that page so that the word 'goto' is  
> not used.
>
(Continue reading)

Martin Honnen | 6 Mar 12:51 2005
Picon

Re: javascript:reply('37004') does not work


Leon wrote:
> On Sat, 05 Mar 2005 13:41:05 +0100, Martin Honnen <mahotrash <at> yahoo.de>  
> wrote:
> 

>> Look at the JavaScript console, it gives an error while trying to 
>> load  the page already
>>
>> Error: missing ( before formal parameters
>> Source File: http://www.skisport.ru/forum/view.php?subj=36417
>> Line: 204, Column: 9
>> Source Code:
>> function goto(where) {
>>
>> So that script block tries to define a function named 'goto' which is 
>> a  reserved word in ECMAScript and that causes an error so that the  
>> function definition for 'reply' that follows is not processed.
>>
>> You need to to change the code in that page so that the word 'goto' 
>> is  not used.
>>
>>
> 
> Why this script works fine in MS Internet Explorer 6.0 and Opera 8.00  
> build 7401, but not in Mozilla 1.7.5 and Firefox 1.0.1?

Because the ECMAScript standard says that goto is not allowed as a 
function name and the JavaScript implementation in Mozilla sticks to 
that standard. As Brendan has pointed out in jseng in 1.8 builds of 
(Continue reading)

Tobias Güntner | 6 Mar 14:13 2005
Picon
Picon

Execute privileged javascript from unprivilieged code

Hi!

I hope this is the correct place for my question...

I am writing an extension for a specific web page. It is a forum and I 
want to add some features. I cannot modify the source code of the forum, 
so I have to modify my browser ;)

I want to save some per-user settings, so storing them in a RDF seems to 
be the way to go. But I cannot write those settings from unprivileged 
HTML, right? Well, I found a solution, but I don't know whether it's 
correct or if there is a better way to do it.

That's what I did so far:

1) Create an overlay:

<?xml version="1.0"?>
<overlay id="MyBrowserOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<script type="text/javascript">
window.addEventListener("load", function(ev){

content.document.foo = function(bar)
{
	alert("Hello, " + bar + "! I'm a privileged function!");
}

return true;}, true);
(Continue reading)

Boris Zbarsky | 6 Mar 18:50 2005
Picon

Re: Execute privileged javascript from unprivilieged code

Tobias Güntner wrote:
> - Is this a correct way to add new functions to the document?

It works, yes (make sure to use a name guaranteed to not collide with any 
identifiers used by web pages, though).

> - How can I determine the URL of the current HMTL page? I want to add my 
> functions only to documents from a specific domain.

document.location.href, but you need to create XPCNativeWrapper objects around 
all of these, because the page can spoof them as desired.

> - Are there any security concerns?

Absolutely.  See previous answer.  ;)

> - Is there a better way to do it?

You could use a signed jar on the webpage end and request UniversalXPConnect 
privileges; then it's up to the user to grant them or not.

-Boris

Gmane