Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Javscript is not loading on load function of Jquery

  1. #11
    Join Date
    Jul 2012
    Posts
    197
    Thanks
    54
    Thanked 3 Times in 3 Posts

    Thumbs up

    Quote Originally Posted by traq View Post
    To clarify, I have tested it, and it does not work as-is.

    Referring back to John's question, however, is the code you posted working or not working?
    fine...
    @Adrain FYI check Bold letters....
    ???
    Last edited by letom; 05-03-2013 at 08:26 PM.

  2. #12
    Join Date
    Jul 2012
    Posts
    197
    Thanks
    54
    Thanked 3 Times in 3 Posts

    Default

    Any solution for the following

    Code:
    function (she) {  
    var $gt = $('<div/>').html(she); 
    $("#cyxhka").html( $gt.find('#istv').html() );}
    If she is taking a decision, i am not loading for some while, how can we show a error message ..

  3. #13
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by letom View Post
    fine...
    @Adrain FYI check Bold letters....
    ???
    If you're asking what I mean by that:
    Quote Originally Posted by letom View Post
    Please note this can be done using

    $('<div/>').html(data).find('layer').html();
    This seems to indicate you found a solution to your problem

    Quote Originally Posted by letom View Post
    some more additional coding part i have missed when copying that..
    I cannot do it with the above coding part only.
    This seems to indicate that you did not find a solution

    Quote Originally Posted by letom View Post
    but it is working fine.
    This seems to indicate that you did.

    So, John and I are a little unclear about which part(s) of the code you are still having trouble with - that's what I was trying to ask you.


    Now, as for this:
    Quote Originally Posted by letom
    Any solution for the following

    Code:
    function (she) {  
    var $gt = $('<div/>').html(she); 
    $("#cyxhka").html( $gt.find('#istv').html() );}
    If she is taking a decision, i am not loading for some while, how can we show a error message ..
    Is this a new question, or part of your original question?

    I'm not sure what you mean by "if she is taking a decision". Are you asking how to show an error message if she cannot be loaded as html, or if you can't find the element with id=istv? This might be what you're looking for:

    Code:
    function( she ){
        var istv = $( she )                 // create a jQ object from she (presumably an html string)
            .find( '#istv' );               // and look for the element with id=istv
    
        if( istv.length > 0 ){              // check the length of the resulting jQ object
            $( '#cyxhka' ).append( istv );  // append it to the element id=cyxhka
        }
        else{
            alert( 'no element matching id=istv found' );
        }
    }

  4. #14
    Join Date
    Jul 2012
    Posts
    197
    Thanks
    54
    Thanked 3 Times in 3 Posts

    Default

    Thanks Mr Adrain

    First i have posted a question and none of the people here cannot answer that question.. But i found a solution for my question as myself, To help others and having good conscience i posted its answer in the forum. The code is working fine but,I am looking for an error message what you said..

    Moreover i am unclear about other conversations.
    Please close this thread...

Similar Threads

  1. Replies: 9
    Last Post: 02-14-2013, 06:10 AM
  2. Loading.gif not showing up while images load
    By nansaidh in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 09-27-2010, 12:08 AM
  3. can't run function on page load
    By gib65 in forum JavaScript
    Replies: 2
    Last Post: 07-20-2010, 05:50 PM
  4. load function
    By joecool2005 in forum JavaScript
    Replies: 1
    Last Post: 11-22-2006, 05:55 AM
  5. load function
    By neo_philiac in forum JavaScript
    Replies: 2
    Last Post: 07-22-2006, 11:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •