Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Getting info from server without changing window

Reply
Thread Tools

Getting info from server without changing window

 
 
Ron Brennan
Guest
Posts: n/a
 
      10-26-2003
Good morning.

I have a page displayed and want to get information from a user using
showModalDialog, and then send a request to the server for more information
based on the user info from the showModalDialog - without changing the
displayed page.

Is this possible?

Thanks.


 
Reply With Quote
 
 
 
 
steve stevo
Guest
Posts: n/a
 
      10-26-2003
you could try looking at active x - xml storing the data

you could load this using jscript / vbscript and display


" Ron Brennan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Good morning.
>
> I have a page displayed and want to get information from a user using
> showModalDialog, and then send a request to the server for more

information
> based on the user info from the showModalDialog - without changing the
> displayed page.
>
> Is this possible?
>
> Thanks.
>
>



 
Reply With Quote
 
 
 
 
Ron Brennan
Guest
Posts: n/a
 
      10-26-2003

"Ron Brennan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Good morning.
>
> I have a page displayed and want to get information from a user using
> showModalDialog, and then send a request to the server for more

information
> based on the user info from the showModalDialog - without changing the
> displayed page.
>
> Is this possible?
>
> Thanks.

---------------------------------------
Thanks Steve.

I also found the following:

"You trigger a server-side script by setting any object's URL. For example a
frame, window, or an
Image. An image will also "swallow" the data sent back by the server so that
they will not be
visible anywhere.

var dummyImage = new Image();
dummyImage.src = "scriptURL.asp?param=" + varName; "

and

"In win32 IE5 and Mozilla, there is the XMLHTTPRequest object, which allows
passing back of
information from the server easy."

Not being a JavaScript specialist, I think Steve's suggestion is the second.

The first possibility kind of does what I want but doesn't give me a way to
get a returned value; the second uses ActiveX, which I'd rather avoid.

Any other ideas?




 
Reply With Quote
 
Laurent Bugnion, GalaSoft
Guest
Posts: n/a
 
      10-26-2003
Hi,

Ron Brennan wrote:

> "Ron Brennan" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>>Good morning.
>>
>>I have a page displayed and want to get information from a user using
>>showModalDialog, and then send a request to the server for more

>
> information
>
>>based on the user info from the showModalDialog - without changing the
>>displayed page.
>>
>>Is this possible?
>>
>>Thanks.

>
> ---------------------------------------
> Thanks Steve.
>
> I also found the following:
>
> "You trigger a server-side script by setting any object's URL. For example a
> frame, window, or an
> Image. An image will also "swallow" the data sent back by the server so that
> they will not be
> visible anywhere.
>
> var dummyImage = new Image();
> dummyImage.src = "scriptURL.asp?param=" + varName; "
>
> and
>
> "In win32 IE5 and Mozilla, there is the XMLHTTPRequest object, which allows
> passing back of
> information from the server easy."
>
> Not being a JavaScript specialist, I think Steve's suggestion is the second.
>
> The first possibility kind of does what I want but doesn't give me a way to
> get a returned value; the second uses ActiveX, which I'd rather avoid.
>
> Any other ideas?


If you need the return value, but don't want to display the server's
answer to the user, you can have the server send it to an invisible
frame. Use the ONLOAD event handler of the frame to trigger a
communication between the invisible frame and the visible one, et voilą.

HTH,

Laurent
--
Laurent Bugnion, GalaSoft
Webdesign, Java, JavaScript: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Value Without Changing HTML DrKen Javascript 10 06-23-2011 07:03 AM
Changing style of the numbers in a CSS <ol> without changing the style of the <li> Aaron Beall HTML 2 09-14-2007 08:07 PM
getting umask without changing it Faik Uygur Python 0 06-16-2006 09:07 AM
C# - getting window list and changing activ window tylerdurden@buziaczek.pl C Programming 2 03-16-2005 04:53 AM
changing file extension without changing filename jamy Computer Support 4 03-04-2005 01:03 AM



Advertisments