www.webdeveloper.com

Search:

Type: Posts; User: kina

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,410

    Probem: getting an empty square character

    Probem: getting an empty square character instead of a space.

    Looks ok printed by php.

    It seems to happen after I use rubout or delete and then type a space in my JS editor; when the edited...
  2. I guess that's because of caching onload might...

    I guess that's because of caching
    onload might help with that - waits for images to load (at least in IE).
    Might be more to it though - another day ...

    btw, the alert() in the example takes the...
  3. I have made an example: ...

    I have made an example:

    http://www.tji-java-ide.com/ajax1.html

    The alert (div content) is blank because of time for ajax callback.

    If swap these lines, it works:
    ...
  4. loadpage(); should be ...

    loadpage();

    should be

    loadpage(page_request, containerid)
  5. Oops, also need to call the second function. ...

    Oops, also need to call the second function.

    So, xmlhttp.onreadystatechange=stateChanged;
    xmlhttp.open("POST",url,true);
    xmlhttp.send(null);

    change to
    ...
  6. that's equivalent try change true to false

    that's equivalent
    try change true to false
  7. Look for this line in ajaxpage.js and change as...

    Look for this line in ajaxpage.js and change as follows:

    An alternative is to change
    xmlhttp.open("POST",url,true);
    to
    xmlhttp.open("POST",url,false);
    - non-asynchronous; waits for response
    ...
  8. Here's a typical ajax use : function getinfo()...

    Here's a typical ajax use :

    function getinfo()
    {
    xmlhttp=GetXmlHttpObject();
    if (xmlhttp==null)
    {
    alert ("Browser does not support HTTP Request");
    return;
    }
  9. Replies
    9
    Views
    3,242

    Maybe, change onChange="navigate(this.form)" to...

    Maybe, change onChange="navigate(this.form)" to just
    onChange="navigate()"

    to match the actual signature of navigate()
    or change navigate() to navigate(form)
    and document.cpform.action etc to...
  10. Looked at :...

    Looked at : http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm

    If the content page has scripts ( especially if depend on the dom in some way) move them to the host page and call...
  11. Getting your meaning now. The dom ready should...

    Getting your meaning now.

    The dom ready should be taken care of by the scripts loading the sub page. But if it is not expecting this to be ajax loaded, you may need to run the scripts after ajax...
  12. Try as I said before.

    Try as I said before.

    <body onload="mysetup();">

    <javascript ...>
    function mysetup() {
    loadobs(...);
    }
  13. Are you calling this function like this:

    Are you calling this function like this:

    <body onload="buildcontentdivs();">

    ? Or some other way? If not, try that.

    I suspect you are calling the function before the DOM is ready (fully...
  14. Replies
    4
    Views
    6,323

    Ok, here's what I'm talking about ... ...

    Ok, here's what I'm talking about ...

    http://www.beijingbuzzz.com/beijing/

    Hover mouse over the hot-air balloon image and the tooltip shows a small square where a space should be. The text is...
  15. Replies
    3
    Views
    1,226

    Change /path/to/ to the actual path to the script...

    Change /path/to/ to the actual path to the script location.

    Ajax might be what you need (to load div content as selected). Example introduction to ajax: http://daniel.lorch.cc/docs/ajax_simple/
    ...
  16. Replies
    9
    Views
    3,242

    Also, do this to see what the value actually is :...

    Also, do this to see what the value actually is :

    function selected_item() {
    alert(var);
    ...
    }

    Would be best to pass in the value or extract it at the start of the function, perhaps like...
  17. Replies
    9
    Views
    3,242

    Make sure to set the value for each option if...

    Make sure to set the value for each option if looking for 'value', like this :

    <option value="Select State">Select State</option>
  18. Replies
    9
    Views
    3,242

    I guess you are doing something like this ... ...

    I guess you are doing something like this ...

    <select name="selector" id="selector" onchange="checkSelection(trim(this.value));">

    ------

    function checkSelection(s) {
    if (s=="Select...
  19. Replies
    9
    Views
    3,242

    You need to show more of your code so we can see...

    You need to show more of your code so we can see the error I think
  20. Replies
    4
    Views
    6,323

    Declan - Maybe you're right, changed as you...

    Declan -

    Maybe you're right, changed as you suggested and it does replace chars now, but i still see the empty square symbol instead of a space :(
  21. Replies
    4
    Views
    6,323

    I think the code is right. Maybe the problem...

    I think the code is right.

    Maybe the problem is not a single character ??
  22. Replies
    9
    Views
    3,242

    Try : substring(0,12);

    Try : substring(0,12);
  23. Replies
    4
    Views
    6,323

    Need to remove empty square symbol from text

    I have been looking for days for a way to do this but have made no progress.

    The text looks fine in php but when displayed by javascript, some of the spaces are shown as an empty square symbol.
    ...
  24. Replies
    1
    Views
    9,272

    c:\fakepath - how to workaound this?

    In a form with a file selection field, i call a javascript method to display a preview of the image when the field value changes.

    With the newer browsers, the path returned to js is 'C:\fakepath !...
  25. Replies
    4
    Views
    712

    c:\fakepath - how to workaound this?

    In a form with a file selection field, i call a javascript method to display a preview of the image when the field value changes.

    With the newer browsers, the path returned to js is 'C:\fakepath !...
Results 1 to 25 of 27
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles