Re: Window.open. Works in ie6. Does not work in firefox
dlf wrote on 09 jun 2008 in comp.lang.javascript:
<script type="text/javascript">
function abrir(url,cadena){
nuevaurl=url.replace("aaaa",cadena);
replace() needs a regular expression, not a string.
You should mention the error text and the error line number,
and do some debugging.
window.open(nuevaurl);
}
</script>
[please do not quote signatures on usenet]
Thanks a lot for your responses. I will check firebug.
unico.value is set, yes.
In fact i don't receive any error. The window simply does not appear :-
If there is no error, You should set a breakpoint:
nuevaurl=url.replace("aaaa",cadena);
alert(nuevaurl) // breakpoint
window.open(nuevaurl);
Then you probably would see the open() statement is not the culprit.
That is what debugging is about.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
.
Relevant Pages
- Re: Regular Expression, to use or not to use...
... > actually use a Regular expression for. ... string parsing would be the better choice here. ... I can only guess you never spent hours debugging for an error that's not ... > proportional to the complexity of the RE, and again I can debug it. ... (microsoft.public.dotnet.general) - Re: Thread exiting with code 1282 (0x502)
... the application exits when I display a dialog that contains text boxes with some large strings. ... I start debugging with VS2005, interact with the application so that it displays a properties dialog for one of the graphics objects we have, then I click on a button that displays another dialog with four Combo Boxes. ... 3.- I get to the Combo Box again and I enter the new long string and this time I quickly press "OK" and save the object. ... Please let me know if the implementation of OnToolTipNotify() should be different. ... (microsoft.public.vc.mfc) - Re: Comments on Comments (was Re: Getting to 100 (#119))
... Computer Programming," comments can actually impede debugging. ... # yield each partitioning of the receiver into count partitions ... # an initial substring of increasing length, ... # the string into count-1 partitions. ... (comp.lang.ruby) - Re: Page_Load & ButtonClick?
... You many not have debugging enabled for the site you are working with. ... the application runs and then stops at my breakpoint. ... browser & without clicking the Button, I came back to the VWD IDE & ... will the Page_Load sub execute first & then will the ... (microsoft.public.dotnet.framework.aspnet) - Re: Debug COM assembly (VB 2003)
... Set breakpoints in the VB.NET assembly's source files and start debugging. ... This happens with and without a breakpoint. ... When trying to attach to the process with debug type "Common language ... optionally register it in the GAC, ... (microsoft.public.vsnet.debugging) |
|