473,473 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

passing values > only id is being passed

145 New Member
Expand|Select|Wrap|Line Numbers
  1. function openMyWindow()
  2.     var myID = document.getElementById('ctl00_maincontent_txtEmpID').value;
  3.     //var fname = document.getElementById('<%= lblFullName.ClientID %>').value;
  4.     //var lname = document.getElementById('ctl00_maincontent_txtlname').value;
  5.     var fname = document.getElementById('ctl00_maincontent_txtfname').value;
  6.     var url = "assign_dept.aspx?id="+myID+"&fname="+fname;
  7.     //WORKS  var url = 'assign_dept.aspx?id='+myID;
  8.     //alert(fname + ', ' + lname);   //works
  9.     window.open(url,'welcome','width=400,height=250');
  10. }

also tried,
Expand|Select|Wrap|Line Numbers
  1. var url = 'assign_dept.aspx?id='+myID+'&fname='+fname
;

any other ideas?
Apr 5 '09 #1
3 1435
tlhintoq
3,525 Recognized Expert Specialist
TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.
Apr 5 '09 #2
dorandoran
145 New Member
tlhintoq,

i was trying to edit my post but it's been 60 minutes since I posted therefore i am unable to edit with wrapper. Did you have any idea regarding my issue?

Thanks
Apr 5 '09 #3
dorandoran
145 New Member
Wayyyyy toooo strange behavior by IE (firefox is working perfectly).
1. IE does not open up the pop up alert
2. IE only shows one name

FF > Both pop up and whole name comes up.

Expand|Select|Wrap|Line Numbers
  1. function openMyWindow()
  2.     var myID = document.getElementById('ctl00_maincontent_txtEmpID').value;
  3.     var sName = document.getElementById('ctl00_maincontent_txtfname').value + " " + document.getElementById('ctl00_maincontent_txtlname').value;
  4.     var url = 'assign_dept.aspx?id='+myID+'&sName='+ sName;
  5.     alert(sName);
  6.     window.open(url,'welcome','width=400,height=250');
  7. }
  8.  

ANY IDEA???
Apr 5 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
25
by: Victor Bazarov | last post by:
In the project I'm maintaining I've seen two distinct techniques used for returning an object from a function. One is AType function(AType const& arg) { AType retval(arg); // or default...
2
by: Rahul | last post by:
Hi, I have a little program as follows : =================== STARTS HERE ================ #include <stdio.h> void f (unsigned long); int main() {
1
by: Oliver | last post by:
I'm an expert C# programmer (honest) but... the following code prints 'Oranges', not 'ORANGES' - this confuses me because I thought reference types (eg string) where passed by...err..reference -...
4
by: gkr | last post by:
Hi I would like to pass values/data from Page1 to Page 2, then capture values on page 2 and return back to Page 1 with the values from page2. Can you pls guide me on how to do this ? I tried...
11
by: John Pass | last post by:
Hi, In the attached example, I do understand that the references are not changed if an array is passed by Val. What I do not understand is the result of line 99 (If one can find this by line...
17
by: Christopher Benson-Manica | last post by:
Does the following program exhibit undefined behavior? Specifically, does passing a struct by value cause undefined behavior if that struct has as a member a pointer that has been passed to...
2
by: mani99 | last post by:
Hi all, I've encountered a problem which I can't for the life of me figure out what's going on. Here's the problem: I have a dating site which lets members edit their profiles (i.e. location,...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.