[jquery-ui] Re: help with iframe

2010-03-01 Thread fleusebio
OK thanks all .This is correct and works

> For attributes you can use the cross browser attr() method on the jquery
> object like this: $("#whoja").attr("src",somevalue)
>

-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.



Re: [jquery-ui] Re: help with iframe

2010-02-27 Thread Nate Laws
Because $("selector") returns a jquery object which is like an array.  It
does not have the standard dom properties on it.  To get to the dom node
that was selected you use [0] or .get(0).

For attributes you can use the cross browser attr() method on the jquery
object like this: $("#whoja").attr("src",somevalue)

On Fri, Feb 26, 2010 at 2:34 PM, Roman  wrote:

> On Feb 26, 8:58 am, Frycake  wrote:
> > $("#whoja") is correct but it is a Jquery Object, so you have to reach
> > src on the node
> > $("#whoja")[0].src so
>
> What's the [0] for? $("#whoja") is one element.
>
> --
> You received this message because you are subscribed to the Google Groups
> "jQuery UI" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]
> .
> For more options, visit this group at
> http://groups.google.com/group/jquery-ui?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.



[jquery-ui] Re: help with iframe

2010-02-26 Thread Roman
On Feb 26, 8:58 am, Frycake  wrote:
> $("#whoja") is correct but it is a Jquery Object, so you have to reach
> src on the node
> $("#whoja")[0].src so

What's the [0] for? $("#whoja") is one element.

-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.



[jquery-ui] Re: help with iframe

2010-02-26 Thread Frycake
Hi,

> I do not know why  $("#whoja") this is not correct

$("#whoja") is correct but it is a Jquery Object, so you have to reach
src on the node
$("#whoja")[0].src so



On Feb 25, 11:20 pm, fleusebio  wrote:
> OK problem solved by changing
>                        $("#whoja").location = xpdf;        OR
> $("#whoja").src = xpdf;
>
> by     -->>> document.getElementById("whoja").src = xpdf;
>
> I do not know why  $("#whoja") this is not correct
>
> sorry for my English

-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.



[jquery-ui] Re: help with iframe

2010-02-25 Thread intrader
I think that you need to specify application/pdf when you serve it.

On Feb 25, 2:58 am, fleusebio  wrote:
> This is the js file
>
> jQuery(document).ready(function(){
>
>                 $("#whoja").dialog( {
>                         title:          'Dialog Title'
>                 ,       width:          820
>                 ,       height:         500
>                 ,       autoOpen:               false // false
>                 ,       closeOnEsc:     true
>                 });
>
>                 jQuery("#list2").jqGrid({
>                     url:'P0010V2.php',
>                     datatype: 'json',
>                      mtype: 'GET',
>                         colNames:
> ['id','nombre','variedad','fechae','fechaa','pesoe','w','pw','pl','hoja'],
>                         colModel:[
>                                         {name:'id',index:'idmuestras', 
> width:80, search:false,
> editable:false},
>                                         {name:'nombre',index:'nombre', 
> width:120, search:true,
> stype:'text', editable:true},
>                                         {name:'variedad',index:'variedad', 
> width:100, search:false,
> editable:true},
>                                         {name:'fechae',index:'fechae', 
> width:100, search:false,
> editable:true},
>                                         {name:'fechaa',index:'fechaa', 
> width:100, search:false,
> editable:true},
>                                         {name:'pesoe',index:'pesoe', 
> width:80, search:false,
> editable:true},
>                                         {name:'w',index:'w', width:80, 
> search:false, editable:true},
>                                         {name:'pw',index:'pw', width:80, 
> search:false, editable:true},
>                                         {name:'pl',index:'pl', width:80, 
> search:false, editable:true},
>                                         {name:'hoja',index:'hoja', width:290, 
> search:false,
> editable:true}
>                                 ],
>                         caption: 'Tabla Demostracion',
>                         rowNum: 20,
>                         altRows: 'true',
>                         pager: '#pager2',
>                         sortname: 'idmuestras',
>                         sortorder: "desc",
>                         editurl:'P0011V2.php',
>                ondblClickRow: function() {
>                                                         var xid = 
> jQuery("#list2").jqGrid('getGridParam','selrow');
>                                                         if (xid) {
>                                                                 var ret = 
> jQuery("#list2").jqGrid('getRowData',xid);
>                                                                 
> xpdf='"http://127.0.0.1/hal/Trigo/'+ret.hoja+'"';
>                                                                 alert(xpdf);
>                                                                 
> $("#whoja").location = xpdf;
>
>                                                         } else {
>                                                                 alert("Please 
> select row");
>                                                         }
>                                                         
> $('#whoja').dialog('open');
>                                         },
>                         viewrecords: true
>                   });
>
> And the html
>
>         
>
> by double-clicking to open the dialogue but I can not display the pdf
> file
>
> any suggestions?

-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.



[jquery-ui] Re: help with iframe

2010-02-25 Thread Roman
On Feb 25, 4:20 pm, fleusebio  wrote:
> OK problem solved by changing
>                        $("#whoja").location = xpdf;        OR
> $("#whoja").src = xpdf;
>
> by     -->>> document.getElementById("whoja").src = xpdf;
>
> I do not know why  $("#whoja") this is not correct

Why would $("#whoja").location = xpdf work? location is not an
attribute of iframe. src is. Try $("#whoja").attr("src", xpdf).

-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.



[jquery-ui] Re: help with iframe

2010-02-25 Thread fleusebio

OK problem solved by changing
   $("#whoja").location = xpdf;OR
$("#whoja").src = xpdf;

by -->>> document.getElementById("whoja").src = xpdf;

I do not know why  $("#whoja") this is not correct

sorry for my English

-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.