Skip to content
Advertisement

Category: Questions

what encoding this is?

can anyone tell me what encoding is applied on the chinese character, so that chinese characters are converted into this code or text and stored in mysql database : original chinese characters which are displayed in web page : on the web page there is a header function is used to make standard chinese chars as follow: Thanks… Answer When

Maximum size of a element

I’m working with a canvas element with a height of 600 to 1000 pixels and a width of several tens or hundreds of thousands of pixels. However, after a certain number of pixels (obviously unknown), the canvas no longer display shapes I draw with JS. Does anyone know if there’s a limit? Tested both in Chrome 12 and Firefox 4.

Json file gives 403 error on server

I have a json file contianing data which I access through javascript. On my virtual MAMP server on mac It works, but on my online server when I load the HTML file I cant access the json file from javascript. I get 403 no permission for access error. Why? Answer If your production server is Linux based then please consider

Issue regarding live event

I was just reading http://api.jquery.com/event.stopPropagation/ Since the .live() method handles events once they have propagated to the top of the document, it is not possible to stop propagation of live events I was a bit confused with this statement, Can someone please explain me the same with some example? Answer Live method binds a handler to the document, and identifies

Substring text with HTML tags in Javascript

Do you have solution to substring text with HTML tags in Javascript? For example: Answer Taking into consideration that parsing html with regex is a bad idea, here is a solution that does just that 🙂 EDIT: Just to be clear: This is not a valid solution, it was meant as an exercise that made very lenient assumptions about the

Advertisement