Re: OT - Javascript anyone?
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58520
interpreted = N
texte = Heres a script we use to work out image size and resize a window.just specify the img tag with id="graphic"function jsResize() {obj = document.getElementById('graphic');if (obj != null) {window.resizeTo(obj.width + 100, obj.height + 140);}}AlainOn 22/06/2004, at 6:55 AM, Clint Davis wrote:> I'm not JS expert, but I would guess that you need to spec a height and> width 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/>-------------------------------------------------------------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:
Heres a script we use to work out image size and resize a window.just specify the img tag with id="graphic"function jsResize() {obj = document.getElementById('graphic');if (obj != null) {window.resizeTo(obj.width + 100, obj.height + 140);}}AlainOn 22/06/2004, at 6:55 AM, Clint Davis wrote:> I'm not JS expert, but I would guess that you need to spec a height and> width 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/>-------------------------------------------------------------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/
Alain Russell
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:
A dynamic database. (1997)
WebStar 4.2 issues (2000)
WebCatalog Upgrade Pricing? (1997)
READFILE command? (1998)
Getting ready to launch?? (2001)
RE: Nesting [ListFiles] (1998)
anyone interested in doing an open-source WebCat based forum? (2002)
(1997)
OFF TOPIC: help wanted (1997)
F2 to F3 rocky transition (1997)
WebCat2: Items xx to xx shown, etc. (1997)
Comments in db? (1997)
More on the email templates (1997)
security (1997)
Adding insurance to an order, round 2 (2003)
.. more on sliding discounts... (1997)
delete after x (1998)
Related database (2000)
Country & Ship-to address & other fields ? (1997)
WebCat2 several catalogs? (1997)