Re: OT - Javascript anyone?
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58518
interpreted = N
texte = I'm not JS expert, but I would guess that you need to spec a height andwidth in the HTML
![]()
tag before JS can do the math.On 6/21/04 12:25 PM, "Alisha Outridge"
wrote:> I am running Webstar 4.5/5.x with WebCatalog 3.1 (very old version - I> know and its not my fault) so I am unable to use the new ImageSize tag> within the ListFiles context that came out with WebCat4.x. Now that> that is out of the way, I am looking for a workaround and Javascript> seems to be the way however my script is saying the width and height of> the images are "undefined" with the javascript below.> >
> // Note: Image shows with direct HTML above so linkage is correct.> > > //Note: Width and height are undefined.> > The code above is all I have on the page other than the html and body> tags ofcourse. Does anyone know if Webstar blocks this information from> showing up or if you can successfully get the width on your servers of> an image? I know Webstar has quirky security features and I seriously> doubt that I coded the above incorrecftly. I hope I did though! Any> help would be appreciated!-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I'm not JS expert, but I would guess that you need to spec a height andwidth in the HTML
tag before JS can do the math.On 6/21/04 12:25 PM, "Alisha Outridge" wrote:> I am running Webstar 4.5/5.x with WebCatalog 3.1 (very old version - I> know and its not my fault) so I am unable to use the new ImageSize tag> within the ListFiles context that came out with WebCat4.x. Now that> that is out of the way, I am looking for a workaround and Javascript> seems to be the way however my script is saying the width and height of> the images are "undefined" with the javascript below.> >
> // Note: Image shows with direct HTML above so linkage is correct.> > > //Note: Width and height are undefined.> > The code above is all I have on the page other than the html and body> tags ofcourse. Does anyone know if Webstar blocks this information from> showing up or if you can successfully get the width on your servers of> an image? I know Webstar has quirky security features and I seriously> doubt that I coded the above incorrecftly. I hope I did though! Any> help would be appreciated!-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Clint Davis
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Frames and WebCat (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Help name our technology! (1997)
wierd [cart] action! (1997)
A new perspective ... (2005)
Help formatting search results w/ table (1997)
[SearchString] (1998)
presetting a [math] var not working (2000)
Bug alert! (1997)
Database Security (1998)
before after on (1998)
PCS Frames-Default page is solution! (1997)
Webcatalog 4.02b5 Mac OS X headers (2000)
Weird error/limit - something amiss? (1997)
Beta and new version questions? (1998)
Fun with Dates - revisited (1997)
Webcat version 4.x (2005)
How to archive....? (1998)
Cant get my own subtotal (2001)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)