473,387 Members | 1,664 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,387 software developers and data experts.

Images not showing up in javascript function on only some pcs..

Greetings all,

I have a page that when you click on a button, its calls a function
that dynamically displays a group of other buttons. The problem I am
having is that when you click on the button, the buttons do not appear,
however, if you hold your mouse over where they should be, the link is
actually there. This is only happening on some pcs. I can't figure
out why it is happening. does anyone have any ideas?

///////////////// Code Below ///////////////////////

////////////////////////////// Link that calls function
///////////////////////////////
<a href="javascript:;" onClick="showclient();" ><img
src="pix/arrow.gif" width="6" height="8" border="0"> Add a New
Client</a>

/////////////////////////////////////////////// function
//////////////////////////////////////
function showclient() {
document.getElementById("formtable").style.visibil ity ='visible';

var fname = '<%= Request("Fname")%>'
var lname = '<%=replace(request("LName"),"'","\'")%>';
var streetnum = '<%= Request("streetnum")%>'
var street = '<%= Request("street")%>'
var city = '<%= Request("city")%>'
var email = '<%= Request("email")%>'
var phone = '<%= Request("phone")%>'
var UcontactID = '<%= newID2%>'
var mobile = '<%= Request("mobile")%>'
var websearch = '<%=Session("calsearch")%>'
var regexp = /\'/g;
var agent = '<%= session("calagent")%>';


document.form1.maxofcontacttypename.options[0].selected=true;
document.form1.urgency.options[0].selected=true;
document.getElementById("pfirstname").value = '';
document.getElementById("plastname").value = '';
document.getElementById("sfirstname").value = '';
document.getElementById("slastname").value = '';
document.getElementById("houseno").value = '';
document.getElementById("street").value = '';
document.getElementById("city").value = '';
document.getElementById("email").value = '';
document.getElementById("PrimPhone").value = '';
document.getElementById("ucontactid").value = '';
document.getElementById("zip").value = '';
document.getElementById("Phone2").value = '';
document.getElementById("PhoneNumber").value = '';
document.getElementById("Mobile").value = '';
document.getElementById("Mobile2").value = '';
document.getElementById("email2").value = '';
document.getElementById("business").value = '';
document.getElementById("business2").value = '';
document.getElementById("bus_ext").value = '';
document.getElementById("bus_ext2").value = '';
document.getElementById("other").value = '';
document.getElementById("other2").value = '';
document.getElementById("otherdescrip").value = '';
document.getElementById("otherdescrip2").value = '';
document.getElementById("fax").value = '';
document.getElementById("fax2").value = '';
var formheader = "";

if (websearch == 'FALSE'){

document.form1.agent.options[0].selected = true;
document.getElementById("linkto").style.visibility = "visible";
formheader = "Add this client and have them linked to ";

}
else {
document.form1.agent.value = agent;
document.getElementById("linkto").style.visibility = "hidden";
formheader = "Add this client and have them linked to me.";
}
////////////////////// the showphone, notes and submit button will not
show up..

var submitbtn = '<table width=\"100%\" border=\"0\" cellspacing=\"1\"
cellpadding=\"1\"> <tr valign=\"top\"> <td class=\"style15\"
width=\"61%\" height=\"20\"><a href=\"javascript:;\"
onClick=\"MM_openBrWindow(\'showphoneblank.asp\',\ 'phones\',\'scrollbars=yes,resizable=yes,width=650 ,height=300\')\"><img
src=\"http://calcagniagents05.aegisis.net/pix/showphone.gif\"
id=\"showphone\" width=\"140\" height=\"15\" border=\"0\" ></a> <input
type=\"hidden\" name=\"MM_insert\" value=\"form1\"></td> <td
width=\"39%\" height=\"20\"> <a href=\"javascript:;\"
onClick=\"MM_openBrWindow(\'legacynotesblank.asp\' ,\'journal\',\'scrollbars=yes,resizable=yes,width= 500,height=300\')\"><img
src=\"pix/notes.gif\" alt=\"notes\" width=\"78\" height=\"15\"
border=\"0\"></a></td> </tr> <tr valign=\"top\"> <td colspan=\"2\"
height=\"20\"><div align=\"center\"><br><input type=\"image\"
name=\"submit\" src=\"pix/legacyadd.gif\" width=\"238\"></div></td>
</tr></table>';

document.getElementById("submitbutton").innerHTML = submitbtn;

document.getElementById("formheader").innerHTML = formheader;
document.getElementById("showphone").style.visibil ity = "visible";
}

May 8 '06 #1
4 1486
Does anyone have an idea????????????????

May 10 '06 #2
Does anyone have an idea????????????????

May 10 '06 #3
ASM
Brian a écrit :
Does anyone have an idea????????????????


put your example on line
and give its url
would be best
don't use MacroMedia functions (nobody can easily understand them)

try to do not write your html by javascript

Put all you html code in your page (all inputs and selects, buttons ...)
On page loadind have a function to hide (or style.display='none') your
form's elements (or beter : div containing them) you want.
Buttons display block element P containing the form element wanted.
--
Stephane Moriaux et son [moins] vieux Mac
May 10 '06 #4
Here is a page i just created.. I never had this problem before.. This
has always worked for me.. It seems to be a browser issue now.. It
works on some pc's, but not on others (primarily WinXP with IE6 SP2)

http://www.phcbl.com/test/legacy/legacyresulttest.asp

The onload calls the same function as the Add a new client link. As
soon as you click on the link, they disappear, but the text remains.
This makes absolutely no sense whatsoever..

May 10 '06 #5

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

Similar topics

1
by: Leila | last post by:
Hi folks, I have a fairly complex xml document which looks like this: <my:InsideView xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-08-02T14:22:59" xml:lang="en-us">...
5
by: Rami A. Kishek | last post by:
I'm new to js. Please help me figure this out WANT: Client to save an image to disk pressing a "download" button. The image name is dynamic, from JS code on another part of the page DID: Read...
2
by: Kevin Lyons | last post by:
Hello, Can anyone assist me with what I am trying to do with the following code (six different scenarios to try to make the functionality work correctly)? I want to always (and ONLY) display...
2
by: billrdio | last post by:
I am trying to make a JavaScript animation of real-time images - i.e. images that will periodically change on the server. The problem I am having is that the JavaScript animation I have created is...
5
by: elsenraat_76 | last post by:
Hello! I was wondering if someone could help me out with a problem I'm having? I'm trying to input a javascript value into an anchor tag (from a function), but don't have an event to call the...
8
by: Yourself | last post by:
Is there anyway of disabling images in javascript, so that the alternative text appears instead of the images? I'm trying to do a text-only version of my site.
3
by: chinki | last post by:
I'm facing a problem in form related to employee Leave which has two asp controls with calendar image which is built in javascript as, <asp:textbox id="txtlsdate" runat="server"...
10
by: evicailieva | last post by:
A have a php scrip where I call a JavaScript function. I don't know why, but it doesn't work. At the beginning, when I was writing the script it was working but now it's not. I don't know wхat to do....
1
by: miked13 | last post by:
I have 4 textfields labeled "qtyA","qtyB","qtyC" and "GrandTotal". I have my calculate() function run Onchange of any of the "qty" fields and it displays it in "GrandTotal". I am trying to get my...
6
by: Archana | last post by:
Hi all, i am facing one problem with status bar of IE. when i execute any javascript function or navigate to any link it is showing me that in status bar which i don't want. how will ido...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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:
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,...

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.