Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[syntax="javascript"]function fetchQuery(userid)
{
if (navigator.appVersion.indexOf('Macintosh') > -1)
{
alert('within mac');
var searchString = document.getElementById('searchContent').value;
document.getElementById('userid').value = userid;
document.getElementById('Test').value=searchString;
alert(searchString);
alert(userid);
// alert(document.getElementsByTagName('td'));
//var allTDs = document.getElementsByTagName("button");
//alert("# of table cells: " + allTDs.length);
alert(document.getElementById('Test').value);
}
else(navigator.appVersion.indexOf(MSIE) > -1)
{
alert('Within Windows IE');
var searchString = document.getElementById('searchContent').value;
document.getElementById('userid').value = userid;
document.getElementById('Test').value=searchString;
alert(searchString);
alert(userid);
// alert(document.getElementsByTagName('td'));
//var allTDs = document.getElementsByTagName("button");
//alert("# of table cells: " + allTDs.length);
alert(document.getElementById('Test').value);
}
}Code: Select all
<?php
print "<input type=hidden name=Test ID=Test value=$Test>";
print "<input type=hidden name=userid ID=Test value=$userid>";
print"<input style='position:relative;' type=button value=' Go ' onclick='fetchQuery(userid)";
print "<input style='position:relative;' type=textbox name='searchContent' id='searchContent' >";
?>what to do? but in Windows IE, i can retrieve value for 'Test' .
What changes i have to do for MAC?
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]