Stuck on rookie Ajax test

Hey Gang,
I'm trying to do my first Ajax test, and I can't figure out
why something
isn't working.
Basically, I'm sending the contents of a text field to a 3
line asp page,
and sending the results back via ajax.
Here's the thing...
On the asp page, I can return response.write time / and
response.write "Any
text at all"
But I cannot return a Request.Quesrystring, or a Request.Form
If I change the Asynchronous attribute to False, then the Get
or Post will
response.write as expected.
It's just when I set it to asynchronous (to keep from
changing page), that
it returns the hard coded string, or time.. but not the
Querystring.
Here's the code.
It's very simple and short, I'm sure I'm just missing some
programming logic
that I'm not up to speed on.
Any info would be very appreciated.
Thanks
-Dave
**Filename is PostTest.asp**
<script type="text/javascript">
function ajaxFunction()
var xmlHttp;
try
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
catch (e)
// Internet Explorer
try
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
catch (e)
try
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
catch (e)
alert("Your browser does not support AJAX!");
return false;
xmlHttp.onreadystatechange=function()
if(xmlHttp.readyState==4)
document.getElementById("txtDiv").innerHTML=xmlHttp.responseText;
xmlHttp.open("POST","PostCatch.asp",false);
xmlHttp.send(null);
</script>
<form name="myForm" action="PostCatch.asp">
Name <input name="username" type="text" id="username"
onKeyUp="ajaxFunction();" />
</form>
Returned Content:<Div id="txtDiv">This gets
replaced</Div>
**Filename is PostCatch.asp**
<%
response.expires=-1
response.write time
response.write "Hello"
response.write request.form("username")
%>
What I get back is
4:44:23 PMHello
Without the value of the username text field.

I figured it out.
My Ipod Mini works again!
Send me money and I'll tell you how to fix it...
I take paypal.

Similar Messages

  • Ajax Testing issue with e-Tester

    I'm new to using Empirix and we are using it to work with a new site that uses Ajax. I have recorded the script fine but there is an issue with the Link that needs to be clicked on that it will either always change or the index will change. I've tried to use a wild card after the number in the link that always stays the same but when I run the tests it always shows "Used secondary attribute 'index' ". Is there a way to get this to stop showing every time or get it to always use this attribute?
    Thanks,

    Hi,
    <br>There are two different issues here:
    <ol style="margin-top:0px;">
    <li> The link that will be clicked will always change or the index will change.
    <li> e-Tester is always using the secondary attribute "index"
    </ol>
    Let me issue #2 first since its easier to explain.
    <h2 style="color:navy"> e-Tester is always using the secondary attribute "index"</h2>
    <h2 style="color:navy">* For scripts that are not created yet:</h2>
    In order to change the order that e-Tester records the use of attributes you can go to:
    <br> <font style='color:navy'>e-Tester &raquo; Options &raquo; Current Script</font>
    <br> Then on the left side of the Current Script Options window go to:
    <br> <font style='color:navy'>Recording &raquo; Object Identification</font>
    <br>The following image presents how the screen looks like:
    <br><img src="http://qazone.empirix.com/servlet/JiveServlet/download/25-518-1621-527/upanddown.jpg">
    <br>
    Notice the bottons with arrows that are on the right side of the window. Use those to determine which attribute should be used first when recording the script.
    <h2 style="color:navy">* For existing scripts:</h2>
    Go to the page where resides the action of clicking the script, expand the page, <font style='color:navy'>right click on the Address Node</font> and select properties(a new window will appear), double click on the action that is making the click to the link (a new window called Event Properties will appear). In this new window click on the Attributes tab. The following image presents how the Event Properties window looks like:
    <br><img src="http://qazone.empirix.com/servlet/JiveServlet/download/25-518-1621-528/upanddownattributestab.jpg">
    <br>Notice the bottons with arrows that are on the right side of the window. Use those to determine which attribute should be used first when playing back the script.
    <br><br>I will create another post in order to answer the other issue. I need to organize my ideas.
    <br><br>Regards,
    <br>Zuriel

  • AJAX testing on local computer

    I am a new user of DW and a beginner of HTML/JS, I ran into a problem and hope you experts could give me guideline:
    My index.html contains AJAX commands, and they all work very well under "Split" and "Live" mode.
    When I try to test the index.html using "Preview", I found my AJAX commands do not work.
    1. My local PC does not have a server setup, is this the cause of the problem ?
    2. Why DW "Live" and "Split" mode work ?
    3. Any advice how to resolve this issue ?

    You can also download Java Web Server Development Kit from Sun. It includes the SDK for JSPs & Servlets, and a simple WebServer that allows you the testing.

  • MS-7512 Ver 1.1 stuck at memory detection test

    Been using this machine for a good year now:
    P45 Platinum MS-7512 ver 1.1
    2x 2GB OCZ PC2 8500 [email protected]
    Intel Q9550
    Asus HD4850
    It has very minor rebooting/stability issues, but nothing that can't be fixed with a reboot.
    But yesterday it went into a constant cycle of rebooting: it will try to boot, then reset itself and boot again, without POSTing properly.
    I cleared the CMOS and now it's stuck at the memory detection test: no beeps, no display, but fans and leds are all working.
    I've done the following:
    - disconnected all HDDs and peripherals
    - clearing the CMOS multiple times (also tried removing the CMOS batt)
    - reseated the gfx card and RAM
    - moved RAM to DIMM 1 & 3, instead of the original DIMM 2 & 4 (in the initial building, the machine didn't POST when I had my RAM sticks in 1 & 3; it worked on 2 & 4, so I didn't think much of it)
    - one stick of RAM on DIMM 1
    - tried a single stick of my friend's Kingston RAM on DIMM 1
    Any more ideas?
    I'll be borrowing another gfx card for testing; I just hope it's not the motherboard I have to replace.

    Quote from: NovJoe on 11-December-09, 23:59:06
    What PSU are you using? Please list out the PSU specs and amps.
    I'm using the PC Power & Cooling Silencer 750 Quad
    Quote
    According to the label, the PC Power & Cooling Silencer 750 Quad will deliver 224 amps on the +3.3V rail and 30 amps on the +5V rail, for a total combined power output of 170W. There is one single 12V rail, and it outputs up to 60 amps! As we mentioned, the Silencer 750 Quad's wattage rating is a Sustained Output Value, not Peak. There is a big difference. The Silencer 750 Quad can reach a max of 825W during peak loads.

  • C240 M3 Stuck at "Configuring and testing memory .."

    Hi,
    This server's just been returned to us from Cisco, who had it on loan since it was new.   We're trying to put it back into service, but have hit the following problem.
    On first power-up the server gets as far as the "Configuring and testing memory .." message.  Just that message, it doesn't show any progress in actually testing memory.   After a few seconds it shuts itself down, then spins up again, repeating that a couple of times before sitting with the "Configuring and testing memory .." message at the top of the screen, but now also showing CIMC IP address at the bottom.   All four LEDs above the power button show steady green,  and the unit ID buttons switch the blue LED on/off as they should.
    I can get to the CIMC login screen, but the password's been changed from default so can't get any further in that direction until we find out the new user/password details.  Unless someone knows how to reset CIMC to default.
    I've tried the following recovery steps ..
    (1) If we set the "Clear CMOS" jumper J2065, the server won't power up.  It powers up to standby, but does not respond on pressing the power button.
    (2) Using the "BIOS recovery" jumper J2068 doesn't appear to have any effect, the server does not read the recovery file from USB flash drive.
    Any ideas?   
    Thanks, 
    Tony S

    Cheers.  There's not much to reseat at this stage.   The server came back with two CPUs of unknown type, I've removed and set those aside in case they're some sort of weird CPU that needs a special memory configuration.
    We've fitted a single E5-2609 as CPU1 and single DIMM in A1.  There are no PCI cards or anything else to reseat.    As a matter of fact the server behaves exactly the same if there's no memory at all, making me think it's hanging up before starting the memory check.
    I would love to get into the CIMC, but does anyone know a way to reset the username/password other than via the BIOS screens (which aren't accessible).
    Thanks, Tony S

  • ! ! ! G4 Mirrored Door: stuck in Apple Hardware Test??

    iWork'09 wouldn't install, so I thought I'd run Apple Hardware Test (never done that). I found the disc that came with my machine and rebooted. The first line was notice of +invalid memory access+, but I was asked to type "mac-boot", so I typed mac-boot. The next screen looks like this:
    +invalid memory access at %SRR0:05610dc %SRR1:00003030+
    ok
    0>_
    It's just sitting there like that. What am I supposed to do?
    Thanks.

    Will it boot in Safe Mode? See
    What is Safe Boot, Safe Mode? (Mac OS X)
    http://docs.info.apple.com/article.html?artnum=107392
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    http://docs.info.apple.com/article.html?artnum=106214
     Cheers, Tom

  • Stuck Ipod Rookie!

    Hello everyone!
    I bought my first ever ipod yesterday (a 30GB video one) and Im stuck on a few things....please can you help?
    First of all, Ive downloaded my albums, but no album art is showing when I play them?
    Secondly, Ive downloaded photos onto it, but theyve all come up in one album together. How do I seperate them into albums of my choice?
    And finally, I have videos stored on my PC from my digital camera, how can I download these to my Ipod? Is it possible?

    Secondly, Ive downloaded photos onto it, but theyve
    all come up in one album together. How do I seperate
    them into albums of my choice?
    And finally, I have videos stored on my PC from my
    digital camera, how can I download these to my Ipod?
    Is it possible?
    You will need to go to the original folder that you used to download your photos. Put those into albums and re-sync the ipod.
    I have downloaded my digital videos from my camera by first converting them using Videora and then adding to ipod. Of course that was before the update to iTunes. iTunes now has an option to convert files to the proper format, so you may not need to use Videora first.
    Dell   Windows XP  

  • I'm stuck in signal strength testing mode -- is this bad?

    Hey, a couple of days ago I punched in the number for testing the signal strength (3001#12345#) and now I can't seem to get out of testing mode. That is, I always have the dB number in the upper LH corner rather than bars.
    I've tried passing my finger down over the dB number, which used to get me back to bars but this is no longer working. The dB numbers abide when I power down or even do the full hold-down-power-and-home-buttons-until-the-apple-disappears trick.
    I'm actually OK with this (bars seem to be pretty much meaningless anyway) unless it's draining the battery or causing some other unanticipated consequence.
    So... is it OK to leave the phone in dB test mode? If not, how can one get out of test mode when the obvious ways don't work?

    It really isn't clear whether retaining the bars/dBM meter after pressing the home button for 5 seconds while in field test mode means that the phone is still in field test mode or just has a new meter option. When in actual field test mode, the phone can't do anything besides getting the test readings. However, there are no docs I can find that discuss it. There still could be adverse effects on battery drain or other iPhone functions.
    Oh, Its actually Settings >> General >> Reset >> Reset All Settings
    Message was edited by: modular747

  • Stuck in some test mode

    I was listening to my ipod, with half the battery life left, when suddenly, it says no battery power remains and it shuts down. I tried to start it up again and accidentally pushed a couple buttons at once. Now it's stuck in some weird test mode that I can't get it out of. Here's what the screen says:
    DISKMODE
    WHEEL
    CONTRAST
    AUDIO
    STATUS
    DRV TEMP
    IRAM TEST
    how do i fix this?

    Hold Menu and Select for 6 seconds or more and your iPod should Reset and be fine.

  • S10 screen stuck on "factory test" mode after replacing ribbon

    After replacing the LCD ribbon on my S10 netbook (with one the exact same) it seems to be stuck on some "factory test" mode. It flickers between solid red, green, and blue and also some gradients and other patterns.
    I'm still able to use my netbook using an external monitor.
    I don't want to use OneKey because 1) I'm not certain it'd fix it + 2) there's a broken ext3 partition that I need to recover files from. If it's the only way to do a reset (don't know) then so be it.
    Thanks for any help!

    I should mention that when I boot to Windows XP and select "Notebook" from the graphics output options, the notebook screen goes back to displaying the test patterns. Otherwise it's off when the external monitor is plugged in.

  • How to test the huge payload in IR in XI/PI

    Hi experts,
    I am stuck up with the testing of the sender payload. Because of the data which is containing in sender payload is huge.
    Actually i am getting the error in SXMB_MONI mapping error.
    <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MyOneZCUSTToMPAPpapiNetDeliveryMes~</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MyOneZCUSTToMPAPpapiNetDeliveryMes: RuntimeException in Message-Mapping transformatio</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    In IR when i paste this payload(in test tab) i am unable to get the result.Because of this sender payload is huge.  Is there any other way for testing of this payload and find out the solution where the exactly the problem in sender payload.
    << Moderator message - Please do not offer points >>
    Regards
    Mahesh
    Edited by: Rob Burbank on Oct 8, 2010 2:14 PM

    Hi Tarang,
    Actually the error occured in the production server. When i test in RWB this same error will occur in the SXMB_MONI. Eventhough i dont know whether this test is acceptable in my project.
    I observed this error occured because of the target node element value is not populated properly. So i need to know to which segment field (Sender payload is IDoc) this Detail Value is mapped. Normally whenever we done testing easily we can find this. But here when i copy this payload and paste their(in IR) i got nothing because of huge payload.
    <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /DeliveryMessage/DeliveryMessageLineItem/Product/Paper/PaperCharacteristics/BasisWeight/DetailValue. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd. 
    Regards
    Mahesh

  • Ajax causes full cycle on every event

    I'm using the MyFaces JSF 2 implementation with ajax support.
    Essentially I have a large table. When I select one of the rows I want to render it on the page using ajax. I don't want to retrieve the entire
    page and render it. The rendering part is fine because the entire page is not being re-rendered. However, the method that
    retrieves the data from the database always gets called by the server. It seems that JSF is still generating the entire page in the backend but only returning the related components.
    The method getStorse() is always invoked when ajax is doing it's thing. However, the page is not re-rendered. I know because I've changed it to return a different size on each invocation for testing.
    <h:form>
    <h:dataTable id="data" border="1" var="store"
                                  value="#{storeController.stores}"
         <f:facet name="header">
              <h:outputText value="Id"></h:outputText>
         </f:facet>
    <h:outputText value="#{storeController.id}"/>
    </h:dataTable>
    </h:form>
    <!-- Simple ajax test -->
    <h:form>
         <h:inputText value="#{storeController.text}">
              <f:ajax event="keyup" execute="@this" render="time"></f:ajax>
         </h:inputText>                     
    </h:form>
    <h:outputText id="time" value="#{storeController.text}"></h:outputText>
    Any help is greatly appreciated.
    Edited by: user8660767 on Apr 1, 2011 8:36 AM

    Just to clarify - I mean in ical.  thanks

  • Satellite A200 with enter key stuck

    Hello to all.
    I own an A200 Satellite laptop and i have a very strange problem. The enter key is stuck. I have tested it with no keyboard at all but the key remains stuck. I also tested to unplug the touch panel and the function keys but still enter key is stuck !
    Any ideas?
    Thank you.

    I agree. I checked for water damage but it seems clean. I just thought to post it in case anyone had the same problem before. Anyway thank you all for bothering read the post.
    P.S. Where can i download a bios update from? Thank you.
    Message was edited by: johnyp

  • Cisco Aironet 1310 flash memory test

    Dear Cisco Support Community 
    i have a problem on one of my 1310 wireless bridge it is stucked on flash memory test and after resetting the baudrate to 115200
    all i see on the bridge is status and Ethernet Leds are blinking green. 
    Can you please help me?

    LED Indications
    During access point operation the LEDs provide status information as shown in Table 5-1.
    Table 5-1 LED Signals 
    Message
    type
    Ethernet
    LED
    Status
    LED
    Radio
    LED
    Meaning
    Boot loader status
    Green
    Green
    DRAM memory test.
    Amber
    Red
    Board initialization test
    Blinking green
    Blinking green
    Flash memory test.
    Amber
    Green
    Ethernet initialization test.
    Green
    Green
    Green
    Starting Cisco IOS.
    Association status
    Green
    At least one wireless client device is associated with the unit.
    Blinking green
    No client devices are associated; check the unit's SSID and WEP settings.
    Operating status
    Green
    Blinking green
    Transmitting/receiving radio packets.
    Green
    Ethernet link is operational.
    Blinking green
    Transmitting/receiving Ethernet packets.
    Boot loader errors
    Red
    Red
    DRAM memory test failure.
    Red
    Red
    File system failure.
    Red
    Red
    Ethernet failure during image recovery.
    Amber
    Green
    Amber
    Boot environment error.
    Red
    Green
    Red
    No Cisco IOS image file.
    Amber
    Amber
    Amber
    Boot failure.
    Operation errors
    Green
    Blinking amber
    Maximum retries or buffer full occurred on the radio.
    Blinking amber
    Transmit/receive Ethernet errors.
    Blinking amber
    General warning.
    Configuration reset
    Amber
    Resetting the configuration options to factory defaults.
    Failure
    Red
    Red
    Red
    Firmware failure; try disconnecting and reconnecting unit power.
    Firmware upgrade
    Red
    Loading new firmware image.
    Controller status
    Alternating green, red, and amber1
    Connecting to the controller. Note If the access point remains in this mode for more than five minutes, the access point is unable to find the controller. Ensure a DHCP server is available or that controller information is configured on the access point.
    Message
    type
    Ethernet
    LED
    Status
    LED
    Radio
    LED
    Meaning
    1 This status indication has the highest priority and overrides other status indications.

  • [SOLVED] I did "speaker-test" and i can't get out

    Hey i am stucked in a speaker test. I executed comand:
    speaker-test -c 2
    and the test begins, but it never ends. I have tried pressing
    ESC, ENTER... but i can't get out. How can i get out?
    Last edited by 71GA (2012-09-16 15:50:58)

    71GA wrote:
    WorMzy wrote:Ctrl+C
    This did the trick thank you.
    Ctrl+C (often abbreviated as ^C) is the universal way to quit, unless the app provides its own way e.g. 'F10' in htop, 'q' in mplayer etc.

Maybe you are looking for

  • CC trial version for mac, doubt.

    Hello, i just wanted to know, im going through Win to Mac and i suscribe to the Creative Cloud trial version. the question is for a mac, Is the cc trial version same as the membership one, and the same as cc6? and I found so different Win version fro

  • Progressive download of SWF file - possible?

    With FLV files, it is possible to have progressive downloads. In other words, while a part of the video is playing, the rest of it is downloading. I want to have SWF files that contain frame based animations. Does Flash work the same way for SWF file

  • FXS Port

    Hi all, I would like to know how i can see if i have any traffic in a fxs port. thanks.

  • Product Warranty

    Good afternoon my iphone 5, White, 64GB Serial: C3*******39D. Purchase Date 13/08/2013, does not care, I've tried resetting, to back up and he does not care. I need to send for repair, here in Brazil does not have this service for this model. Please

  • Photoshop CC unexpected crashes

    I have a problem on my Photoshop CC. While working, unexpected moments crashes... :// NVidia driver is a latest driver. What could be the problem? Anything idea? This is the windows log: Faulting application name: Photoshop.exe, version: 14.2.1.570,