By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,381 Members | 1,641 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,381 IT Pros & Developers. It's quick & easy.

img src is too long

P: n/a
I am trying to create a ( xhtml 1.0 transitional ) page that contains
"img" element.

The problem is that "src" would be really long. I have tried and some
where along the way, end of the url is cutted down.

Does anyone know how to use POST-method for "img" "src"? Or alternate
means for achieving what I am trying to do..

Thanks,

-Pelle-
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Pelle" <ha*************@ecomond.com> wrote in message
news:25**************************@posting.google.c om...
I am trying to create a ( xhtml 1.0 transitional ) page that contains
"img" element.

The problem is that "src" would be really long. I have tried and some
where along the way, end of the url is cutted down.

Does anyone know how to use POST-method for "img" "src"? Or alternate
means for achieving what I am trying to do..


When you want to display the image, the only method to use is 'GET'. POST is
for sending data.

Cutting down thelength of the src would bethe only option for you.

JW

Jul 20 '05 #2

P: n/a
Thanks for the info.

We solved the problem by cutting down the parameter length ( had to do
some rework in the server-side ).

-Pelle-
Grant Wagner <gw*****@agricoreunited.com> wrote in message news:<3F***************@agricoreunited.com>...
Pelle wrote:
I am trying to create a ( xhtml 1.0 transitional ) page that contains
"img" element.

The problem is that "src" would be really long. I have tried and some
where along the way, end of the url is cutted down.

Does anyone know how to use POST-method for "img" "src"? Or alternate
means for achieving what I am trying to do..

Thanks,

-Pelle-


The server should support URLs of 2048 or more characters. A recent
thread prompted me to do some testing, and Internet Explorer itself
allows URLs of 2083 before the search string is truncated.

Have you checked the web server logs to ensure your GET request is
actually reaching the server as constructed?

Have you alert()ed or otherwise output the GET request you are executing
to ensure it's valid (properly URLencoded, no spaces, etc).

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 6/7 and Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.