I have this Ajax app and sometimes I need to communicate with the server
only for the side-effect, not expecting any HTML or JSOn data back, but
I should wait on the ACK before proceeding to kick off, say, a reload of
a datagrid which will end up accessing the side-effected server data.
eg, it could simply be a checkbox that says "comedies" and I just want
to repopulate the "movies" store on the server and then quick off a
"refresh" of the grid.
What I found when I returned nothing was I got a "no element" error from
somewhere. But if I returned any empty div whoever it was that was
complaining seemed happy, even tho I did nothing with the div.
I am guessing I am missing some way to say "I handled this already", but
all I do in cases where I /do/ stuff the response into innerHTML is
that, I do not otherwise say "I handled it".
The "no element" error seems benign, but I do not like errors of any
kind, they might not be so benign some day.
Any hints greatly appreciated.
kt 4 1484
On Nov 19, 7:37*pm, Kenny <kentil...@gmail.comwrote:
I have this Ajax app and sometimes I need to communicate with the server
only for the side-effect, not expecting any HTML or JSOn data back, but
I should wait on the ACK before proceeding to kick off, say, a reload of
a datagrid which will end up accessing the side-effected server data.
Okay.
>
eg, it could simply be a checkbox that says "comedies" and I just want
to repopulate the "movies" store on the server and then quick off a
"refresh" of the grid.
What I found when I returned nothing was I got a "no element" error from
somewhere. But if I returned any empty div whoever it was that was
Somewhere?
complaining seemed happy, even tho I did nothing with the div.
I am guessing I am missing some way to say "I handled this already", but
all I do in cases where I /do/ stuff the response into innerHTML is
that, I do not otherwise say "I handled it".
The "no element" error seems benign, but I do not like errors of any
kind, they might not be so benign some day.
Doesn't sound benign to me.
>
Any hints greatly appreciated.
Try looking at the source. I am guessing that some of it is borrowed
(e.g. a library of some sort.)
David Mark wrote:
On Nov 19, 7:37 pm, Kenny <kentil...@gmail.comwrote:
>>I have this Ajax app and sometimes I need to communicate with the server only for the side-effect, not expecting any HTML or JSOn data back, but I should wait on the ACK before proceeding to kick off, say, a reload of a datagrid which will end up accessing the side-effected server data.
Okay.
>>eg, it could simply be a checkbox that says "comedies" and I just want to repopulate the "movies" store on the server and then quick off a "refresh" of the grid.
What I found when I returned nothing was I got a "no element" error from somewhere. But if I returned any empty div whoever it was that was
Somewhere?
Firebug comsole reports it, I wager FireFox is throwing it.
>
>>complaining seemed happy, even tho I did nothing with the div.
I am guessing I am missing some way to say "I handled this already", but all I do in cases where I /do/ stuff the response into innerHTML is that, I do not otherwise say "I handled it".
The "no element" error seems benign, but I do not like errors of any kind, they might not be so benign some day.
Doesn't sound benign to me.
FireFox does not crash, the page does not freeze, indeed the page
appears as it should. How so? A GET request from which no response was
required other than notification of completion is completing
successfully. The only problem is FireFox does not know what to do with
an empty response, but at least it shrugs it off and caries on in the
hope that the response was not needed. It was right. Hence...benign.
>
>>Any hints greatly appreciated.
Try looking at the source.
Of FireFox? I doubt it is that hard to figure out for anyone who knows Ajax.
kt
On Nov 20, 12:10*am, Kenny <kentil...@gmail.comwrote:
David Mark wrote:
On Nov 19, 7:37 pm, Kenny <kentil...@gmail.comwrote:
>I have this Ajax app and sometimes I need to communicate with the server only for the side-effect, not expecting any HTML or JSOn data back, but I should wait on the ACK before proceeding to kick off, say, a reload of a datagrid which will end up accessing the side-effected server data.
Okay.
>eg, it could simply be a checkbox that says "comedies" and I just want to repopulate the "movies" store on the server and then quick off a "refresh" of the grid.
>What I found when I returned nothing was I got a "no element" error from somewhere. But if I returned any empty div whoever it was that was
Somewhere?
Firebug comsole reports it, I wager FireFox is throwing it.
FireFox does not throw exceptions to the error console (scripts do.)
So save your money. Firebug has nothing to do with it, unless you are
mistaking one of its warnings for an error.
>
>complaining seemed happy, even tho I did nothing with the div.
>I am guessing I am missing some way to say "I handled this already", but all I do in cases where I /do/ stuff the response into innerHTML is that, I do not otherwise say "I handled it".
>The "no element" error seems benign, but I do not like errors of any kind, they might not be so benign some day.
Doesn't sound benign to me.
FireFox does not crash, the page does not freeze, indeed the page
That's good. It is hard to imagine a script error that would crash
Firefox. A bad script could freeze it and it is good to know that
yours does not.
appears as it should. How so? A GET request from which no response was
required other than notification of completion is completing
successfully.
Why is it not a POST? GET requests are not supposed to have side
effects on the server.
The only problem is FireFox does not know what to do with
an empty response, but at least it shrugs it off and caries on in the
hope that the response was not needed. It was right. Hence...benign.
More like not an error at all (likely a Firebug warning.)
Kenny wrote:
I have this Ajax app and sometimes I need to communicate with the server
only for the side-effect, not expecting any HTML or JSOn data back, but
I should wait on the ACK before proceeding to kick off, say, a reload of
a datagrid which will end up accessing the side-effected server data.
eg, it could simply be a checkbox that says "comedies" and I just want
to repopulate the "movies" store on the server and then quick off a
"refresh" of the grid.
What I found when I returned nothing was I got a "no element" error from
somewhere. But if I returned any empty div whoever it was that was
complaining seemed happy, even tho I did nothing with the div.
I am guessing I am missing some way to say "I handled this already", but
all I do in cases where I /do/ stuff the response into innerHTML is
that, I do not otherwise say "I handled it".
The "no element" error seems benign, but I do not like errors of any
kind, they might not be so benign some day.
Any hints greatly appreciated.
kt
I maanged to make (whoever...firebug? ffox?) happy by changing
mime/types -- text/javascript seems fine with an empty string or "42".
kt This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kathryn |
last post by:
Hiya
I have a problem with using some client side and server side scripting
together in an ASP. I'm using VBScript.
What I'm trying to achieve is this -
- Page loads up and some server side...
|
by: Hernán Castelo |
last post by:
should i to validate all the "Request"s calls
like Request.FORM("...") and Request.Cookies("...")
????
if it is so, i have to see inside
every "Input" elements like "Text" and even "Hidden"...
|
by: HarveyB |
last post by:
I would like to generate non-modal popup windows from
ASP.Net code-behind. I have tried using Client Side
scripting like "function Test(){
window.open('test.htm',_blank,...
|
by: Matt |
last post by:
I guess the principal differences between client-side and server-side code
is that
client-side code is processed in web browser, and server-side code is
processed in web server. In ASP.NET web...
|
by: Borr |
last post by:
Hi,
I have an ASP .NET page, that runs client side timer that
does something on the Server side and after that loads
another page. So I have on client side something like :
function...
| |
by: |
last post by:
Hello Guys,
I am using the validation controls to validate my data.
But the problem is "The page is still being posted to
server".
I want to get rid of the round trips to server. Are there...
|
by: Matt |
last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or
Client-Side form validation? Since I think each validator control can select
either 1) JavaScript based error dialog or 2)...
|
by: Simon Brooke |
last post by:
I've been doing XSL transforms, converting XML to HTML, server side since
2000. In those days, clients which could do the transformation client
side didn't exist, so whether to transform...
|
by: Chris |
last post by:
Hi,
I have jsut started to learn ASP development and have read many
articles regarding which is the best to use regarding JavaScript or
VBScript. All of the learning that I have done so far has...
|
by: Ankur |
last post by:
Hi Folks,
I am new for this group. I want to clarify one thing what's a basic
difference between Client Side Java Script and Server Side Java
Script. how we can differentiate it. Why we called...
|
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...
| |
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...
|
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,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |