Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

calling .jsp script

Original Message
Name: liliyaw
Date: June 29, 2006 at 14:57:20 Pacific
Subject: calling .jsp script
OS: linux
CPU/Ram: 524
Model/Manufacturer: don't know
Comment:
Hi everyone,
Does anybody know how to call a jsp script with a value in javascript?
I know there is a way to go to a different page, the syntax is
window.location.replace('jobedit.jsp?id="+intItemID+"&cmd=upfb');
but I need to stay in the same window and execute the script

Report Offensive Message For Removal


Response Number 1
Name: Michael J (by mjdamato)
Date: June 29, 2006 at 15:27:42 Pacific
Subject: calling .jsp script
Reply: (edit)
This article may help. It is about calling a PHP script from JavaScript without actually loading a page. Don't see why it wouldn't work for JSP as well:

http://www.phpit.net/article/php-on-the-fly/

Michael J


Report Offensive Follow Up For Removal

Response Number 2
Name: Laler
Date: June 29, 2006 at 17:13:16 Pacific
Subject: calling .jsp script
Reply: (edit)
ajax? I'm currently building one with it. It's so hard to make it work on IE, firefox & opera without understanding javascript's DOM (which I don't).

This is the tutorial I'm trying to implement, their example work on that 3 browsers: http://www.yourhtmlsource.com/javascript/ajax.html

The example page: http://www.yourhtmlsource.com/examples/ajaxformsubmission.html

---


Report Offensive Follow Up For Removal

Response Number 3
Name: Laler
Date: June 29, 2006 at 17:22:33 Pacific
Subject: calling .jsp script
Reply: (edit)
Rasmus' 30 second AJAX Tutorial was my first tutorial :D A quick read if you just want to understand the conecpt, but it breaks my layout in opera.

---


Report Offensive Follow Up For Removal

Response Number 4
Name: Laler
Date: June 29, 2006 at 17:33:37 Pacific
Subject: calling .jsp script
Reply: (edit)
and this is nice too :-D

http://mentalized.net/activity-indicators/

as most people will think there's something wrong when nothing happens when they click.

---


Report Offensive Follow Up For Removal

Response Number 5
Name: liliyaw
Date: June 30, 2006 at 10:10:42 Pacific
Subject: calling .jsp script
Reply: (edit)
Well, at this point, I'm using javascript to do POST to my request processing jsp page. The issue now - I'm ready to send back data from that jsp page into the client view page and I'm not sure what has to happen on the client side to show the data.

Report Offensive Follow Up For Removal


Response Number 6
Name: Laler
Date: June 30, 2006 at 12:46:34 Pacific
Subject: calling .jsp script
Reply: (edit)
You want to do it asynchronously right? Only some of the content changed, not the whole page? Take a look at the 30 second tutorial written by Rasmus above, you'll get a good grasp on what should be done.

I'm not sure what has to happen on the client side to show the data

In short, the page change its content by using javascript (which is what it can do best, change things on the client side), but the content is taken from another file, as a result of a request to that file (.php file or any).

In the example page in response #2, the 'processor' outputs data in XML format, while in Rasmus' tutorial it outputs plain text with | as delimiter. string before the | is used as a marker for what div (or any) ID should change its content.

---
Site of the Day


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: calling .jsp script

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




acer 312T BIOS problem

K7 Turbo possible max fsb?

Pc anywher problem

WinFLP & OE/Outlook2003

Computer resets after a few minutes


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC