I tried but the innerHTML property won't save the current state of the document. e.g. if I type "aaa" in an input field, the innerHTML property will return <input name="blah" ...> but no "value="aaa"" which is filled by the user. Is there a way to work this out? Thanks.
I found myself in a scenario where the user fills up a form and I need to save the entire form (i.e. not only the form fields but also the static texts and styles etc.) So I figured it's easier to save the entire html page. Can I do this in Javascript? Thanks.
I also asked the question to python-help at the same time and they provided some helpful comments I'd like to share. Dont bash me if you already knew :)
>>> class A: pass
...
>>> s = "A"
>>> b = eval(s)()
>>> b
<__main__.A instance at 0x01435FD0>
>>>
Thank you very much for the post.
The reason why I asked was that I'm writing a program which involves file parsing, and there're different types of files so for each file format I write a parser class, and I want the user to specify which class they'd like to use in run time by passing in a...
Hello,
If I want to create an instance of a class from a string, in Java I can use class.forName() to achieve it. How can I do it in Python?
Thanks.
-Kevin
I was wondering is there a event that fires everytime a powerpoint document is opened. I entered VBE in powerpoint but unlike Excel there's no powerpoint document object under VBA project. How do I go about this? Thanks.
Thank you for your reply. However I dont think it's the PHP or Apache directives that cause the problem. My post_max_size is set to 8M and upload_max_filesize is set to 4M. Even if there's a problem in the directive setting, I'll still get error messages when I try to upload a bigger file, isn't...
My web hosting company upgraded their server from Apache 1.3 to 2 a week ago, and since then I have trouble with my PHP file uploading script which works fine before. The symptom is like this:
* It has no problem uploading files less than 2k.
* When the file is bigger than 2k, the uploading...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.