Hi,
I'm creating a webpage using CGI (in this case, javascript).
I ran into a problem running a javascript function, here goes...
print "<td align='center'><input type='button' value='Add to basket' class='input' onClick='order(\"VT-CXV-USB\",\"CorinexæLCDæInternetæUSBæPhone\",\"449.85\");' /></td>";
and here is the function...
print "\n<script language='javascript'>";
print "\nfunction order(ProdID,ProdDescr,ProdPrice) {";
print "\nvar locationStr = 'order.cgi?UserID=$UserID&Amount=1&ProdID=' + ProdID + '&ProdDescr=' + ProdDescr + '&ProdPrice=' + ProdPrice;";
print "window.open(locationStr, 'new_window', 'width=600, height=140, toolbar=no scrollbars=no location=no'); }";
But at this stage i get an error stating "The RPC server is unavailable"
Line 11 char 149 which is right before the window.open in the order function.
The æ character is used to not pass spaces to the next page, i will replace the æ with spaces on the next page.
Hope someone can help me...