473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Window open prob

This is in head section:

function edit(textarea) {
if (textarea == 0) {
thedata = document.loginForm.usrname.value
thenumber = 0
}
else if (textarea == 1) {
thedata = document.loginForm.pass.value
thenumber = 1
}
username = document.loginForm.user_name.value;
newwin =
window.open("ubaci_sliku.php?username="+username," ",width=800,height=850,resizable,scrollbars=1,stat us=1")
}

This is form code:
<form name="loginForm" id="loginForm" method="POST" action="#">
<input type="text" name="usrname" />
<input type="hidden" name="user_name" value="neka_vrijednost" />
<input type="button" class="button" value="Odaberi" onclick="edit(0);" />
</form>

You can have another text field with name = pass and onclick=edit(1);
In IE 6 and 7 it throws Invalid argument, and in FireFox works without any
problem.

How to solve this?
Thanks,
Zvonko

Apr 24 '07 #1
1 1245

"Zvonko Bičkup" <zv*************@velkat.netwrote in message
news:46********@news.novi-net.net...
newwin =
window.open("ubaci_sliku.php?username="+username," ",width=800,height=850,resizable,scrollbars=1,stat us=1")
I am writing to fast. Upper line should be:
newwin =
window.open("ubaci_sliku.php?username="+username," ","width=800,height=850,resizable,scrollbars=1,sta tus=1")

Any ideas

Thanks,
Zvonko

Apr 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
68
by: Steve | last post by:
Hi There, Prob a simple answer to this (I hope) but I can't quite work it out yet... I have this in a page: <map name="Map"> <area shape="rect" coords="43,68,52,77" href="map.html"...
3
by: Paul K | last post by:
I'm not quite sure if the problem I'm having is a restriction of showModalDialog or if there is a way around it. The web app I am working requires the user to select a record from a list. I pop...
2
by: shalender verma | last post by:
Hello All I am using VB 6. I am trying to get the text in the tittle bar of the window i click by using GetWindowText API function but its not working. Here is the code i am using:- Private...
0
by: saikat | last post by:
I in a prob. I want to run jboss by ant but in a different window, so that I can open a page in Intenet explorer. My code is... <target name="startJBoss"> <exec...
1
ashsa
by: ashsa | last post by:
Hi all, How could i open a new window whose content is a html table or a div from the current document ? The actual prob is that i try to generate an excel table from the html table. Tried...
2
by: itsali | last post by:
Hi , I'm opening one child window and closing it when tht window is in process of loading itself.The prob here is i wrote one function in window onunload, which clears my variables in parent...
12
pshm
by: pshm | last post by:
how to handle window closing event in javascript??? window.onunload=function(){ if(window.event.clientY < 0 && window.event.clientY < -80){ alert('window close event triggered'); } }...
7
by: markrandolph | last post by:
I have parent.htm and child.htm ================================================================= In parent.htm we have: var parentarray = new Array(5) window.open("child.htm",.....) ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.