I am using a handler (processImage.a shx) to display an image. The image is
displayed according to parameters passed in the querystring. The handerl is
called via some clientside javascript.
I want to send an array of unknown length to the handler. I am not sure
whether the querystring is the best place to do this. What's the best way to
send an array held in the client side javascript to the handler?
Thanks in advance,
JJ 3 5790
you can not post an image request, so the url is the only option other than a
prelimary ajax call. the url is restricted to about 2k. how you encode the
array depends on the array type. the most common is a array.join('|') , with a
matching split on the server side.
-- bruce (sqlwork.com)
"JJ" wrote:
I am using a handler (processImage.a shx) to display an image. The image is
displayed according to parameters passed in the querystring. The handerl is
called via some clientside javascript.
I want to send an array of unknown length to the handler. I am not sure
whether the querystring is the best place to do this. What's the best way to
send an array held in the client side javascript to the handler?
Thanks in advance,
JJ
How would I do the prelimary ajax call?
Thanks,
JJ
"bruce barker (sqlwork.com)"
<br************ *******@discuss ions.microsoft. comwrote in message
news:C8******** *************** ***********@mic rosoft.com...
you can not post an image request, so the url is the only option other
than a
prelimary ajax call. the url is restricted to about 2k. how you encode the
array depends on the array type. the most common is a array.join('|') ,
with a
matching split on the server side.
-- bruce (sqlwork.com)
"JJ" wrote:
>I am using a handler (processImage.a shx) to display an image. The image is displayed according to parameters passed in the querystring. The handerl is called via some clientside javascript.
I want to send an array of unknown length to the handler. I am not sure whether the querystring is the best place to do this. What's the best way to send an array held in the client side javascript to the handler?
Thanks in advance, JJ
Hi JJ,
I think Bruce means you should pass the image urls(or any array parameters)
either through url querystring or through AJAX xmlhttp request. Directly
manipulate binary content of image is not quite supported in client script
and also not effecient to pass such large content frequently.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "JJ" <ab*@xyz.com> Subject: Re: Passing a javascript array to a handler .ashx Date: Tue, 20 Nov 2007 10:55:18 -0000
>How would I do the prelimary ajax call?
Thanks, JJ "bruce barker (sqlwork.com)" <br*********** ********@discus sions.microsoft .comwrote in message news:C8******* *************** ************@mi crosoft.com...
>you can not post an image request, so the url is the only option other than a prelimary ajax call. the url is restricted to about 2k. how you encode
the
>array depends on the array type. the most common is a array.join('|') , with a matching split on the server side.
-- bruce (sqlwork.com)
"JJ" wrote:
>>I am using a handler (processImage.a shx) to display an image. The image is displayed according to parameters passed in the querystring. The
handerl
>>is called via some clientside javascript.
I want to send an array of unknown length to the handler. I am not sure whether the querystring is the best place to do this. What's the best
way
>>to send an array held in the client side javascript to the handler?
Thanks in advance, JJ
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kevin Lyons |
last post by:
Hello,
I am trying to get my select options (courses) passed correctly from
the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html
I am having difficulty getting the courses to pass the correct option
value and then be displayed at the following URL:
http://www.dslextreme.com/users/kevinlyons/selectResults.html
I am passing countries, products, and courses. The first two display
|
by: Stanislav Ostachevski |
last post by:
Hello,
My app needs to map calls to "virtual files" to ASPX parametrized pages,
without showing user actual page address.
I.e, I want to catch calls to
http://myserver.com/products/id_product/somefeature.ashx
and redirect them to
http://products.myserver.com/product.aspx?id=id_product&features=....
but I don't want to reveal the actual URL of product.aspx
I catch all calls to ashx files by custom HTTP handler.
|
by: Bart Adriaanse |
last post by:
As VS.NET is not being very supportive in creating a ASHX http handler, i
would like to use a codebehind VB file as to get intellisense features etc
on it's code.
I just cannot get ashx to work with codebehind, the only reference claiming
it can be done i could find in google is this:
http://weblogs.asp.net/kdente/posts/10622.aspx
I tried using the class name as suggested, to no avail...
|
by: JJ |
last post by:
I am trying to use .ashx files to handle dynamic image requests. The aspx page needs to pass the data to the ashx file. It was decided to not use the query string. Instead we hoped we could use the Session or the Context cache.
e.g. (in the aspx page)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Context.Current.Items.Add("Msg", "NAM2")
Me.Session.Add("Msg", "NAM2")...
|
by: s.bussing |
last post by:
Hi All,
I'm new to Atlas and I did some programming using AJAX, but I'm
wondering if it is possible to hava a javascript which can call a
server-site function, in my case to write data to the cache, using
AJAX. So I'm not looking for a possibility to wrap-up controls, but
just to call server-site code from ATLAS.
I know this can be done using AJAX, so in my opinion this should also
be possible using ATLAS, or can ATLAS just be used...
| |
by: MarkusJNZ |
last post by:
Hi, I am trying to pass an number from a classic asp webpage to a .NET
webservice.
Because my C# webservice expects an integer and classic ASP uses
variants I keep getting problems with object casts;
In my asp page I have the following code which works fine
HTTP.Open "GET","http://myserver/myService.asmx/LogPerson?ID=100",
False
|
by: Nathan Sokalski |
last post by:
I am a beginner with AJAX, and have managed to learn how to use it when
passing single parameters, but I want to return more than one value to the
client-side JavaScript function that displays it. My client-side JavaScript
function takes 4 parameters (which are expected to be integers). The idea of
passing a single parameter and parsing it on the client has occurred to me,
but since I am sure I am not the only person who has situations that...
|
by: simon |
last post by:
hi,
I would like to separate my javascript completely from my xhtml. in the
end there should be only
<script type="text/javascript" src="javalib.js"></script>
in the head-tag to my javascript.
Because I want to use some ajax-requests and other javascript-functions
on my xhtml, I need to dynamically add event handlers to any possible
dom-elements. All solutions I found so fare are for specific, pre-known
|
by: =?Utf-8?B?cHJhZGVlcF9UUA==?= |
last post by:
I am trying to create a simple HTTP handler in ASP.net 2.0. I am using VS
2005. I am trying to handle a custom extension file givein in the URL. I
have also created the following entry in the web.config file
<httpHandlers>
<add verb="*" path="*.imgw" type="Customhandler.Handler,Handler" />
</httpHandlers>
following is the code in Handler.ashx file
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |