Hi,
I am using PHP on the server side and javascript on the client side. I ecounter a problem when I try to send to the server parameter with value of 350 charecter and more.
I know that I can split the string I send, and send it saperatly to the server and then reassemble it on the server. My question is how can I transfer to the server string with 350 char and more in native manner. For example if I try to transfer:
[HTML]
<object width="425" height="355"><p aram name="movie" value="http://www.youtube.com/v/IkpuAQIdoD4&hl= en"></param><param name="wmode" value="transpar ent"></param><embed src="http://www.youtube.com/v/IkpuAQIdoD4&hl= en" type="applicati on/x-shockwave-flash" wmode="transpar ent" width="425" height="355"></embed></object>[/HTML]
The string trancated.
Any suggestions?
9 2806 hsriat 1,654
Recognized Expert Top Contributor
How are you sending your parameter to the server?
I sending the data through ajax call
hsriat 1,654
Recognized Expert Top Contributor
I couldn't understand the question well, but as far as I understand it, I think you need to use post method in Ajax, while you are using get method.
I couldn't understand the question well, but as far as I understand it, I think you need to use post method in Ajax, while you are using get method.
the problem is simple if you pass to the server parmeter with a value that is great than N charecter only part of the string is deliver to the server,and the other part is lost. It is happen on IE6 I did try it yet on Firefox.
hsriat 1,654
Recognized Expert Top Contributor
the problem is simple if you pass to the server parmeter with a value that is great than N charecter only part of the string is deliver to the server,and the other part is lost. It is happen on IE6 I did try it yet on Firefox.
Did you try using post method?
I got the sameresult with post and get
hsriat 1,654
Recognized Expert Top Contributor
Thanks for your help,
I solved the problem.The problemwas that in the parameter that was passed tothe server was number of & that cause the string to be truncated. The solution was to replace the & with well known string and then on the server side treplace this string again.
hsriat 1,654
Recognized Expert Top Contributor
Thanks for your help,
I solved the problem.The problemwas that in the parameter that was passed tothe server was number of & that cause the string to be truncated. The solution was to replace the & with well known string and then on the server side treplace this string again.
Instead of just replacing the &, always apply encodeURICompom ent() to the string you are sending to the server with Ajax.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: PerryG |
last post by:
We have a .NET 1.1 client which is sending a gzipped soap request using
HttpWebRequest to an Apache server. The Apache server is using a the
'mod_deflate' server to decompress the incoming message, and to also compress
the response (GZIP).
The mod_deflate filter requires the 'Content-Length' header contained within
the incoming request to specify the number of UNCOMPRESSED bytes being sent
and not the actual bytes of the body of the...
|
by: Dino Hadzic |
last post by:
Hallo csharp'ers
I am trying to call a function on a COM (dll) object from managed c#
code, which will send data to another node using an already existing
bluetooth connection. However, I get a "System.ArgumentException" with
explanation "The parameter is incorrect" when calling
L2C_SendData_Issue(...)
The function declaration in C#:
L2C_SendData_Issue(object vau8BDAddr, object vu16LCID, ref object
|
by: Philippe Bertrand |
last post by:
Using C#, I want to send a byte array to an unmanaged function with the
minimum amount of copies. The array is input only and won't be modified
(its copied on the unmanaged side).
I'm currently using fixed byte *. My question is: Should I be using In
byte parameter instead? Ref parameter?
fixed( byte *b = byte_array ) {
MyUnmangedFunc2( b, byte_array.Length );
}
|
by: Hozi |
last post by:
I am getting the below error when asp.net tries to parse the .aspx file. The funny part is that the error only seems to be happening when viewing the page throuh IE 6 and not Netscape browsers. I am not sure exactly what is throwing it off, especially in the form tag
Has anybody seen this happening to them? It worked on IE briefly and then it started happening again. Any help would be greatly appreciated
Here is the full source of the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |