Welcome Guest, Not a member yet? Register   Sign In
Grabbing and echoing only fragments of views
#13

[eluser]stoefln[/eluser]
retrieving the "taglist" div out of this view does not work for me.
Code:
$id = 'taglist';
$pattern = '%<(ul) id="'.$id.'"(.+)</$1>%';
return $this->fragment($view, $vars, $pattern, $return);
Code:
<div class="content-left">
    
    &lt;?=text2label($image->title)?&gt;
    &lt;?=$image->getHtmlTag(400,800)?&gt;
    &lt;?=text2label('Comments')?&gt;
</div>
<div class="content-right">
    [removed]
        
        document.observe("dom:loaded", function() {
            var ev = new EventManager();
            ev.init();
            
          });

    [removed]
    &lt;?=text2label('Details')?&gt;
    <dl>
    <dd>Created By</dd><dt>&lt;?= getUserButton($image->createdById,$image->createdByUsername)?&gt;</dt>
    <dd>Created On</dd><dt>&lt;?= formatDateTime($image->createdOn)?&gt;</dt>
    <dd>Tags&lt;?=getAddButton("addTagButton")?&gt;&lt;?=getSaveButton("saveTagButton","display: none;")?&gt;</dd>
    <dt>
        <ul id="taglist">
        &lt;? foreach(explode(' ',$image->tags) as $tag):?&gt;
            <li>&lt;?= getTagButton($tag).getDeleteButton("$('taglist').insert('<li>sdfg</li>');");?&gt;</li>
        &lt;? endforeach?&gt;
        </ul>
    </dt>
    <dd>Filename</dd><dt>&lt;?= $image->filename?&gt;</dt>
    <dd>Description</dd><dt>&lt;?= $image->description?&gt;</dt>
    </dl>
    <br/>

</div>


Messages In This Thread
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 01:34 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 05:52 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 06:02 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 07:16 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 07:25 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 07:38 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 07:53 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 08:09 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 08:28 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 08:54 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 01:23 PM
Grabbing and echoing only fragments of views - by El Forum - 12-19-2008, 05:02 AM
Grabbing and echoing only fragments of views - by El Forum - 12-19-2008, 07:09 AM
Grabbing and echoing only fragments of views - by El Forum - 12-19-2008, 11:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB