# What? Js window.open fails when passing a lot of variables

**URL:** <https://forum.kirupa.com/t/what-js-window-open-fails-when-passing-a-lot-of-variables/157626>\
**Category:** flash\
**Created:** [August 3, 2005, 8:32am UTC](https://forum.kirupa.com/t/what-js-window-open-fails-when-passing-a-lot-of-variables/157626 "2005-08-03T08:32:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arkanoid](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@arkanoid](https://forum.kirupa.com/u/arkanoid)\
**Post date:** [August 3, 2005, 8:32am UTC](https://forum.kirupa.com/t/what-js-window-open-fails-when-passing-a-lot-of-variables/157626/1 "2005-08-03T08:32:24Z")

</div>

Hi all, first i’ll explain the problem.

I need to pass a lot of big variables to a browser window, but that window **must** be opened with Jscript, so it haves fixed size, no scrollbars, no menu and so on.

Well, the Jscript window.open fails when i pass **too long variables or too many of them**. (I think it’s for the querystring length, seems to be ok if I pass less variables or shorter ones);

here it’s my code

on (release) {

/_set lot of variables to send_/  
jid\_artista = \_parent.\_parent.ida;  
…  
…  
…  
…  
getURL(“javascript:void(window.open(‘[http://localhost/my\_page/subir\_archivos/mp3.php?artista="+jartista+"&titulo="+jtitulo+"&campo\_musical="+jcampo\_musical+"&estilo\_musical="+jestilo\_musical+"&fecha\_composicion="+jfecha\_composicion+"&medios\_utilizados="+jmedios\_utilizados+"&autores="+jautores+"&voces="+jvoces+"&autores\_letra="+jautores\_letra+"&creditos\_adicionales="+jcreditos\_adicionales+"&comentarios="+jcomentarios+"&letra\_original="+jletra\_original+"&letra\_traducida="+jletra\_traducida+"&id\_artista="+jid\_artista+"’,’\_blank’,'width=300,height=100,top=300,left=360](http://localhost/my_page/subir_archivos/mp3.php?artista=%22+jartista+%22&titulo=%22+jtitulo+%22&campo_musical=%22+jcampo_musical+%22&estilo_musical=%22+jestilo_musical+%22&fecha_composicion=%22+jfecha_composicion+%22&medios_utilizados=%22+jmedios_utilizados+%22&autores=%22+jautores+%22&voces=%22+jvoces+%22&autores_letra=%22+jautores_letra+%22&creditos_adicionales=%22+jcreditos_adicionales+%22&comentarios=%22+jcomentarios+%22&letra_original=%22+jletra_original+%22&letra_traducida=%22+jletra_traducida+%22&id_artista=%22+jid_artista+%22','_blank','width=300,height=100,top=300,left=360) scrollbars=NO resizable=NO Directories=NO Location=NO Menubar=NO Toolbar=NO’))”,"",“POST”);  
}

And that it’s all, anyone fixed this problem before or have other system to send variables to an Jscript window.open?

Thanks all for view this thread. 🙂
