You could put the size in the url (i.e. url?width=xxx&height=yyy) and then
parse out the values on click.

function getParams(url) {
  var params=[];
  $.each(href.split(/(?|&)/),function(i,s){
     var pair = s.split("=")
     if (pair.length==2) params[pair[0]]=pair[1];
  })
  return params;
};

$("a").bind("click",function(){
  var vidparams=getParams(this.href);
  $("#content").append("<object id='wmv' type='video/x-ms-wmv' width='"+(
vidparams.width||"")+"' height='"+(vidparams.height||"")+"' data='"+url+"' >
});

Blair

On 12/14/06, Olaf Bosch <[EMAIL PROTECTED]> wrote:

Hi All,
i would load a Video on a Page after click a Link, works fine.

What can i do, the width and height is not known.

This is my Code:

$("#content").append("<object id='wmv' type='video/x-ms-wmv' width=''
height='' data='"+url+"' >
.... and so on

I must have the width and height of the File that saved under 'url'

Is there a way?

  --
Viele Grüße, Olaf

-------------------------------
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
-------------------------------

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to