User Profile

Collapse

Profile Sidebar

Collapse
Ferris
Ferris
Last Activity: Mar 19 '10, 04:05 AM
Joined: Oct 22 '07
Location: Shanghai
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ferris
    replied to mail() function issue...**URGENT!
    Maybe there's a firewall on Server B , it regarded your e-mail as a spam.
    I suggest you may change an E-Mail account and have a try, to make sure there's no problems in PHP.
    See more | Go to post

    Leave a comment:


  • Ferris
    replied to Inserting HTMLInput Element value
    Hi,I test the code, *document.getEl ementById('coun try_hidden').va lue* will return a integer,which means country's ID.

    what do you want to send to insert.php? Country's ID or Country's name?

    Code:
    insert.php?field_name=country&field_value=24
    or

    Code:
    insert.php?field_name=country&field_value=Brazil
    ...
    See more | Go to post

    Leave a comment:


  • Ferris
    replied to Ajax loop question
    Hi
    I think , as a string type of setTimeout's 1st parameter, your parameters (data_to_send,z one_id) will not pass to the function getData.

    Code:
    setTimeout("getData(data_to_send,zone_id)", 5000);
    you can use anonymous function to do it.
    try this:

    Code:
    setTimeout(function(){ getData(data_to_send,zone_id); }, 5000);
    Regards.
    See more | Go to post

    Leave a comment:


  • Ferris
    replied to blank space validation
    Hi
    the string '^[\s ]*$' is a regular expression.
    [\s] matches the blank character.
    [\s]* matches many blank characters.
    ^[\s]* matches at the start of the blank string,
    [\s]*$ matches at the end of the blank string.
    So , ^[\s ]*$' matches at the start of the blank string till the end of the blank string. It matches the blank string.

    if "str.value" is a blank string , it will...
    See more | Go to post

    Leave a comment:


  • Hi
    [HTML]
    <script language="javas cript">
    function noClick() {
    if (event.button== 1) {
    return false;
    alert('You cannot click');
    }
    }
    document.onmous edown=noClick;
    </script>
    [/HTML]

    you mean this? or you want to forbidden user click in your web page?
    See more | Go to post

    Leave a comment:


  • Ferris
    replied to Inserting HTMLInput Element value
    Brilliant. I think this is the best solution....
    See more | Go to post

    Leave a comment:


  • Ferris
    replied to Form onsubmit is not working ..!!!!
    The submit method does not invoke the onsubmit event handler. Call the onsubmit event handler directly.

    Code:
          <form onSubmit="return validate();">
          <input type=button value=submit onclick="this.form.onsubmit();"/>
          </form>
    See more | Go to post

    Leave a comment:


  • Ferris
    replied to Inserting HTMLInput Element value
    Hi

    The reason why you get "B" , not "Brazil" , is that "makeReques t" will be execute before the text field changed into "Brazil". So change your code into this:

    Code:
    <input type="text" name="country"
    onkeyup="ajax_showOptions(this,'get_country',event)" 
    onblur=" var _this = this; setTimeout( function(){ makeRequest('insert.php','?field_name=country&field_value='+_this.value);
    ...
    See more | Go to post

    Leave a comment:


  • Ferris
    replied to Form onsubmit is not working ..!!!!
    you can use HTML submit element to post the form.

    change
    Code:
    <input type=button value=submit onclick="this.form.submit()" />
    into
    Code:
    <input type="submit" value="submit" />
    See more | Go to post

    Leave a comment:


  • Hi

    I think I have found what the problem is. The reason why you can't see new line is the new line displayed behind the 1st line, not below the 1st line.

    I guess ObjxmlAdd.respo nseText will return a Table HTML code,and you set the table's align attribute.This is why the div will showed behind,not below.

    for example:

    the wrong code:
    Code:
    <div id="specs_div">
    ...
    See more | Go to post

    Leave a comment:


  • Hi
    I test your code in firefox and IE, it's ok. The div will increased it's height automatically. Of cause,I removed your ajax code.
    So I think the problem is in the ajax return value : ObjxmlAdd.respo nseText; ( JS file,line 48).

    would you please post the return value of ObjxmlAdd.respo nseText?

    Regards.
    See more | Go to post

    Leave a comment:


  • hi

    you miss a space between "Max(ID)" and "as" in line 8 , and I think you should use % replace * to pattern multi-chars.

    Code:
    select_query1="select Max(ID) as di from indianbaby_boysname where name Like "+'"'+v+'%'+'"';
    and what's the output in line 9?
    See more | Go to post

    Leave a comment:


  • Hi, would you please tell me the value of "getldap_userna me_utility_url" ?
    See more | Go to post

    Leave a comment:


  • there's an example in W3 schools.
    http://www.w3schools.com/js/tryit.as...able_insertrow

    Regards....
    See more | Go to post

    Leave a comment:


  • I quite agree with gits. You probably want to make a cross-domain requests. Could you post more code for detail?
    See more | Go to post

    Leave a comment:


  • Ferris
    replied to Based on login ID display content
    I am sorry i am not able to get your requirement clearly. What is "User Id" and "content"? Where is it? and what is "paid_Card.html "? Please make it clear.

    I can help to fix some syntax error in your code:

    line 6 should be:
    Code:
    window.location.href="paid_Card.html";
    line 7 should be:
    Code:
    document.getElementById("prepaid").card.innerHTML = "test
    ...
    See more | Go to post

    Leave a comment:


  • Ferris
    replied to Abort the AJAX Request (dojo)
    I don't think you can abort ajax request. You can ignore handle the ajax response. for example:

    Code:
    var ajaxHandler = function( returnData )
    {
        if ( flag == false )
        {
            //do something with the returnData
        }
    }
    
    
    var otherEventHandler = function()
    {
        flag = true;    //When another event is executed,set flag to true.
    }
    ...
    See more | Go to post

    Leave a comment:


  • Did you call the function "calling" in Other.html ? If you want to pass variable "x" to Other.html , you should use URL parameters. test.js will be initialized when Other.html is loaded , and then variable x will be null.
    See more | Go to post

    Leave a comment:


  • Could you tell us more information?

    There's no "accordion pane" in pure Javascript. Could you tell us which JS Library do you use? ExtJS?

    Could you paste your code here? At least let us know how did you handle the button click event.
    See more | Go to post

    Leave a comment:


  • First, I'm sure that you used frames.
    I guess you right clicked and choose "view source" in the pop-up menu. If you did that,you will see the HTML source code in IE , and frameset code in Firefox. IE will show the code of the page you right clicked in, and firefox will show the main page's code. If you want to see HTML source code in Firefox, right click and choose "frame[H]"->"view source" .
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...