Jump to content
Software FX Community

Help! getHtmlTag with variables


User (Legacy)

Recommended Posts

Hey all,

When I pass the width and height to my ASP, and specify them in the

getHtmlTag method, they are ignored. Here is my code:

<%

' blah blah blah - other code here

Set chWidth = Request.QueryString("chWidth")

Set chHeight = Request.QueryString("chHeight")

' If I omit these lines, the tag is generated with width=0 and height=0

chWidth = chWidth + 0

chHeight = chHeight + 0

response.write chWidth

response.write nl

response.write chHeight

%>

<%= chart.GetHtmlTag(chWidth, chHeight, "Image") %>

The output is:

600<P>300<img src="/cfxtemp/CFT0709_232252D1.jpg" width="300" height="300">

I'm passing in 600 and 300.

It seems to ignore the value of the width variable.

Thanks for your help,

Marc

Link to comment
Share on other sites

Try making sure you pass an integer to GetHtmlTag, in your code you are

passing a string (even though the characters you are passing make up an

integer), something like

Set chWidth = CInt(Request.QueryString("chWidth"))

Set chHeight = CInt(Request.QueryString("chHeight"))

--

Regards

JC

Software FX Support

"The Nomad" <nobody@nowhere.com> wrote in message

news:$eQDjO8JCHA.2752@webserver1.softwarefx.com...

> Hey all,

>

> When I pass the width and height to my ASP, and specify them in the

> getHtmlTag method, they are ignored. Here is my code:

>

> <%

>

> ' blah blah blah - other code here

>

> Set chWidth = Request.QueryString("chWidth")

> Set chHeight = Request.QueryString("chHeight")

>

> ' If I omit these lines, the tag is generated with width=0 and height=0

> chWidth = chWidth + 0

> chHeight = chHeight + 0

> response.write chWidth

> response.write nl

> response.write chHeight

>

> %>

>

> <%= chart.GetHtmlTag(chWidth, chHeight, "Image") %>

>

>

> The output is:

>

> 600<P>300<img src="/cfxtemp/CFT0709_232252D1.jpg" width="300"

height="300">

>

>

> I'm passing in 600 and 300.

>

> It seems to ignore the value of the width variable.

>

> Thanks for your help,

>

> Marc

>

>

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...