LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2006, 04:52 AM   #1
CJ_Grobler
LQ Newbie
 
Registered: May 2005
Location: JHB, South Africa
Posts: 7

Rep: Reputation: 0
The RPC server is unavailible


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...
 
Old 02-28-2006, 05:11 AM   #2
CJ_Grobler
LQ Newbie
 
Registered: May 2005
Location: JHB, South Africa
Posts: 7

Original Poster
Rep: Reputation: 0
Angry solve

no worries,

i tried it on a different machine and the code is working, a big thanks to internet explorer that wasted half a day of my time
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS server: RPC: Program not registered burbank Linux - Networking 11 09-15-2011 02:04 PM
NFS RPC: Port mapper failure - RPC: Unable to receive KEJP Linux - Networking 6 12-18-2006 02:14 AM
rpc.lockd & rpc.statd twantrd Linux - General 1 05-21-2005 09:24 AM
fprintf is not working in rpc server pgm ratheesh Programming 1 01-08-2004 08:33 PM
Unmounting NFS filesystems: Cannot MOUNTPROG RPC: RPC ErnstVikenstein Linux - General 4 05-31-2003 12:10 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration