User Profile

Collapse

Profile Sidebar

Collapse
anubhavjha
anubhavjha
Last Activity: Aug 30 '09, 01:29 PM
Joined: Jul 3 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • anubhavjha
    replied to Ajax responses very slow.
    in PHP
    My codes.

    First i was using the following codes:-

    The function is called on submit of a button.

    Code:
    function submitform()
    {
    result=0;
    //gettting the form values;
    var requestid=document.getElementById("requestid").value;
    var sdenggname=document.getElementById("sdenggname").value;
    var sla=document.getElementById("sla").value;
    var
    ...
    See more | Go to post
    Last edited by Dormilich; Aug 27 '09, 06:19 AM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • anubhavjha
    replied to Ajax responses very slow.
    in PHP
    Thank you for your reply.

    I dont know to check if the multiple requests are being fired off.can you pls provide detail on it....
    See more | Go to post

    Leave a comment:


  • anubhavjha
    replied to Ajax responses very slow.
    in PHP
    Hi Dheeraj,, even firefox and ie shows the same response. and there is a javascript code written that the web application cannot be used on a firefox. can you think of something else.
    See more | Go to post

    Leave a comment:


  • anubhavjha
    replied to Ajax responses very slow.
    in PHP
    I checked that , but if i send the variables directly to the php file as the action in the form tag, it goes out fine. I am using IE 7.0 and sometimes it works fine and sometimes does not work.
    See more | Go to post

    Leave a comment:


  • anubhavjha
    started a topic Ajax responses very slow.
    in PHP

    Ajax responses very slow.

    Hi Friends,

    I have a web application through which, the ajax is used to post the data onto the server and return the results. When i alert the xmlhttp.readyst ate sometimes it takes long time, that the process looks like freezing and sometimes its done very quickly as it is designed to.

    I checked by alerting xmlhttp.readyst ate.

    sometimes i get response 1,2 ,3 4 as the alert box quickly.
    and sometimes...
    See more | Go to post

  • hi acoder,

    you made my day...i gave the following line in the first of my server code:

    header("Access-Control-Allow-Origin:*"); and it started working.. thanks a lot.

    Regards,
    Anubhav Jha
    See more | Go to post

    Leave a comment:


  • The error is get is

    XDR onerror.

    i did not get as what is Access-Control-Allow-Origin header, i have tried whatever i could get on the net and google . i will look at your link also and keep you updated.

    Regards,
    Anubhav
    See more | Go to post

    Leave a comment:


  • anubhavjha
    started a topic how to use xdomain request on the ie 8.0

    how to use xdomain request on the ie 8.0

    Hi All,

    Till the internet explorer 7.0 the ajax request was working fine. but on the new ie 8.0 i tried to use the xdomain object request. But it fails out throwing an error. I dont understand why the error is caused.

    Here is my piece of code:

    Code:
    <html>
    <script type="text/javascript">
        var xdr;
    
        function readdata()
        {
            var dRes
    ...
    See more | Go to post
    Last edited by acoder; Apr 13 '09, 12:15 PM. Reason: Added [code] tags

  • anubhavjha
    replied to validate phone numbers
    try to check using if condition like
    Code:
    if(ph1.val||ph2.val||ph3.val)
    {
    //send the request;
    }
    else{//stop the request;}
    See more | Go to post
    Last edited by Dormilich; Apr 13 '09, 06:58 AM. Reason: added [code] tags

    Leave a comment:


  • if you have your server details handy with you. I think that the mail function is a best option.
    See more | Go to post

    Leave a comment:


  • I tried doing that but it failed.

    I will let you know my problem may be you guys can help me

    this is the xml data "ticketxml" which goes as a hidden field.

    <input type="hidden" name="ticketxml " id="ticketxml" >

    on the processing page I am capturing it as

    $ticketxml=$_PO ST['ticketxml'];

    I do not get how to parse...
    See more | Go to post

    Leave a comment:


  • Hi Atli, i am using version 5.0 of the PHP on wamp...
    See more | Go to post

    Leave a comment:


  • I tried using it but I get Call to undefined function domxml_open_mem () message.

    can you please let me know how to troubleshoot it.....
    See more | Go to post

    Leave a comment:


  • anubhavjha
    replied to Enabling DOM XML for win32 system
    in PHP
    i have PHP Version 5.2.4 and still get the same message.

    any guides how to get this sorted.

    Regards,
    Anubhav Jha
    See more | Go to post

    Leave a comment:


  • anubhavjha
    started a topic how to parse an xml string as a post message
    in PHP

    how to parse an xml string as a post message

    hi all,

    i want to parse an xml string on the processing page.

    now the simplexml module is not loaded on the server and i cannot edit that.. what other methods can i parse that xml string.

    Regards,

    Anubhav Jha
    See more | Go to post

  • anubhavjha
    replied to how do i post an xml string in php
    in PHP
    [code=html]<input type="hidden" name="ticketxml " id="ticketxml" value= "
    &lt?xml version=\'1.0\' encoding=\'UTF-8\'?&gt;
    &lt;ticket&g t;
    &lt;user&gt;
    &lt;title&gt;Mr .&lt;/title&gt;
    &lt;firstname&g t;Chris.&lt;/firstname&gt;
    &lt;lastname&gt ;Elliott&lt;/lastname&gt;...
    See more | Go to post
    Last edited by pbmods; Aug 5 '08, 09:58 PM. Reason: Added CODE tags.

    Leave a comment:


  • anubhavjha
    replied to how do i post an xml string in php
    in PHP
    Hi thanks for the help i tried doing this

    but it was removing the xml tags when the response was send to the processing page.

    <name> rabert </name> was shown as only rabert
    then i used escape characters
    &lt;name&gt; rabert &lt;/name&gt; and it worked
    but it does not take the following

    &lt;member count=22&gt; permanent &lt;/member&gt; ...
    See more | Go to post

    Leave a comment:


  • anubhavjha
    replied to how do i post an xml string in php
    in PHP
    Hi i tried to do this but when i take the post data on the target page i only get the xml data i do not get the xml tags. an example would help on this.

    Regs,

    Anubhv...
    See more | Go to post

    Leave a comment:


  • anubhavjha
    started a topic how do i post an xml string in php
    in PHP

    how do i post an xml string in php

    hi friends,

    i want to pass an xml string as a hidden field on the php page. How do i do it.

    I tried to put the input type as hidden and value as the <xml tag\>. on the target page it does not take any data.

    Regards,
    Anubhav
    See more | Go to post

  • I am not able to understand this. sorry very much to say this but i am a learner in php now....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...