CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007
    Posts
    21

    Ajax Dynamic Load event click(function(){ value retrieval from divs

    Ajax dynamic website loads stuff like this, attaches links to Divs

    Code:
    <html>
    <head>
    <script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
    Wicket.Event.add(window, "load", function(event) { $("#iconContainer3").click(function(){Plimus.web.ui.openNewWindow('http://www.emagenerator.com/');});});
    /*-->]]>*/</script>
    
    <script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
    Wicket.Event.add(window, "load", function(event) { $("#iconContainer4").click(function(){Plimus.web.ui.openNewWindow('http://www.partnermark.com');});});
    /*-->]]>*/</script>
    ………..
    </head>
    <body> …….
    <div class="item-name-icon tooltip-marker " id="itemUrlIcon3a"> 
    <div id="iconContainer6" class="ui-state-default ui-corner-all ui-button-fade"><span class="ui-icon ui-icon-extlink"></span></div> </div>
    Question is how do I can get value of links 'http://www.emagenerator.com and 'http://www.partnermark.com' from divs?

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Ajax Dynamic Load event click(function(){ value retrieval from divs

    You'll have to parse the actual function text out of the onclick event for those <div> ids.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured