Hi,
I have an interesting problem with one client on a phprunner site. His browser does not display detailpreviews and dependent dropdowns do not work.
Both functions work fine in my browser and in other clients' browsers.
I suspect the two are related.
Browser version are the same, (IE7.0.5730.13), Java is on the same update, IE security settings are identical, pop-ups have been enabled, his browser runs other javascript in the same project.... It all looks the same. Except his won't run detailpreviews and dependent dropdowns. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=7222&image=1&table=forumtopics' class='bbc_emoticon' alt=':(' />
Anybody got any suggestions?
Giles
Later addition with some more info...
The dependent dropdown is processed by the following code in ajaxsuggest.js
function loadSelectContent(main_field, dependent_field, record_id)
{
alert("Start")
if(record_id!="")
recordid=""+record_id
$.get(AUTOCOMPLETE_TABLE,
{
field: myEncode( dependentfield ),
value: myEncode( $('#value'+main_field+recordid).val() ),
type: $('#value'+dependent_field+recordid)[0].tagName
},
function(txt){
alert("executing function") // This footprint not executed by client's browser but is executed by my mine...
if($('#value'+dependent_field+recordid)[0].tagName=='SELECT')
{
$('#value'+dependent_field+record_id).html('<option
value="">'+TEXT_PLEASESELECT+'</option>');
var str = txt.split('\n');
for(i=0,j=0; i < str.length - 1; i=i+2, j++) {
$('#value'+dependent_field+recordid).get(0).options[j+1]=new Option(unescape(str
[i+1]),unescape(str[i]));
}
$('#value'+dependent_field+recordid).get(0).selectedIndex = 0;
if ( j == 1 ) { $('#value'+dependent_field+recordid).get(0).selectedIndex = 1; }
$('#value'+dependent_field+recordid)[0].onchange();
}
else
{
$('#value'+dependent_field+record_id).val("");
$('#displayvalue'+dependent_field+recordid).val("");
if(txt.length)
{
var str = txt.split('\n');
if(str.length==3)
{
$('#value'+dependent_field+record_id).val(unescape(str[0]));
$('#displayvalue'+dependent_field+record_id).val(unescape(str[1]));
}
}
}
});
}
I put some footprints in the javascript and in the client's browser the code executes the first two myEncode's but does not execute a footprint in code block of function(txt).
Hope this helps point out the problem....
Thanks in advance,
Giles