logo       
Bookmark and Share

[HtmlUnit] [ htmlunit-Bugs-1309064 ] JavaScript Undefined: msg#00061

java.htmlunit.devel

Subject: [HtmlUnit] [ htmlunit-Bugs-1309064 ] JavaScript Undefined

Bugs item #1309064, was opened at 2005-09-29 19:45
Message generated for change (Comment added) made by yourgod
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1309064&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Latest code in CVS
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: Serge (sdupuis)
Assigned to: Nobody/Anonymous (nobody)
Summary: JavaScript Undefined

Initial Comment:
The problem I believe is either the rhino engine,
something html unit is not setting , or there is
something strange aabout the offending javascript.

simply clicking a button which should call the
doCreateWaybill() function which eventually calls
the
updateDataLower("shipLowerTable.jsp" + action);
relative url.

The server is not being called.

I have traced it as far as html unit trying to call rhino to
interpret the javascript, but I get back undefined.

I have included a DEBUG log as well after, the page in
question. Ignore the exception, because it is happening
because the page is not updated properly. The problem
is the page is not updated after the Create button is
pressed. We are using AJAX, so we have an upper and
lower page update.Any ideas?

Here is the whole page:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Strict//EN">
<html>
<head>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-
CACHE" />
<meta http-equiv="Content-Type"
content="text/html;charset=ISO-8859-1" />
<title>ASA Server</title>
<link href="common.css" rel="stylesheet"
type="text/css">
<link rel="stylesheet" media="screen"
href="dynCalendar.css" type="text/css">
<script language="javascript" type="text/javascript"
src="browserSniffer.js"></script>
<script language="javascript" type="text/javascript"
src="dynCalendar.js" ></script>
<script language="javascript" type="text/javascript"
src="stripeTable.js" ></script>
<script language="javascript" type="text/javascript"
src="sortTable.js" ></script>

<script language="javascript" type="text/javascript">
var reqUpper;
var reqLower;

function updateDataUpper(location) {
// branch for native XMLHttpRequest object
if (window.XMLHttpRequest) {
reqUpper = new XMLHttpRequest
();
reqUpper.onreadystatechange =
processUpperTableUpdate;
reqUpper.open("GET", location,
true);
reqUpper.send(null);
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
reqUpper = new ActiveXObject
("Microsoft.XMLHTTP");
if (reqUpper) {
reqUpper.onreadystatechange =
processUpperTableUpdate;
reqUpper.open("GET", location, true);
reqUpper.send();
}
}
}

function updateDataLower(location) {
// branch for native XMLHttpRequest object
if (window.XMLHttpRequest) {
reqLower = new XMLHttpRequest
();
reqLower.onreadystatechange =
processLowerTableUpdate;
reqLower.open("GET", location,
true);
reqLower.send(null);
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
reqLower = new ActiveXObject
("Microsoft.XMLHTTP");
if (reqLower) {
reqLower.onreadystatechange =
processLowerTableUpdate;
reqLower.open("GET", location, true);
reqLower.send();
}
}
}

function processLowerTableUpdate() {
// only if req shows "loaded"
if (reqLower.readyState == 4) {
// only if "OK"
if (reqLower.status == 200) {
replaceText
(reqLower.responseText, 'lowerTable');
stripeTable
('lower_data_table', '#FEFEFE', '#ECECEC');
} else {
replaceText('<p
class=\"error\">Error retrieving data from
server', 'lowerTable');
}
}
}

function processUpperTableUpdate() {
// only if req shows "loaded"
if (reqUpper.readyState == 4) {
// only if "OK"
if (reqUpper.status == 200) {
replaceText
(reqUpper.responseText, 'upperTable');
stripeTable
('upper_data_table', '#FEFEFE', '#ECECEC');
} else {
replaceText('<p
class=\"error\">Error retrieving data from
server', 'lowerTable');
}
}
}

function toggleAll(form, clazz )
{
var formId = document.getElementById(form);
var state = document.currentForm.selectAll.checked;

for (i = 0, n = formId.elements.length; i < n; i++)
{
if (formId.elements[i].className.indexOf
(clazz) !=-1)
{
formId.elements[i].checked = state;
}
}
document.currentForm.selectAll.checked = state;
}

function toggleOne(form, name, clazz)
{
var checkbox = document.getElementById(name);

if (checkbox == null)
{
return;
}

if (checkbox.checked == false)
{
document.currentForm.selectAll.checked = false;
}
else
{
var formId = document.getElementById(form);
var selectAll = true;

for (i = 0, n = formId.elements.length; i < n ; i++)
{
if (formId.elements[i].className.indexOf(clazz) != -
1)
{
if(formId.elements[i].checked == false)
{
selectAll = false;
break;
}
}
}
document.currentForm.selectAll.checked = selectAll;
}
}

function replaceText(text, id)
{
var myDiv = document.getElementById(id);

if (myDiv.hasChildNodes())
{
myDiv.removeChild(myDiv.lastChild);
}
myDiv.innerHTML = text;
}


</script>

<SCRIPT language="JavaScript" type="text/javascript">
// overly simplistic test for IE
isIE = (document.all ? true : false);
// both IE5 and NS6 are DOM-compliant (well, sort of...)
isDOM = (document.getElementById ? true : false);
function getDivStyle(divname) {
var style;
if (isDOM) {
style = document.getElementById
(divname).style;
} else {
style = isIE ? document.all
[divname].style : document.layers[divname];
} // NS4
return style;
}
function showElement(divname) {
getDivStyle(divname).visibility = 'visible';
}
function hideElement(divname) {
getDivStyle(divname).visibility = 'hidden';
}
function toggleVisible(divname) {
divstyle = getDivStyle(divname);
if (divstyle.visibility == 'visible' || divstyle.visibility
== 'show') {
divstyle.visibility = 'hidden';
} else {
divstyle.visibility = 'visible';
}
}
</SCRIPT>
</head>

<body>
<div class="titleBar">
<div id="logo"><span>Logo</span></div>
<div id="asa_logo"><span>ASA Logo</span></div>
<div id="epic_logo"><span>Powered by Epic Data
Inc.</span></div>
</div>


<div class="navBar" style="overflow: hidden; width:
100%; left: 0; top : 0; padding-bottom: 3px;">
<ul class="buttonList" style="margin :0; padding : 0;">
<li style="float: left; position: absolute; left: 1%; list-
style: none;"><a href="Main.jsp"
onmouseout="hideElement('shipment');"
onmouseover="showElement
('shipment');">Shipments</a></li>
<li style="float: left; position: absolute; left: 10%;list-
style: none;"><a href="SearchServlet"
onmouseout="hideElement('searchPO');"
onmouseover="showElement('searchPO');">Purchase
Orders</a></li>
<li style="float: left; position: absolute; left: 23%;list-
style: none;"><a href="AccountServlet"
onmouseout="hideElement('account');"
onmouseover="showElement
('account');">Account</a></li>
<li style="float: left; position: absolute; left: 31%;list-
style: none;"><a href="Help.jsp" target="_new"
onmouseout="hideElement('help');"
onmouseover="showElement('help');">Help</a></li>
<li style="float: left; position: absolute; left: 38%;list-
style: none;;"><a href="About.jsp"
onmouseout="hideElement('about');"
onmouseover="showElement('about');">About</a></li>
<li style="float: right; list-style: none; margin-right:
1em;"><a href="LogoutServlet"
onmouseout="hideElement('logoff');"
onmouseover="showElement('logoff');">Log Out</a></li>
</ul>
</div>

<div class="navBar" style="overflow: hidden; width:
100%; left: 0; top : 0; padding-bottom: 3px;">
<div class="subNavBarBG">
<div class="subNavBar">
<ul class="buttonList" style="margin :0; padding : 0;">
<li id="shipment" style="float: left; position: absolute;
left: 1%; list-style: none;">Create and Review
Shipments</li>
<li id="searchPO" style="float: left; position: absolute;
left: 10%;list-style: none;">Search Purchase Orders</li>
<li id="account" style="float: left; position: absolute;
left: 23%;list-style: none;">Edit User Profile</li>
<li id="help" style="float: left; position: absolute; left:
31%;list-style: none;">Online Help (opens in new
window)</li>
<li id="about" style="float: left; position: absolute; left:
38%;list-style: none;">About P3ASA</li>
<li id="logoff" style="float: right; list-style: none; margin-
right: 1em;">Log out of ASA</li>
</ul>
</div>
</div>
</div>

<div class="breadCrumbs">

<a
href="SelectSiteServlet">

&nbsp;<img
src="images/crumb.gif" border=0>&nbsp;Step 1

</a>

<a
href="PackTableServlet">

&nbsp;<img
src="images/crumb.gif" border=0>&nbsp;Step 2

</a>

&nbsp;<img
src="images/crumb.gif">&nbsp;<span>Step 3 - Assign
Boxes to Waybills</span>

</div>




<script language="Javascript" type="text/javascript">

addEvent(window, "load", doLoad);

function doLoad()
{
stripeTable
('upper_data_table', '#FEFEFE', '#ECECEC');
stripeTable('lower_data_table', '#FEFEFE', '#ECECEC');
}

function updateLowerTable(action)
{
updateDataLower("shipLowerTable.jsp" + action);
}

function updateUpperTable()
{
updateDataUpper("shipUpperTable.jsp");
}

function doDeleteWaybill()
{
updateLowerTable("?delete=1");
setTimeout("updateUpperTable()", 250);
}

function addWaybill()
{
updateDataLower("createShipment.jsp");
}

function deleteWaybill()
{
replaceText("<div style=\"text-align: center;\">Are you
sure you want to delete this waybill? All boxes will be
moved to the outstanding list.<br/> <input
type=\"button\" value=\"Yes\" onclick=\"return
doDeleteWaybill();\" />&nbsp;&nbsp;<input
type=\"button\" value=\"No\" onclick=\"return
updateLowerTable('');\" /></div>", 'buttonBar');
}

function previousWaybill()
{
updateLowerTable("?previous=1");
}

function nextWaybill()
{
updateLowerTable("?next=1");
}

function updateCreateShipment(action)
{
updateLowerTable(action);
setTimeout("updateUpperTable()", 250);
}

function doCreateWaybill()
{
// get the input values and put them into a URL to send
to the server
var urlStr = '?add=1';
var myCourier = document.getElementById
('courier').value;
var myWaybill = document.getElementById
('waybill').value;

var myCustom1 = document.getElementById('c1_');
var myCustom2 = document.getElementById('c2_');
var myCustom3 = document.getElementById('c3_');

urlStr = urlStr + '&courier=' + myCourier + '&waybill='
+ myWaybill;

if (myCustom1 != null)
{
urlStr = urlStr + '&c1_=' + myCustom1.value;
}
if (myCustom2 != null)
{
urlStr = urlStr + '&c2_=' + myCustom2.value;
}
if (myCustom3 != null)
{
urlStr = urlStr + '&c3_=' + myCustom3.value;
}

updateCreateShipment(urlStr);
}

</script>





<form method="post" id="currentForm"
name="currentForm" action="ShipTableServlet">
<div id="upperTable">






<div class="tableContainerUpper">
<table border="0" cellpadding="0" cellspacing="0"
width="97%" class="scrollTable" id="upper_data_table">
<thead class="fixedHeader">
<tr>
<th><input disabled="disabled" name="selectAll"
onclick="toggleAll('currentForm', 'toggleOne');"
type="checkbox" /></th>
<th>Pack Box</th>
<th>Destination</th>
<th>Priority</th>
<th># Items</th>
<!-- <th># Parts</th> -->
<th>Weight</th>
<th>UOM</th>
<th>Height</th>
<th>Width</th>
<th>Length</th>
<th>UOM</th>
</tr>
</thead>
<tbody class="scrollContentUpper">

<tr id="ROW_ID_1">
<td><input disabled="disabled" type="checkbox"
onclick="toggleOne('currentForm', '1', 'toggleOne');"
class="toggleOne" id="ROW_ID_1"
name="ROW_ID_1" /></td>
<td>1</td>
<td>YVRSAWH</td>
<td>Ground</td>
<td>1</td>
<!-- <td>fixme</td> -->
<td><input disabled="disabled" type="text" size="6"
name="weight_1" value="" /></td>
<td><select disabled="disabled"
name="weightUOM_1">
<option value="lbs">lbs</option><option
value="oz">oz</option><option
value="kg">kg</option><option value="g">g</option>
</select></td>
<td><input disabled="disabled" type="text" size="6"
name="H_1" value="" /></td>
<td><input disabled="disabled" type="text" size="6"
name="W_1" value=""></td>
<td><input disabled="disabled" type="text" size="6"
name="L_1" value=""></td>
<td><select disabled="disabled"
name="dimensionUOM_1">
<option value="ft">ft</option><option
value="in">in</option><option
value="m">m</option><option value="cm">cm</option>
</select></td>
</tr>

</tbody>
</table>
</div>
<div style="position: relative; padding-top: 10px;
padding-bottom:5px;">
<input style="float: right;" type="submit" onclick=""
name="add_to" value="Add To Shipment"
disabled="disabled" />
</div>

</div>
<div>
<br/>
<hr />
</div>
<div id="lowerTable">







<style type="text/css" media="screen">
.col1
{
clear: both;
postition: relative;
float: left;
width: 15em;
text-align: right;
font-weight: bold;
margin-right: .5em;
margin-top: .3em;
}

.col2
{
postition: relative;
float: left;
margin-top: .3em;
}
</style>

<div id="createShipment" style="margin-top: 1em;
padding: 0em 1em .1em 1em; width: 45em; margin-left:
auto; margin-right: auto;">
<div style="font-weight: bold;">Please enter the
information for this Shipment. You must create at least
one Shipment before you can assign boxes to it.</div>
<div class="col1">Carrier : </div><div
class="col2"><input type="text" size="25"
id="courier" /></div>
<div></div>
<div class="col1">Waybill : </div><div
class="col2"><input type="text" size="20"
id="waybill" /></div>
<div></div>

<div class="col1">Customizable 1</div>
<div class="col2"><input type="text" size="20"
id="c1_" /></div>
<div></div>

<div class="col1">Customizable 2</div>
<div class="col2"><input type="text" size="20"
id="c2_" /></div>
<div></div>

<div class="col1">Customizable 3</div>
<div class="col2"><input type="text" size="20"
id="c3_" /></div>
<div></div>


<div style="clear: both; padding: .5em 1em .1em 1em;
text-align: center;">
<input type="button" value="Create" onclick="return
doCreateWaybill();" />
&nbsp;&nbsp;
<input type="button" value="Cancel"
onclick="return updateCreateShipment('');"/>
</div>
</div>



</div>

</form>


<div style="clear: both;">&nbsp;</div>
<div class="footer">&nbsp;</div>
</body>
</html>

Here is a snippet of the later portion of the log:


FINE: No configured setter "doLoad" found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "updateLowerTable" found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "updateUpperTable" found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "doDeleteWaybill" found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "addWaybill" found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "deleteWaybill" found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "previousWaybill" found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "nextWaybill" found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "updateCreateShipment"
found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "doCreateWaybill" found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "addEventListener" of
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d not defined as fixed property

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "attachEvent" of
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d not defined as fixed property

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.host.Window
jsxFunction_alert

WARNING: window.alert("Handler could not be
removed") no alert handler installed

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.host.Window
jsxFunction_alert

WARNING: window.alert("Handler could not be
removed") no alert handler installed

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "doCreateWaybill" of HTMLElement for
HtmlButtonInput[<input value="Create" type="button"
onclick="return doCreateWaybill();">] not defined as
fixed property

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "doCreateWaybill" of HTMLElement for
HtmlButtonInput[<input value="Create" type="button"
onclick="return doCreateWaybill();">] not defined as
pure js property

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "reqLower" found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "open" of
com.gargoylesoftware.htmlunit.javascript.host.XMLHttpR
equest@e80740 not defined as pure js property

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "readyState" of
com.gargoylesoftware.htmlunit.javascript.host.XMLHttpR
equest@e80740 not defined as pure js property

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "readyState" of
com.gargoylesoftware.htmlunit.javascript.host.XMLHttpR
equest@e80740 not defined as pure js property

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "send" of
com.gargoylesoftware.htmlunit.javascript.host.XMLHttpR
equest@e80740 not defined as pure js property

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "readyState" of
com.gargoylesoftware.htmlunit.javascript.host.XMLHttpR
equest@e80740 not defined as pure js property

com.gargoylesoftware.htmlunit.ElementNotFoundExcepti
on: elementName=[input] attributeName=[name]
attributeValue=[confirm]

at
com.gargoylesoftware.htmlunit.html.HtmlForm.getInputB
yName(HtmlForm.java:437)

at
com.epicdata.p3.asa.test.client.AsaTest.test_TA_INSP
ECTION0001(AsaTest.java:148)

at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke
(Method.java:324)

at junit.framework.TestCase.runTest
(TestCase.java:154)

at
com.epicdata.p3.asa.test.AsaClientGuiTestCase.runBar
e(AsaClientGuiTestCase.java:1645)

at junit.framework.TestResult$1.protect
(TestResult.java:106)

at junit.framework.TestResult.runProtected
(TestResult.java:124)

at junit.framework.TestResult.run
(TestResult.java:109)

at junit.framework.TestCase.run
(TestCase.java:118)

at junit.framework.TestSuite.runTest
(TestSuite.java:208)

at junit.framework.TestSuite.run
(TestSuite.java:203)

at
com.borland.jbuilder.unittest.JBTestRunner.run
(JBTestRunner.java:210)

at
com.borland.jbuilder.unittest.JBTestRunner.initiateTest
(JBTestRunner.java:252)

at
com.borland.jbuilder.unittest.JBTestRunner.main
(JBTestRunner.java:558)

Thu Sep 29 17:39:46 PDT 2005
MMS INSPECTION : test_TA_INSPECTION0001
completed

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.host.Window$1
run

FINE: Executing timeout: updateUpperTable()

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.html.HtmlPage
executeJavaScriptIfPossible

FINE: Now build JS function
function GargoyleWrapper0() {updateUpperTable()
}

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le makeScriptableFor

FINE: No javascript class found for element <html>.
Using HTMLElement

29-Sep-2005 5:39:46 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "GargoyleWrapper0" found
for HTMLElement for HtmlHtml[<html>]. Setting it as
pure javascript property.

29-Sep-2005 5:39:47 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "updateUpperTable" of HTMLElement for
HtmlHtml[<html>] not defined as fixed property

29-Sep-2005 5:39:47 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "updateUpperTable" of HTMLElement for
HtmlHtml[<html>] not defined as pure js property

29-Sep-2005 5:39:47 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le put

FINE: No configured setter "reqUpper" found for
com.gargoylesoftware.htmlunit.javascript.host.Window@
1f8247d. Setting it as pure javascript property.

29-Sep-2005 5:39:47 PM
com.gargoylesoftware.htmlunit.javascript.SimpleScriptab
le get

FINE: Property "open" of
com.gargoylesoftware.htmlunit.javascript.host.XMLHttpR
equest@16cbd97 not defined as pure js property





----------------------------------------------------------------------

>Comment By: Brad Clarke (yourgod)
Date: 2006-03-23 20:33

Message:
Logged In: YES
user_id=257129

cannot reproduce and no activity for months

----------------------------------------------------------------------

Comment By: Marc Guillemot (mguillem)
Date: 2005-10-25 07:28

Message:
Logged In: YES
user_id=402164

This doesn't help: I would need to go into your code to
understand what is going and as long as you don't pay me for
it, I don't have so much time.

Can you provide the SMALLEST html/js/java illustrating the
problem?

----------------------------------------------------------------------

Comment By: Serge (sdupuis)
Date: 2005-09-30 18:54

Message:
Logged In: YES
user_id=1353484

1)Please ignore the exception, it is caused as a result of the
javascript not working.Page not being returned, so cannot
find the tag i was looking for.
2) The javascript engine is returning a page undefined.
Is this caused by the embedding of another function?or
something else.
The function is called by a:

<input type="button" value="Create" onclick="return
doCreateWaybill();" />
in the html page.

The function to concentrate on is
function doCreateWaybill()
{
// get the input values and put them into a URL to send
to the server
var urlStr = '?add=1';
var myCourier = document.getElementById
('courier').value;
var myWaybill = document.getElementById
('waybill').value;

var myCustom1 = document.getElementById('c1_');
var myCustom2 = document.getElementById('c2_');
var myCustom3 = document.getElementById('c3_');

urlStr = urlStr + '&courier=' + myCourier + '&waybill='
+ myWaybill;

if (myCustom1 != null)
{
urlStr = urlStr + '&c1_=' + myCustom1.value;
}
if (myCustom2 != null)
{
urlStr = urlStr + '&c2_=' + myCustom2.value;
}
if (myCustom3 != null)
{
urlStr = urlStr + '&c3_=' + myCustom3.value;
}

updateCreateShipment(urlStr);
}

Hope this helps.


----------------------------------------------------------------------

Comment By: Marc Guillemot (mguillem)
Date: 2005-09-30 03:32

Message:
Logged In: YES
user_id=402164

You seem to provide too much and too many information:
- your big html code just makes the issue more difficult to
understand
- your log output contains an exception thrown from your
AsaTest.java:148 and this code is not provided.

When you submit a bug, please provide ALL the information
needed to reproduce the problem but ONLY the needed
information (remove unnecessary html, css, or java code).

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1309064&group_id=47038


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise